PDFium Component Docs

FontItalicAngle プロパティ

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdf  ·  ユニット: PDFium
font の italic angle への read-only indexed access です。単位は degree で、通常の italic では negative、upright では 0 です

構文

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.

パラメータ

FontIndexIndex of the font handle. Obtain via FontHandle[CharIndex] or by enumerating the page font resources.

備考

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;

関連項目

FontSize, FontWeight, FontFamilyName, FontIsEmbedded, CharacterFontSize