Function mupdf_sys::fz_measure_string [−][src]
pub unsafe extern "C" fn fz_measure_string(
ctx: *mut fz_context,
user_font: *mut fz_font,
trm: fz_matrix,
s: *const c_char,
wmode: c_int,
bidi_level: c_int,
markup_dir: fz_bidi_direction,
language: fz_text_language
) -> fz_matrix
Measure the advance width of a UTF8 string should it be added to a text object.
This uses the same layout algorithms as fz_show_string, and can be used to calculate text alignment adjustments.