FONT Information


PLBCMP GUI Only

 

The GETINFO instruction retrieves the following information when the TYPE keyword specifies a Font Object. Note that the {dest} parameter in this case is both an input and an output variable. The parameter provides an input character string for which a pixel string width is determined relative to the {font} being used. This pixel string width is then reported in the GETINFO results. In this case, the input {dest} character string is replaced by the GETINFO result fields.

 

Column

Size

Value

1

4

Ascent - Pixels above the baseline for a character.

5

4

Descent - Pixels below the baseline for a character.

9

4

Height - The height of a character (ascent + descent).

13

4

Full Height - The full height of a character (height + external leading/space).

17

4

Average character width - Generally this is defined by the width of the letter 'x'.

21

4

Maximum character width - The width of the widest character in the font.

25

4

The font string width - The number of pixels a user supplied string requires for the font. This value is truncated to four digits.

29

1

The first character in font - The value of the first character defined for the font.

30

1

The last character in font - The value of the last character defined for the font.

31

8

The number of pixels that a user supplied string requires for the font. This value is truncated to an eight digit number.

 

See Also: GETINFO, System Interface Instructions

 



PL/B Language Reference