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

SetFont

Set the text font and attributes in a RastPort.

Declaration

Source position: agraphics.pas line 2053

procedure SetFont(

  Rp: PRastPort;

  TextFont: PTextFont

);

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