pub fn winansi_glyph_name(code: u8) -> Option<&'static str>Expand description
Returns the PostScript glyph name assigned to PDF WinAnsiEncoding
byte code, or None for unmapped codes.
PDF WinAnsi is not Microsoft CP1252; see PDF 1.7 Annex D.2
for the canonical table. The two encodings differ at codes
0x7F, 0x81, 0x8D, 0x8F, 0x90, and 0x9D (gaps in PDF,
assorted glyphs or DEL in CP1252).
This is exposed primarily so downstream crates (e.g.
mos-fonts) can delegate to the canonical table rather than
maintain their own copy.
ยงExamples
use pdf_base14_metrics::winansi_glyph_name;
assert_eq!(winansi_glyph_name(b'A'), Some("A"));
assert_eq!(winansi_glyph_name(0x7F), None);