Common Desktop Environment: Internationalization Programmer's Guide

Font Lists Examples

The syntax for specifying a font list in a resource file depends on whether the list contains fonts, font sets, or both.

Obtaining a Font

To obtain a font, specify a font and an optional font list element tag.

Entries specifying more than one font are separated by a , (comma).

Obtaining a Font Set

To obtain a font set, specify a base font list and an optional font list element tag.

Fonts specified in the base font list are separated by a ; (semicolon). Entries specifying more than one font set are separated by a , (comma).

Specifying a Font When the Font List Element Tag Is Absent

If the font list element tag is not present, the default XmFONTLIST_DEFAULT_TAG is used. Here are some examples.

Specifying a Font Set When the Font List Element Tag Is Absent

If the font list element tag is not present, the default XmFONTLIST_DEFAULT_TAG is used. Here are some examples of specifying a font set.