FPDFText_GetLooseCharBox function
Experimental API. Function: FPDFText_GetLooseCharBox Get a "loose" bounding box of a particular character, i.e., covering the entire glyph bounds, without taking the actual glyph shape into account. Parameters: text_page - Handle to a text page information structure. Returned by FPDFText_LoadPage function. index - Zero-based index of the character. rect - Pointer to a FS_RECTF receiving the character box. Return Value: On success, return TRUE and fill in |rect|. If |text_page| is invalid, or if |index| is out of bounds, then return FALSE, and the |rect| out parameter remains unmodified. Comments: All positions are measured in PDF "user space".
Implementation
@ffi.Native<FPDF_BOOL Function(FPDF_TEXTPAGE, ffi.Int, ffi.Pointer<FS_RECTF>)>()
external int FPDFText_GetLooseCharBox(
FPDF_TEXTPAGE text_page,
int index,
ffi.Pointer<FS_RECTF> rect,
);