Function mupdf_sys::fz_lookup_builtin_font[][src]

pub unsafe extern "C" fn fz_lookup_builtin_font(
    ctx: *mut fz_context,
    name: *const c_char,
    bold: c_int,
    italic: c_int,
    len: *mut c_int
) -> *const c_uchar

Search the builtin fonts for a match. Whether a given font is present or not will depend on the configuration in which MuPDF is built.

name: The name of the font desired.

bold: 1 if bold desired, 0 otherwise.

italic: 1 if italic desired, 0 otherwise.

len: Pointer to a place to receive the length of the discovered font buffer.

Returns a pointer to the font file data, or NULL if not present.