Skip to main content

decode_in_font

Function decode_in_font 

Source
pub fn decode_in_font(
    code: u8,
    encoding: &str,
    font: &Font,
    implicit: bool,
) -> Option<char>
Expand description

Decode a codepoint in encoding as font draws it: through the font family’s own map, when one is declared (decoding_map). Perl FontDecode($n, $encoding, $font), as decodeMathChar calls it (Package.pm:2990): the math character’s encoding is the font info’s, its family the font’s — \mathbb{R} under bbold is U in the blackboard family, decoded through U_blackboard (bbold_sty.rs).