ClearFontCache

Text, fonts, memory management

Description

Releases every retained font-face resource, shaped run and parsed glyph-outline entry and resets all cache counters

Syntax

Delphi

Function TPDFlib.ClearFontCache: Integer;

Return values

Returns 1

Remarks

The configured byte limit is preserved, so subsequent operations repopulate the caches under the same budget

Document replacement and removal automatically invalidate cached parsed-font entries whose font objects no longer exist

See also

SetFontCacheLimit, GetFontCacheInfo