Skip to main content

parse_cmap_table

Function parse_cmap_table 

Source
pub fn parse_cmap_table(font_data: &[u8]) -> Option<HashMap<u32, u16>>
Expand description

Parse the cmap table to build a Unicode→GID mapping.

Returns a map from Unicode codepoint to glyph ID. Supports format 4 (BMP) and format 12 (full Unicode).