TYPE DESIGN INFORMATION PAGE last updated on Wed Nov 20 11:39:44 EST 2024
FONT RECOGNITION VIA FONT MOOSE |
|
|
Type 1 and X, by Bruce Momjian
About the use of type 1 fonts in X Windows, Bruce wrote:" Let me give you some tips: Look /usr/X11R6/lib/X11/fonts/Type1 directory as an example. Make a directory /usr/X11R6/lib/X11/fonts/expert. Copy or symbolic link all the *.pfa and *.pfb files into that directory from the CDROM. Create fonts.scale for the expert fonts. E-mail me and I will give you a proper file for that CD, or just try a few and make them match the stuff in Type1/fonts.scale, except the font family is expert, and the font name, weight(bold, medium), type(italics, roman), etc have to be set to match each *.pfa or *.pfb file. See the Type1/fonts.scale file for examples, and run xfontsel to see the options for each entry for a font. Make them match the font characteristics for each entry. Run xmkfontdir. That creates fonts.dir. fonts.dir and fonts.scale are the same, but xmkfontdir is the proper way to do it. The first entry in fonts.dir is the number of fonts, so that has to be set too. Use xset fp+ to add the fonts/expert directory to the X server's font list. Add the xset command to the X startup script so X adds it each time it starts. Run xset fp rehash to reload the font server's database. Run xfontsel, and choose the expert foundry. Your fonts should be selectable at that point. Gimp should also see the fonts, thought I know the 1.0 version could only display the last 500 or so fonts, not the whole list of them. Some kind of internal limit. Also, don't be surprised if xfontsel and Netscape now take longer to start. Some apps read the font database on startup. I fixed Netscape by briefly using xset to remove the custom font directories while Netscape starts up." |
EXTERNAL LINKS |
| |
| |
Luc Devroye ⦿ School of Computer Science ⦿ McGill University Montreal, Canada H3A 2K6 ⦿ lucdevroye@gmail.com ⦿ https://luc.devroye.org ⦿ https://luc.devroye.org/fonts.html |