The syntax for specifying a font list in a resource file depends on whether the list contains fonts, font sets, or both.
To obtain a font, specify a font and an optional font list element tag.
If the tag is present, it should be preceded by an = (equal sign).
If the tag is not present, do not use an = (equal sign).
Entries specifying more than one font are separated by a , (comma).
To obtain a font set, specify a base font list and an optional font list element tag.
If the tag is present, it should be preceded by a : (colon) instead of an = (equal sign).
If the tag is not present, the colon must still be present as this is what distinguishes a font from a font set in the resource declaration.
Fonts specified in the base font list are separated by a ; (semicolon). Entries specifying more than one font set are separated by a , (comma).
If the font list element tag is not present, the default XmFONTLIST_DEFAULT_TAG is used. Here are some examples.
Specifying a font using the default font list element tag:
*fontList: fixed *fontList: \ -adobe-courier-medium-r-normal--10-100-75-75-M-60-iso8859-1
Specifying a font list element tag:
*fontList: fixed=ROMAN, 8x13bold=BOLD
Specifying two fonts, one with the default font list element tag and one with an explicit tag:
*fontList: fixed, 8x13bold=BOLD
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.
Let Xlib select the fonts without specifying a font list element tag:
*fontList: -dt-application-medium-r-normal-*-m*-*-*-*-m-*
Let Xlib select the fonts and specify a font list element tag as MY_TAG:
*fontList: -dt-application-medium-r-normal-*-m*-*-*-*-m*:MY_TAG
Let Xlib select the fonts, specify a font list element tag for bold fonts, and use the default font list element tag for the others:
*fontList: -dt-application-medium-r-normal-*-m*-*-*-*-m-*:,\ -dt-application-medium-r-normal-style2-m*-*-*-*-m-*:BOLD