[][src]Function mupdf_sys::fz_bound_glyph

pub unsafe extern "C" fn fz_bound_glyph(
    ctx: *mut fz_context,
    font: *mut fz_font,
    gid: c_int,
    trm: fz_matrix
) -> fz_rect

Return a bbox for a given glyph in a font.

font: The font to look for the glyph in.

gid: The glyph to bound.

trm: The matrix to apply to the glyph before bounding.

r: Pointer to a fz_rect to use for storage.

Returns r, after filling it in with the bounds of the given glyph.