Get a pointer to a system font.
Source position: agraphics.pas line 2305
function OpenFont( |
TextAttr: PTextAttr |
):PTextFont; |
TextAttr |
|
A PTextAttr or PTTextAttr structure that describes the text font attributes desired. |
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.
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.
|
Release a pointer to a system font. |
|
|
Set the text font and attributes in a RastPort. |
|
|