Function mupdf_sys::fz_load_system_font [−][src]
pub unsafe extern "C" fn fz_load_system_font(
ctx: *mut fz_context,
name: *const c_char,
bold: c_int,
italic: c_int,
needs_exact_metrics: c_int
) -> *mut fz_font
Expand description
Attempt to load a given font from the system.
name: The name of the desired font.
bold: 1 if bold desired, 0 otherwise.
italic: 1 if italic desired, 0 otherwise.
needs_exact_metrics: 1 if an exact metrical match is required, 0 otherwise.
Returns a new font handle, or NULL if no matching font was found (or on error).