[comp.windows.x] File Format of X Font

zliu@argosy.UUCP (Zaide (Edward) Liu) (08/15/90)

I would like to use X font to display text in Smalltalk, since
the available smalltalk fonts are not that beautiful. 

However, I do not know the format of the x font files.  I would
appreciate if somebody tell me about the format of the x font
files.  By the way, has anybody done the work which reads from a
X font file and generate the smalltalk font format.  

Any response is welcome.
--- liu

mouse@LARRY.MCRCIM.MCGILL.EDU (08/15/90)

> I would like to use X font to display text in Smalltalk, since the
> available smalltalk fonts are not that beautiful.

> However, I do not know the format of the x font files.

There is no single format.  Each server has its own format (many of
them use the format chosen for the MIT sample server, but some (eg,
DECwindows and I think some recent Sun versions) use a different
format.

However, there is the BDF format (Bitmap Distribution Format, I think
it stands for) which is the de-facto standard interchange format.  All
(or almost all, certainly all civilized) X implementations provide a
way to convert a BDF font to whatever that implementation's server
format happens to be.  To go the other way, I wrote a program getbdf
which connects to an X server and goes through the necessary gyrations
to upload a font, which it then dumps out in BDF format.  (getbdf can
be obtained by anonymous ftp to 132.206.1.1, in X/getbdf.c and
X/mterm.src/mterm.aux, or by mailing me and asking.)

BDF format documentation can be found on the MIT R4 tape in mit/doc/BDF.

I know nothing about the format Smalltalk wants, converters to or from
it, etc.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu