Skip to main content

decode_char_code

Function decode_char_code 

Source
pub fn decode_char_code(code: i64, cs: Option<&str>) -> Option<SymStr>
Expand description

The glyph \char and a text \chardef print for character code code (Perl FontDecode, Package.pm:2871-2891): up to 255 the current font’s slot; above it the code point itself, as XeTeX and LuaTeX print it. The pdfTeX persona keeps it too, with a Warning naming cs where pdfTeX reports “Bad character code” and prints slot 0 (tex.web:8629-8635 scan_char_num; ruling D-42, OXIDIZED_DESIGN_DIVERGENCES #1191). A negative code, a surrogate or one past U+10FFFF prints nothing. cs: None decodes without a Warning.