Skip to main content

insert_entry

Function insert_entry 

Source
pub fn insert_entry(sub: &CmapSubtable, cp: u32, gid: GlyphId) -> CmapSubtable
Expand description

Insert a (codepoint, glyph) pair into a subtable, extending the run it belongs to when the glyph ids stay consecutive.

Returns the rebuilt subtable; the caller owns it (the model stores owned subtables, and this keeps CmapSubtable a plain data type).