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

FontExtent

Get the font attributes of the current font

Declaration

Source position: agraphics.pas line 2307

procedure FontExtent(

  const font: pTextFont;

  fontExtent: pTextExtent

);

Arguments

font

  

The TextFont from which the font metrics are extracted.

fontExtent

  

The TextExtent structure to be filled.

Description

This function fills the text extent structure with a bounding (i.e. maximum) extent for the characters in the specified font.

The TextFont, not the RastPort, is specified -- unlike TextExtent(), effect of algorithmic enhancements is not included, nor does te_Width include any effect of rp_TxSpacing. The returned te_Width will be negative only when FPF_REVPATH is set in the tf_Flags of the font -- the effect of left-moving characters is ignored for the width of a normal font, and the effect of right-moving characters is ignored if a REVPATH font. These characters will, however, be reflected in the bounding extent.

See also

TextExtent

  

Determine raster extent of text data.


Documentation generated on: 2021-07-30