GSQFNT(3g,L) AIX Technical Reference GSQFNT(3g,L) ------------------------------------------------------------------------------- gsqfnt PURPOSE Returns information about the current font. C SYNTAX void gsqfnt_ (font) int *font; FORTRAN SYNTAX subroutine gsqfnt (font) INTEGER font (32) PASCAL SYNTAX PROCEDURE gsqfnt_ ( VAR font: ARRAY [1..32] of INTEGER ) [PUBLIC]; DESCRIPTION The gsqfnt subroutine returns information about the active font. Parameter font Contains, on return, the characteristics of the current font. The following table describes the information in the array. Each entry is a word. Dimensions are in pixels and the origin is at the lower left corner of the character box. Entry Description 1 Class: 1 = compressed; 2 = uncompressed format (always 1 for printers and plotters). 2 Font ID. 3 Style. Processed November 7, 1990 GSQFNT(3g,L) 1 GSQFNT(3g,L) AIX Technical Reference GSQFNT(3g,L) Entry Description 4 Attribute flags: bit 31 bold bit 30 italic bit 00 proportionally spaced. (This entry always has all bits set to 0 for printers and plotters.) 5 Number of characters. For printers and plotters, this is the number of fonts * 128. 6 Character baseline. For printers and plotters, no text alignment is allowed and this value is always -1. 7 Character capsline. For printers and plotters, no text alignment is allowed and this value is always -1. 8 Character width. For printers and plotters, the character width is given in pixels. For a proportionally spaced font, the width value represents the maximum width allowed. 9 Character height. For printers and plotters, the character height is given in pixels. 10 Underscore top line. For printers and plotters, underscoring is not available and this value is always -1. 11 Underscore bottom line. For printers and plotters, underscoring is not available and this value is always -1. 12-32 Reserved. Processed November 7, 1990 GSQFNT(3g,L) 2