- create / select graphic font

Low-level graphics
(AFL 3.0)

SYNTAX GfxSelectFont( ''facename'', pointsize, weight = fontNormal, italic = False, underline = False, orientation = 0 )
FUNCTION Initializes a font with the specified characteristics. Then selects the the as current for subsequent drawing operations.


  • "facename" - specifies the typeface name of the font
  • pointsize - specifies point size of the font (fractional numbers are allowed), for example 11.5 gives 11.5 point font.
  • weight - specifies the font weight (in inked pixels per 1000). Typical values are: 300 - light, 400 - normal, 700 - bold, 800 - ultrabold
  • italic - specifies whether the font is italic
  • underline - specifies whether the font is underlined
  • orientation - specifies the angle (in 0.1-degree units) between the baseline of a character and the x-axis. The angle is measured counterclockwise from the x-axis.

NOTE: This is LOW-LEVEL graphic function. To learn more about low-level graphic functions please read TUTORIAL: Using low-level graphics.

EXAMPLE GfxSelectFont("Tahoma", 20, 700 );
GfxTextOut("Testing graphic capabilites", 20, 28 );
SEE ALSO GfxLineTo() function , GfxMoveTo() function , GfxSelectPen() function , GfxSelectSolidBrush() function , GfxSetPixel() function , GfxTextOut() function


The GfxSelectFont function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference