To: Overview of X, Programming X, Window Managers, Fonts, Download X
The X Window system comes with a huge set of fonts. To see a listing of the fonts available on your system, try a program calledDecoding Long Font Names
xlsfonts | more
This lists out many fonts, such as:
-adobe-new century schoolbook-medium-r-normal--34-240-100-100-p-181-iso8859-1
Some of the multi-part names are quite long. These names follow a standard called X Logical Font Description, or XLFD.
Each part of an XLFD name is separated by a hyphen. If a part is missing, you'll see two hyphens in a row. You can also use wildcards, such as * for fields you don't care about.
Going in order, from left to right, the fields follow:
|Foundry||adobe,b&h||The company that created the font.|
|Font family||times, lucidasans||Basic font family name|
|Weight||bold, medium||How thick the letters are|
Italic, roman, oblique, etc.
|Set-width name||normal, condensed||Width of characters|
|Additional style||sans||Extra info to describe font|
|Pixel size||26, 20||Height, in pixels, of characters|
|Point size||190, 140||Ten times height of characters in points|
|Dots-per-inch||100-100, 75-75||Dots per inch in X and Y directions. You can generally ignore this.|
|Spacing||m, p, c||
|Average width||94, 159||Ten times the average width in pixels|
Character set encoding in the font, some examples:
For more information on XLFD fonts, see chapter 7 in The UNIX System Administrator's Guide to X.
Last updated: August 30 1999