Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

OpenFont

Get a pointer to a system font.

Declaration

Source position: agraphics.pas line 2358

function OpenFont(

  textAttr: pTextAttr

):pTextFont;

Arguments

textAttr

  

A PTextAttr or PTTextAttr structure that describes the text font attributes desired.

Function result

Nil if the desired font cannot be found. If the named font is found, but the size and style specified are not available, a font with the nearest attributes is returned.

Description

This function searches the system font space for the graphics text font that best matches the attributes specified. The pointer to the font returned can be used in subsequent SetFont() and CloseFont() calls. It is important to match this call with a corresponding CloseFont() call for effective management of ram fonts.

See also

CloseFont

  

Release a pointer to a system font.

SetFont

  

Set the text font and attributes in a RastPort.

OpenDiskFont

  


Documentation generated on: 2021-07-30