Changing fonts

Font names

The full name of a font is a string such as the following:

    1     2       3    4 5      6 7   8  9 10 11 12    13  14
This is the full name of the courBO10.pcf font in the /usr/lib/X11/fonts/75dpi directory.

A font name is comprised of 14 fields, with a hyphen (-) separating each field. The fields have the following meanings:

  1. foundry that digitized and supplied the font

  2. font family, based on standard typesetting names for various fonts. The major families include Charter, Courier, Helvetica, Lucida, Lucidabright, Lucidatypewriter, New Century Schoolbook, and Times.

  3. font weight, usually ``bold'' or ``medium''

  4. font slant, usually ``i'' for italic, ``o'' for oblique, or ``r'' for Roman.

  5. font proportionate width, as set by the foundry. Most fonts use ``normal''; other possible values are ``condensed'', ``narrow'', and ``double width.''

  6. add_style_name; used to provide additional information not covered in the rest of the font name, for example ``serif,'' or ``decorated.'' Typically this field is not used.

  7. font size in pixels. This measurement depends on the resolution of the font. For example, if the font has a resolution of 100 dots per inch (dpi), a 12-point font has a pixel size of 17. If a font has a resolution of 75 dpi, there are fewer dots per pixel, so a 12-point font has a pixel size of 12.

  8. font size in tenths of a point. A point is a printer's unit that measures 1/72 of an inch.

  9. horizontal resolution in dots-per-inch

  10. vertical resolution in dots-per-inch. Horizontal and vertical figures are required because a screen may have different capacities for horizontal and vertical resolution.

  11. font spacing. The valid values are ``m'' for monofont (or fixed-width) and ``p'' for proportional.

  12. average (mean) width of all characters in the font, measured in tenths of a pixel (60)

  13. font character set registry. This specification refers to the ISO 8859 character set. The ASCII character set is a part of ISO 8859.

  14. character set encoding. ``1'' is the Latin character set.
You should also be aware of the following when dealing with font names:
Next topic: Using wildcards
Previous topic: About fonts

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003