Type Definition mupdf_sys::fz_load_system_font_fn
source · pub type fz_load_system_font_fn = Option<unsafe extern "C" fn(ctx: *mut fz_context, name: *const c_char, bold: c_int, italic: c_int, needs_exact_metrics: c_int) -> *mut fz_font>;
Expand description
Type for user supplied system font loading hook.
name: The name of the font to load.
bold: 1 if a bold font desired, 0 otherwise.
italic: 1 if an italic font desired, 0 otherwise. needs_exact_metrics: 1 if an exact metric match is required for the font requested.
Returns a new font handle, or NULL if no font found (or on error).