PDFium Delphi Component Docs

FontItalicAngle property

Component: TPdf  ·  Unit: PDFium
Read-only indexed access to the italic angle of the font in degrees (negative for typical italic; 0 for upright)

Syntax

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

Description

Returns the italic angle of the font in degrees (negative for typical italic; 0 for upright) for the text page object at Index. The valid range is 0 .. ObjectCount - 1 for a text object on the current page

Read-only. The underlying value is queried lazily by PDFium from the font dictionary or font program. When the index does not match a known font, the function raises EPdfError

Use this property together with CharacterFontSize / CharacterFontWeight to drive font-substitution or text-style reconstruction pipelines

Parameters

IndexZero-based page object index in 0 .. ObjectCount - 1 referencing a text object (ObjectType[Index] = otText)

Remarks

Example

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;

See Also

FontSize, FontWeight, FontFamilyName, FontIsEmbedded, CharacterFontSize