User Tools

Site Tools


getfont_get_font_information_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== GETFONT (get font information) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

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

blk2blue.jpg

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

getfont_get_font_information_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1