Function mupdf_sys::fz_show_glyph

source ·
pub unsafe extern "C" fn fz_show_glyph(
    ctx: *mut fz_context,
    text: *mut fz_text,
    font: *mut fz_font,
    trm: fz_matrix,
    glyph: c_int,
    unicode: c_int,
    wmode: c_int,
    bidi_level: c_int,
    markup_dir: fz_bidi_direction,
    language: fz_text_language
)
Expand description

Add a glyph/unicode value to a text object.

text: Text object to add to.

font: The font the glyph should be added in.

trm: The transform to use for the glyph.

glyph: The glyph id to add.

unicode: The unicode character for the glyph.

wmode: 1 for vertical mode, 0 for horizontal.

bidi_level: The bidirectional level for this glyph.

markup_dir: The direction of the text as specified in the markup.

language: The language in use (if known, 0 otherwise) (e.g. FZ_LANG_zh_Hans).

Throws exception on failure to allocate.