| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== GETFONT (get font information) ====== | [[getexitcode query program exit code .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[getgroup return reference to group .htm|{{btn_next_n.gif|Next page}}]] | | || {{newc7.jpg|NewC7.jpg}} **GETFONT(** //control// [,// typeface// ] [, //size// ] [,// color// ] [,// style //] [,//charset//]**)** {{blk2blue.jpg|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 specify font .htm|SETFONT]] ,[[fontdialog return chosen font .htm| FONTDIALOG]], [[fontdialoga return chosen font and character set .htm|FONTDIALOGA]] , [[font set default font .htm|FONT(set default font)]] [[font support quick summary.htm|Font Support Quick Summary]]