PDFium Delphi Component Docs

ConfigureSystemFontCacheGovernor prosedürü

Units: PDFium, FPdfCache
Süreç geneli sistem yazı tipi sonuçlarını, çağıranın seçtiği paylaşımlı bir bayt bütçesine dahil eder

Syntax

procedure ConfigureSystemFontCacheGovernor(Governor: TPdfCacheGovernor);

Description

Prosedürü PDFium yüklü değilken çağırın

Yöneticiyi değiştirmek, tutulan sistem yazı tipi sonuçlarını temizler ve eski tokenlarını serbest bırakır

nil geçmek, yalnızca girdi sayısına dayalı sistem yazı tipi önbelleğe almayı geri getirir

PDFium yüklüyken prosedürü çağırmak EPdfError fırlatır

Lifetime

Yöneticinin sahibi çağırandır

Yönetici, yapılandırılmış sistem yazı tipi önbelleğinden uzun ömürlü olmalıdır

Serbest bırakmadan önce UnloadLibrary ve ardından ConfigureSystemFontCacheGovernor(nil) çağırın

Example

var
  Governor: TPdfCacheGovernor;
begin
  Governor := TPdfCacheGovernor.Create(Int64(64) * 1024 * 1024);
  try
    UnloadLibrary;
    ConfigureSystemFontCacheGovernor(Governor);
    LoadLibrary;
    RunDocumentWork;
    UnloadLibrary;
    ConfigureSystemFontCacheGovernor(nil);
  finally
    Governor.Free;
  end;
end;

See Also

FPdfCache, ConfigureSystemFontProvider, LoadLibrary, UnloadLibrary