Méthodes de police de secours THotPDF

Configure les fontes de secours ordonnées et expose les diagnostics de couverture et de métriques verticales

Déclarations

procedure SetFontFallbackChain(Script: THPDFFontScript;
  const FontNames: array of AnsiString);
procedure ClearFontFallbackChain(Script: THPDFFontScript);
procedure ClearAllFontFallbackChains;
function FontFallbackCount(Script: THPDFFontScript): Integer;
function FontFallbackName(Script: THPDFFontScript;
  Index: Integer): AnsiString;
function FontScriptForCodePoint(CodePoint: Cardinal): THPDFFontScript;
function ResolveFontForCodePoint(CodePoint: Cardinal;
  const PrimaryFontName: AnsiString;
  out ResolvedFontName: AnsiString): boolean; overload;
function ResolveFontForCodePoint(CodePoint: Cardinal;
  const PrimaryFontName: AnsiString; const FontStyle: TFontStyles;
  out ResolvedFontName: AnsiString): boolean; overload;
function AnalyzeUnresolvedGlyphs(const Text: WideString;
  const PrimaryFontName: AnsiString): THPDFUnresolvedGlyphInfoArray; overload;
function AnalyzeUnresolvedGlyphs(const Text: WideString;
  const PrimaryFontName: AnsiString; const FontStyle: TFontStyles):
  THPDFUnresolvedGlyphInfoArray; overload;
function GetUnresolvedGlyphs: THPDFUnresolvedGlyphInfoArray;
procedure ClearUnresolvedGlyphs;
function GetVerticalGlyphMetrics(CodePoint: Cardinal;
  out AdvanceY, OriginY: Integer): boolean;
procedure SetVerticalDefaultMetrics(AdvanceY, OriginY: Integer);

Types

THPDFFontScript = (hfsCommon, hfsLatin, hfsGreek, hfsCyrillic,
  hfsHebrew, hfsArabic, hfsIndic, hfsSoutheastAsian, hfsCJK,
  hfsKana, hfsHangul, hfsEmoji, hfsOther);

THPDFUnresolvedGlyphInfo = record
  CodePoint: Cardinal;
  FontName: AnsiString;
  Script: THPDFFontScript;
  SuggestedFonts: AnsiString;
end;

THPDFUnresolvedGlyphInfoArray = array of THPDFUnresolvedGlyphInfo;

Sujets des membres

Comportement

API associées