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

SetFont

Set the text font and attributes in a RastPort.

Declaration

Source position: agraphics.pas line 2384

function SetFont(

  rp: pRastPort;

  const 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