Default Font Names |
 |
The set of standard interface font names is defined by the
XLFD field name values described in Table 2-1 “Field Name Values
for Standard Interface Font Names”
Table 2-1 Field Name Values
for Standard Interface Font Names
Field | Value | Description |
|---|
FOUNDRY | dt | CDE name |
FAMILY_NAME | interface system
or interface user | CDE standard interface font name |
WEIGHT_NAME | medium
or bold | Weight of the font |
SLANT | r | Roman |
SET_WIDTH | normal | Normal set width |
SPACING | p or m | |
ADD_STYLE | size hint sans
or serif | Proportional or Monospace values from
xxs to xxl Sans for sans serif font or serif for serif |
PIXEL_SIZE | Platform dependent | |
POINT_SIZE | Platform dependent | |
RESOLUTION_X | Platform dependent | |
RESOLUTION_Y | Platform dependent | |
AVERAGE_WIDTH | m p | Monospace for user font Proportional
for system font |
NUMERIC FIELD | Platform dependent | |
CHAR_SET_REGI STRY | Locale Dependent | |
ENCODING | Locale Dependent | |
Point Sizes for Standard Interface
Fonts |
 |
The seven named point sizes for each of the three styles are
prepend in the ADD_STYLE_NAME
field. The font XLFD patterns matching these names can match a named
size, not a numeric size. These named sizes are used because the
exact size of an interface font is less important than its nominal
size, and implementation differences for the hand-tuned interface
fonts do not allow common numeric point sizes to be assured across
systems.
The seven nominal sizes are as follows:
xxs extra extra small xs extra small s small m medium l large xl extra large xxl extra extra large |
The goal of these named sizes is to provide enough fonts to
display a variety monitor sizes and resolutions that CDE will run
on, and the range of user preferences for comfortably reading button
labels, window titles and so forth, can be accommodated in the GUI.
Both the smallest size, xxs, and the largest size, xxl, are meant
to be reasonable sizes for displaying and viewing the CDE desktop
on common displays and X terminals; they are not meant to imply
either hard-to-read fine print or headline-sized display type.
Patterns for the Standard Interface
Font Names |
 |
Using these values, the XLFD pattern
logically matches the full set of XCDE Standard Interface
Font Names. (Note that no specific X server behavior is implied).
For example, in Western locales, the full set of 21 CDE Standard
Interface Font Names can be represented:
-dt-interface system-medium-r-normal-*-*-*-*-*-*-*-iso8859-1 -dt-interface user-medium-r-normal-*-*-*-*-*-m-*-iso8859-1 -dt-interface user-bold-r-normal-*-*-*-*-*-m-*-iso8859-1 |
The full set of patterns in the app-defaults
files for all seven system font sizes is:
-dt-interface system-medium-r-normal-xxs*-*-*-*-*-*-*-iso8859-1 -dt-interface system-medium-r-normal-xs*-*-*-*-*-*-*-iso8859-1 -dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-iso8859-1 -dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-iso8859-1 -dt-interface system-medium-r-normal-l*-*-*-*-*-*-*-iso8859-1 -dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-iso8859-1 -dt-interface system-medium-r-normal-xxl*-*-*-*-*-*-*-iso8859-1 |
These patterns could be used in a resource file and will match
the full CDE Standard Interface Names for the iso Latin-1 locales
on all CDE-compliant systems. For more information, see the DtStdInterfaceFontNames(5)
man page.