[][src]Function mupdf_sys::fz_bound_text

pub unsafe extern "C" fn fz_bound_text(
    ctx: *mut fz_context,
    text: *const fz_text,
    stroke: *const fz_stroke_state,
    ctm: fz_matrix
) -> fz_rect

Find the bounds of a given text object.

text: The text object to find the bounds of.

stroke: Pointer to the stroke attributes (for stroked text), or NULL (for filled text).

ctm: The matrix in use.

r: pointer to storage for the bounds.

Returns a pointer to r, which is updated to contain the bounding box for the text object.