Sign in Join
FPDoc Onlineexperiment

Load_TrueType_Glyph function

In unit TTGLoad

Loads a font glyph into a given glyph info.

Declaration

pascal
function Load_TrueType_Glyph(instance: PInstance; glyph: PGlyph; 
 glyph_index: Word; load_flags: Int): TError

Description

The instance and glyph objects faces must match. The load_flags indicate what kind of values should be written to the glyph object (metrics, outline in EM coordinates, grid-fitted outline).

By default (i.e. with load_flags = 0), this function only returns the unscaled glyph metrics and points in EM units.

Use the flags to query scaling and hinting ops.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.