Sign in Join
FPDoc Onlineexperiment

FontResourceCache variable

In unit Graphics

Variable used as the cache for Font resources.

Declaration

pascal
FontResourceCache: TFontHandleCache

Description

FontResourceCache is a TFontHandleCache variable used as the cache for Font resources. FontResourceCache allows reference-counted font handles to be created or retrieved when the ReferenceNeeded method in TFont is called. Values in FontResourceCache are maintained when the FreeReference method in TFont is called.

Resources for FontResourceCache are allocated when the Graphuic.pp unit is initialized, and freed when the unit is finalized.

See also

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