| United States-English |
|
|
|
![]() |
Common Desktop Environment: Advanced User's and System Administrator's Guide > Chapter 15 Administering
Application Resources, Fonts, and ColorsAdministering Fonts |
|
Using the Style Manager Font dialog box, you can select the font size you want for all applications. You can also specify fonts on the command line or use resources to:
A font is a type style in which text characters are printed or displayed. The desktop includes a variety of fonts in different styles and sizes. A bitmap font is made from a matrix of dots. (By default, Style Manager configures bitmap fonts only.) The font is completely contained in one file. Many files are needed to have a complete range of sizes, slants, and weights. Fonts are specified as values of resources and as parameters to commands. The X Logical Font Description (XLFD) name is the method by which a desired font is requested. The system finds the font that best matches the description it was given. The Style Manager Font dialog box enables you to set fonts (up to seven sizes) for things such as text entry and labels. When a font is selected, the following resources are written to the RESOURCE_MANAGER property:
The fonts used for each selection in the Font dialog box are specified in the /usr/dt/app-defaults/Dtstyle resource file. Up to seven sizes can be specified.
For more information about application fonts, seethe DtStdAppFontNames (5) and DtStdInterfaceFontNames (5) man pages.
For additional information, see:
A font is specified by listing fourteen different characteristics, separated by dashes (-). This is called the X Logical Font Description (XLFD). In some cases, a property in the list can be replaced by a * wildcard, and a character within a property can be replaced by a ? wildcard. Table 15-4 “Font Property String Specification” lists font property string specifications. The form of the property string specification is: "-Foundry-FamilyName-WeightName-
Table 15-4 Font Property String Specification
The following XLFD name describes a font named charter made by Bitstream that supports the ISO8859-1 standard encoding:
It is medium weight, with no special slanting, and normal width. The font is proportional, with an em-square box of 8 pixels or 8.0 points. The horizontal and vertical resolution are both 75 pixels. The average width of a character is 45 1/10ths pixels or 4.5 pixels. Parts of this string can be replaced by wildcards. The system uses the first font it finds that matches the parts you have specified. If all you want is an eight-pixel charter font, you could use:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||