PDFium Delphi Component Docs

FontItalicAngle プロパティ

コンポーネント: TPdf  ·  ユニット: PDFium
font の italic angle への read-only indexed access です。単位は degree で、通常の italic では negative、upright では 0 です

構文

property FontItalicAngle[Index: Integer]: Integer; // read only

説明

Index の位置にあるテキストページオブジェクトの font の italic angle を度で返します(典型的な italic は負、upright は 0)。現在ページのテキストオブジェクトに対する有効な範囲は 0 .. ObjectCount - 1 です

読み取り専用です。基底の値は PDFium が font dictionary または font program から遅延取得します。インデックスが既知の font に一致しない場合、この関数は EPdfError を発生させます

CharacterFontSize / CharacterFontWeight と組み合わせれば、フォント代替やテキストスタイル再構築のパイプラインを駆動できます

パラメーター

Indexテキストオブジェクト(ObjectType[Index] = otText)を参照する 0 .. ObjectCount - 1 の 0 基点ページオブジェクトインデックスです

備考

例

var
  I: Integer;
begin
  for I := 0 to Pdf1.ObjectCount - 1 do
    if Pdf1.ObjectType[I] = otText then
      Memo1.Lines.Add(Format('%s (italic=%d)', [Pdf1.FontFamilyName[I], Pdf1.FontItalicAngle[I]]));
end;

関連項目

FontSize, FontWeight, FontFamilyName, FontIsEmbedded, CharacterFontSize