Function mupdf_sys::fz_lookup_cjk_font_by_language
source · pub unsafe extern "C" fn fz_lookup_cjk_font_by_language(
ctx: *mut fz_context,
lang: *const c_char,
len: *mut c_int,
subfont: *mut c_int
) -> *const c_uchar
Expand description
Search the builtin cjk fonts for a match for a given language. Whether a font is present or not will depend on the configuration in which MuPDF is built.
lang: Pointer to a (case sensitive) language string (e.g. “ja”, “ko”, “zh-Hant” etc).
len: Pointer to a place to receive the length of the discovered font buffer.
subfont: Pointer to a place to store the subfont index of the discovered font.
Returns a pointer to the font file data, or NULL if not present.