Solaris Common Desktop Environment: Programmer's Guide

Default Font Names

The set of standard application default font names is defined by the XLFD field name values described in Table 2-2 .

Table 2-2 Field Name Values for Standard Application Font Names

Field 

Value 

Description 

FOUNDRY

dt

CDE name 

FAMILY_NAME

application

CDE standard application font name 

WEIGHT_NAME

medium or bold

Weight of the font 

SLANT

r

i

Roman 

Italic 

SET_WIDTH

normal

Normal set width 

ADD_STYLE

sans

serif

Sans serif font 

Serif font 

PIXEL_SIZE

*

Platform dependent 

POINT_SIZE

pointsize

Point size of the desired font 

RESOLUTION_X

*

Platform dependent 

RESOLUTION_Y

*

Platform dependent 

AVERAGE_WIDTH

p

m

Proportional 

Monospace 

NUMERIC FIELD

*

Platform dependent 

CHAR_SET_REGISTRY

iso8859-1

Defining standards authority 

ENCODING

1

Character set number 

The standard names are available using the regular X Windows XLFD font- naming scheme. When properly specified with appropriate wildcards for the platform-dependent fields, a CDE font name is guaranteed to open a valid, corresponding platform-dependent font. The XLFD name returned from a call to the Xlib XListFont function, however, is not guaranteed to be the same on all CDE platforms.

Using these values, the XLFD pattern

-dt-application-*

matches the full set of CDE standard application font names on a given platform. The pattern

-dt-application-bold-*-*-*-*-*-*-*-p-*-*-*-

matches the bold, proportionally spaced CDE fonts, both serif and sans serif. And the pattern

-dt-application-*-*-*-*-*-*-*-*-m-*-*-*-

matches the monospaced fonts (whether serif or sans serif, or both).

The full set of CDE Standard Application Font Names can be represented as follows:

-dt-application-bold-i-normal-serif-*-*-*-*-p-*-iso8859-1
-dt-application-bold-r-normal-serif-*-*-*-*-p-*-iso8859-1
-dt-application-medium-i-normal-serif-*-*-*-*-p-*-iso8859-1
-dt-application-medium-r-normal-serif-*-*-*-*-p-*-iso8859-1
-dt-application-bold-i-normal-sans-*-*-*-*-p-*-iso8859-1
-dt-application-bold-r-normal-sans-*-*-*-*-p-*-iso8859-1
-dt-application-medium-i-normal-sans-*-*-*-*-p-*-iso8859-1
-dt-application-medium-r-normal-sans-*-*-*-*-p-*-iso8859-1
-dt-application-bold-i-normal-*-*-*-*-*-m-*-iso8859-1
-dt-application-bold-r-normal-*-*-*-*-*-m-*-iso8859-1
-dt-application-medium-i-normal-*-*-*-*-*-m-*-iso8859-1
-dt-application-medium-r-normal-*-*-*-*-*-m-*-iso8859-1
-dt-application-medium-r-normal-*-*-*-*-*-p-*-dtsymbol-1