Contained Within
Find More Documentation
Featured Support Resources
| Descargar este libro en PDF
Font Set Definitions
C
- This appendix describes the contents of the font set definition database:
-
- Font set specifier
- Font set name aliases
- Default font family
- Default font scales
- Font family, scales, and sizes aliases
Font Set Specifier
- A font set is specified by using the font set name as the resource specification and the corresponding list of XLFD font names as the resource value. The following example shows the font set name "-sun-myoungjo-medium-r-normal--16-140-75-75-p-140-korean-0" has been defined to consist of two fonts. The keyword definition indicates that the value following it is a list of XLFD font names.
-

- An application can specify the font set to be used by assigning the value "-sun-myoungjo-medium-r-normal--16-140-75-75-p-140-korean-0" to the attribute FONT_SET_SPECIFIER.
Font Set Name Aliases
- Other font set names can be aliased to a particular font set name using the keyword alias. The following example aliases the name "hngmnj14" to the font set name "-sun-myoungjo-medium-r-normal--16-140-75-75-c-140-korean- 0".
-

- An application can also specify the font set to be used by assigning the value "hngmnj14" to the attribute FONT_SET_SPECIFIER.
Default Font Family
- Font attributes FONT_FAMILY can be used to create or find a font set object. The default font family for a particular locale can be defined in the font set definition database file as below:
-

- The font family FONT_FAMILY_SANS_SERIF has been defined as the default for the FONT_FAMILY attribute. If the default font family is not specified in the font set definition database, the C locale default is used. Refer to the XView Programming Manual, Version 3 for these C locale defaults.
Default Font Scales
- The point sizes corresponding to the font scales of a particular locale can be specified in the font set definition database in the following manner:
-

- The point size defined by xv_font_set.medium is used as the default value for the FONT_SIZE attribute. If the default font scales are not specified in the font set definition database, the C locale default is used. Refer to the XView Programming Manual, Version 3 for these C locale defaults.
Font Family, Scales, and Size Aliases
- When an application creates a font set using FONT_FAMILY in the Asian locales, the font set definition database will be queried using a concatenation of the font set family name, the style, and the sizes as the resource specification. Therefore, font set aliases must exist in the font set definition database corresponding to the default font families, default font scales, and sizes. For example:
-

- If an application does not specify the FONT_FAMILY, FONT_STYLE or FONT_SIZE explicitly, the default values of these attributes for the particular locale are used. In the following example, the font set "-sun-myoungjo-medium-r-normal--16-140-75-75-p-140-korean-0" would be created.
-

|
|