FPDFTextObj_SetFontSize function

  1. @Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, Float)>(FPDF_PAGEOBJECT, ffi.Float)>()
int FPDFTextObj_SetFontSize(
  1. FPDF_PAGEOBJECT text,
  2. double size
)

Experimental API. Set the font size of a text object.

text - handle to a text page object. size - the new font size, measured in points (1/72 inch). Must be non-negative; zero is permitted to mirror FPDFPageObj_NewTextObj() with size 0.

Returns TRUE on success. Returns FALSE when |text| is not a text page object, or when |size| is negative.

Implementation

@ffi.Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, ffi.Float)>()
external int FPDFTextObj_SetFontSize(FPDF_PAGEOBJECT text, double size);