property FontItalicAngle[FontIndex: Integer]: Single; // read only
font の italic angle を degree で返します。通常の italic では negative、upright では 0 です。property は character から得た font handle (FontHandle[CharIndex]) か、page の font resource を直接列挙したものを index にします
Read-only です。基盤の value は PDFium が font dictionary または font program から遅延取得します。index が既知の font と一致しない場合、function は次を送出します EPdfError.
Use this property together with CharacterFontSize / CharacterFontWeight to drive font-substitution or text-style reconstruction pipelines.
| FontIndex | Index of the font handle. Obtain via FontHandle[CharIndex] or by enumerating the page font resources. |
/ItalicAngle entry of the font descriptor.FontData and a TrueType/OpenType parser.
var
FontIdx: Integer;
begin
// inspect the font used by the first character
if Pdf1.CharacterCount > 0 then
begin
FontIdx := Pdf1.FontHandle[0];
Memo1.Lines.Add(Format('%s (embed=%s)',
[Pdf1.FontFamilyName[FontIdx], BoolToStr(Pdf1.FontIsEmbedded[FontIdx], True)]));
end;
end;