PDFium Delphi Component Docs

TextObjectFontSize method

Component: TPdf  ·  Unit: PDFium
Reads the native font size of one text object

Syntax

function TextObjectFontSize(Index: Integer): Single;

Description

TextObjectFontSize returns the font size stored in the native text object at Index, in PDF user units

It returns 0 when the page object is not a text object or when no document is loaded

Remarks

    • Use SetTextObjectFontSize to edit the value without a matrix transform
    • The value reflects the text object only; individual glyph advances also depend upon the font program

Example

Size := Pdf1.TextObjectFontSize(ObjIdx);

See Also