Skip to main content

font_decode

Function font_decode 

Source
pub fn font_decode(
    code: i32,
    encoding_opt: Option<&str>,
    font_opt: Option<Rc<Font>>,
) -> (Option<char>, Option<Rc<Font>>)
Expand description

Decode a codepoint using the fontmap for a given font and/or encoding (Perl: FontDecode). Returns the decoded glyph (if any) and the possibly-adjusted font.