FPDFFont_GetWeight method

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

int FPDFFont_GetWeight(FPDF_FONT font) {
  return _FPDFFont_GetWeight(font);
}