FPDFFont_GetWeight function

  1. @Native<Int Function(FPDF_FONT)>(FPDF_FONT)>()
int FPDFFont_GetWeight(
  1. FPDF_FONT font
)

Experimental API. Get the font weight of a font.

font - the handle to the font object.

Returns the font weight, -1 on failure. Typical values are 400 (normal) and 700 (bold).

Implementation

@ffi.Native<ffi.Int Function(FPDF_FONT)>()
external int FPDFFont_GetWeight(FPDF_FONT font);