GetFontCacheInfo

文字、字型、診斷

描述

傳回所有字型相關快取的位元組預算設定、目前追蹤用量、項目數、命中與未命中計數器,以及 LRU 逐出總數

語法

Delphi

Function TPDFlib.GetFontCacheInfo(Out Info: TPDFlibFontCacheInfo): Integer;

參數

InfoReceives a TPDFlibFontCacheInfo record

傳回值

Returns 1

備註

CurrentBytes 是裁汰策略使用的保留大小估計值,絕不超過 MaxBytes

快取未命中時,若暫時資源的保留大小超過預算,仍可成功完成

另見

TPDFlibFontCacheInfo, SetFontCacheLimit, ClearFontCache