Adding fonts to your X server You need a Type 1 .pfa file, and a corresponding .afm font metrics file. If you have a True Type font these files can be created by a free utility program "ttf2pt1". F.ex.
will create myfont.pfa and myfont.afm. Put all the .pfa and .afm files that you want to add to your Xserver in a directory without any other files. On Solaris you first need to run mkpsres to create a PSres.upr file in your font directory. This is not needed on other platforms. Next you need to create a fonts.scale file in your font directory that contains the mapping of an internal X11 font name (XLFD) to a known font file. Here is an example with 4 Type 1 courier fonts:
Next run mkfontdir to create fonts.dir, which for Type 1 fonts is a copy of the fonts.scale. To use this font directory with your X server you need to add the font path and tell X to update the font information:
Then any X application like ecx should be able to use these fonts. Copyright © 1995-2005, AGI (autoGraph international). All rights reserved. www.augrin.com |