
440
|
Chapter 6: Font Formats, Glyph Sets, and Font Tools
X Window System
e X Window System
*
natively uses one of two font formats, both bitmapped, and both
derivable from BDF, specically SNF and PCF. SNF (Server Natural Format) is used on
X11R4 and earlier, and PCF (Portable Compiled Format) is used on X11R5 and later. e
current version is X11R7. In the extremely unlikely event that you are running DPS (Dis-
play PostScript), you can also use PostScript CJKV fonts.
†
FreeType 2 is used in the X
Windows client-side XFT Font Library, which is itself used in the Qt and GTK toolkits.
X Window System font names are unique in that they are abnormally long, mainly be-
cause the name itself includes almost all of its global information. e following is an
example taken from a JIS X 0208:1997 font:
-Misc-Fixed-Medium-R-Normal--16-150-75-75-C-160-JISX0208.1997-0
Hyphens are used to separate the information specied in the font name. Table 6-52 lists
each of these elds.
X Window System font namesTable 6-52.
Field name Sample value Description
Foundry Misc The font developer.
Font family Fixed The font’s family name.
Weight Medium The font’s relative weight.
Slant R The font’s slant angle.
Set width Normal The font’s proportionate width.
Additional style Additional style information.
Pixels 16 The font’s size measured in pixels.
Points 150 The font’s size measured in 10ths of a point (thus, 15 points). ...