GfxSelectFont
- create / select graphic font

Low-level graphics
(AmiBroker 50)


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

Parameters:

  • "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 );
GfxSetBkMode(1);
GfxSetTextColor(colorBrown);
GfxTextOut("Testing graphic capabilites", 20, 28 );
SEE ALSO GfxLineTo() function , GfxMoveTo() function , GfxSelectPen() function , GfxSelectSolidBrush() function , GfxSetPixel() function , GfxTextOut() function

References:

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

More information:

See updated/extended version on-line.