GETFONT (get font information)

Top  Previous  Next

 

GETFONT( control [, typeface ] [, size ] [, color ] [, style ] [,charset])

GETFONT

Gets display font information.

control

A field number or field equate label for the control from which to get the information. If control is zero (0), it specifies the WINDOW.

typeface

A string variable to receive the name of the font.

size

An integer variable to receive the size (in points) of the font.

color

A LONG integer variable to receive the red, green, and blue values for the color of the font in the low-order three bytes. If the value is negative, the color represents a system color.

style

An integer variable to receive the strike weight and style of the font.

charset

A LONG integer variable to receive the character set value.

 

GETFONT gets the display font information for the control. If the control parameter is zero (0), GETFONT gets the default display font for the window.

Example:

TypeFace  STRING(31)

Size      BYTE

Color     LONG

Style     LONG

CharSet   LONG

 

CODE

OPEN(Screen)

GETFONT(0,TypeFace,Size,Color,Style,CharSet)   !Get font info for the window

 

See Also:

SETFONT , FONTDIALOG, FONTDIALOGA , FONT(set default font)

Font Support Quick Summary