|
|
Using the X Window System > Chapter 6 Using FontsThe fonts.dir File |
|
In directories containing scalable and/or bitmapped fonts, the X and font servers associate each font file name with the XLFD font name by means of the fonts.dir file. This file is created by the installation process, or by executing the mkfontdir (for directories that contain only bitmapped fonts), or stmkdirs (for directories that contain bitmapped and/or scalable fonts) utility. The stmkdirs utility is described in more detail in the section on font administration. You should run mkfontdir or stmkdirs after you add or delete fonts from a directory, so that the change is reflected in fonts.dir. You can view the list of fonts in a font directory, and their XLFD names, by examining the fonts.dir file in that directory. Scalable typefaces listed in fonts.dir have some values set to zero. A fonts.dir file looks similar to this:
In this example:
The X server tries to match your request with the bitmapped fonts and scalable typefaces listed in the fonts.dir file as follows: The server looks in the directories in your font path in the order shown by xset q.
If none of the above results in a font being returned, the X server returns an error message. |
|