X supports fonts in a number of forms, including its own "bitmap" format, "Speedo," Adobe's "Type 1," Apple's "True Type."
A Postscript font editor that allows transforming a number of font formats to and from the Postcript PFA form.
Instructions on how to use Xfstt
cd over to /usr and create a link for Xfstt to find the fonts:
ln -s /usr/X11R6/lib/X11/fonts/ttfonts ttfonts
Xfstt looks for fonts in /usr/ttfonts but I like to keep my font directories grouped together under /usr/X11R6/lib/X11/fonts/
Build and install Xfstt
I untarred Xfstt under /tmp but it doesn't matter where it's done. When you run make install, one of the things it does is run
xfstt --sync generates two files in the truetype font directory:
I made a copy of ttname.dir and called it fonts.scale.
fonts.scale is one continous line of descriptions of all the fonts in the directory. I edit my new fonts.scale file placing each font description on it's own line. The font descriptions need to be edited.
As an example, change a description like :
Count the total number of font descriptions and enter that number on the first line of the file (by itself). You can make a copy of this file calling it fonts.dir or you can run the program mkfontdir.
Edit the file (if you are using XFree86) called XF86Config in /etc/X11/ and change the line after fontpath to something like:
Before running startx start up xfstt. I found that the fonts in Java's SwingSet example look the right size if I start xfstt as follows:
xfstt --res 72 &
The easiest way to make these fonts available to
ghostscript is to set the environment variable
GS_FONTPATH in .bashrc to
Ghostscript will run faster if you edit its Fontmap file but I haven't noticed any undesirable delays.
As a test, I used a font in Applix's editor that was only available as a truetype font and sent it out to the printer.
T1lib can be used to add fully scalable Type 1 fonts with kerning, ligatures, antialiasing and other features not usually found in X applications. Existing fonts can be leveraged and new ones easily installed without modifying X or installing "font servers">.
Note that T1lib was once part of the SciTeXt "scientific wordprocessor" package. When development efforts moved to Java, the code for this was split off. The SciTeXt project seems not to have proceeded very far from there; it is fortunate that this library allows there to be some continuing value from the efforts. This is one of the valuable features of free software.
Web page describing the problems with ligature handling, basically suggesting that they shouldn't be bothered with anymore, at least not for display purposes...
The new XRender extension introduces a new digital image rendering model for use with X. It is particularly used to render geometric figures as well as text.
The desired functionality that it most pointedly supports is that of antialiased fonts.
Xft is a library to access XRender to provide a useful common "registry" of font information for use by applications. A classic problem on X is that applications that try to do WYSIWYG wind up needing some extended information about fonts such as font metrics (e.g. - size and positioning information for each glyph), and wind up with a multiplicity of varying "databases."
Applications will not magically attain the "new, anti-aliased powers" of XRender; they either need to request its use directly, requiring modifying each application, or indirectly, via toolkit libraries that support XRender and Xft.