O'Reilly logo

Fonts & Encodings by Yannis Haralambous

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.3. Installing fonts under X

Upon startup, the xfs font server [299, 233] reads a configuration file, which is:

     /usr/X11R6/lib/X11/fs/config

by default. In this file we specify certain default values, such as the screen resolution and the default set width. But most important of all: the file contains the list of directories where fonts are stored. Here is an example:

     /usr/X11R6/lib/X11/fonts/misc,
     /usr/X11R6/lib/X11/fonts/Speedo,
     /usr/X11R6/lib/X11/fonts/Type1,
     /usr/X11R6/lib/X11/fonts/CID,
     /usr/X11R6/lib/X11/fonts/75dpi,
     /usr/X11R6/lib/X11/fonts/100dpi,
     /usr/share/fonts/default/Type1,
     /usr/share/fonts/default/TrueType,
     /home/yannis/texmf/fonts/pfb

Each of these directories must contain a file named fonts.dir. This is a very simple text file. It begins with the number of lines to follow, written on a line by itself. Then there is a single line for each font file. These lines are divided into two columns: the filename and the font's XLFD name. Example:

     360
     6x12.pcf.gz -misc-fixed-medium-r-semicondensed------c--iso10646-
     6x13.pcf.gz -misc-fixed-medium-r-semicondensed------c--iso10646-
     6x10.pcf.gz -misc-fixed-medium-r-normal------c--iso10646-
     ... (356 lines) ...
     9x15-KOI8-R.pcf.gz -misc-fixed-medium-r-normal------c--koi8-r

or, in the case of PostScript Type 1 fonts:

 89 UTRG____.pfa -adobe-utopia-medium-r-normal------p--iso8859- UTI_____.pfa -adobe-utopia-medium-i-normal------p--iso8859- UTB_____.pfa -adobe-utopia-bold-r-normal------p--iso8859- ... (85 lines) ... 1049036t.pfa ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required