FONT Mnemonic - Set Control/SYSGUI Window Font

Syntax

'FONT'(id|0,family,size,style{,charset})

Description

For BBj-specific information, see FONT Mnemonic - Set Control/SYSGUI Window Font BBj.

The 'FONT' mnemonic assigns a font to a control or a SYSGUI window drawing surface.

Parameter

Description

id

Control ID, or, if 0 is used, the SYSGUI window drawing surface.

family

Name of the font family. To use the current font family, use an empty string (""). This allows only the size or style to be changed. On all systems, five family names behave the same everywhere. These five "portable" font family names are "fixed", "helvetica", "courier", "system", and "times" (lower case only). Any valid font family name for the GUI system in use may be used, such as "Courier New," under MS Windows, but these may not work without modification when moved to other platforms supporting Visual PRO/5.

size

Desired point size. To keep the current point size, use -1. This allows only the font family or style to be changed.

style

A bit-masked integer (passed as an integer, not as a string). The logic operator OR can be used to make a combination of valid style bits or -1 can be used to keep the same style and change only the current font family name or size. (Note that the "system" font is implicitly bold.) The valid style bits are:

 

Style  Bit

 

Bold  $01$

 

Italic  $02$

 

Underline $10$

 

Strikeout  $0200$

charset

Identifies a character set, according to the following:

Character Set

Decimal Value

ANSI

0

DEFAULT

1

SYMBOL

2

SHIFTJIS

3

HANGEUL

4

GB2312

5

CHINESEBIG5

6

OEM

7

JOHAB

8

HEBREW

9

ARABIC

10

GREEK

11

TURKISH

12

THAI

13

EASTEUROPE

14

RUSSIAN

15

BALTIC

16

MAC

17

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing