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

SetFont

Set the text font and attributes in a RastPort.

Declaration

Source position: agraphics.pas line 1989

function SetFont(

  Rp: PRastPort;

  TextFont: PTextFont

):LongInt;

Arguments

Rp

  

The RastPort in which the text attributes are to be changed

TextFont

  

pointer to a TextFont structure returned from OpenFont() or OpenDiskFont

Description

This function sets the font in the RastPort to that described by font, and updates the text attributes to reflect that change. This function clears the effect of any previous soft styles.

This function had previously been documented that it would accept a null font. This practice is discouraged.

See also

OpenFont

  

Get a pointer to a system font.

OpenDiskFont

  

StripFont

  

Remove the TextFontExtension from a font


Documentation generated on: 2021-07-30