FONT-STRING

#### Search Results

Search

# FONT-STRING

Sets the default font throughout a dialog. The default font must be set as a parameter while the dialog is being created with PROCESS GUI action ADD. If a dialog element inside the dialog contains text with no particular font assigned to it, this text will be displayed in the font specified by FONT-STRING. When you assign a FONT-STRING to a dialog, a font control is created internally, with the dialog being the parent of the font control. The font's handle can be queried from the dialog's FONT-HANDLE attribute.

Note
If the FONT-STRING attribute has created fonts that are too large or too small for the dialog window layout, you can use this attribute to resize all fonts evenly throughout the dialog.

Applies to | Dialog (all types).
Data Type | A253
Default Value | System font
Possible Values | Encoded string which can be edited in the dialog editor's dialog attributes window. Font strings consist of several fields separated by a delimiter character.

#### Possible Delimiter Characters

The default delimiter character is the slash "/".

Possible delimiter characters are:

"/", ",", "#", ":", ";", "|", "@", "$", "%", "&".

#### Fields

1. The font's face name.

2. The font style: Empty, or equivalently, the word "Regular", or a combination of the keywords "Bold", "Italic", "Strikeout", and "Underlined", separated by blanks.

3. The font size: Either the size in points (here, an optional decimal point followed by one digit is allowed), or the size as width x height. A positive value indicates character size, a negative value indicates cell size. A zero indicates that the system should choose a value for the field. The width x height notation allows for better portability across screen resolutions.

4. Character set information. A combination of keywords, one from each of the following subgroups, separated by blanks:

Character sets: | ANSI or SYMBOL or SHIFTJIS or OEM.
Character sets: | ANSI or SYMBOL or SHIFTJIS or OEM.
Fixed or variable-width font: | FIXED or VARIABLE.
Font family: | ROMAN or SCRIPT or SWISS or MODERN or DECORATIVE.
Print quality: | DRAFT or PROOF.

5. A character indicating the platform. For fonts selected under windows, this character is "W".

6. Platform-dependent field. For Windows, this is the clipping precision.

7. Platform-dependent field. For Windows, this is the output precision.

#### Sample String

    /Arial/Bold/0 x -19/ ANSI VARIABLE SWISSDRAFT/W/2/0/