[][src]Module informa::sfnt::tables::cmap::format12

Format 12: Segmented coverage

Implementation of the cmap format 12 subtable.

Specification: OpenType, TrueType.

The entry to this module is the compile function. It returns the subtable bytes for a given character map.

let mut map = CharacterMap::new();
map.insert('A', 1);
map.insert('B', 2);
map.insert('C', 3);
let subtable = compile(&map);

compile_groups allows manual control over the groups used. form_groups returns groups for a character map.

let mut map = CharacterMap::new();
// ... insert entries into character map ...
let groups = form_groups(&map);
let subtable = compile_groups(&groups);

Structs

SequentialMapGroup

A continuous range of character codes where all character codes map to glyph ids with the same offset.

Functions

compile

Returns a cmap format 12 subtable representing the given character map.

compile_groups

Returns a cmap format 12 subtable representing the given groups.

form_groups

Returns a vector of groups representing the given character map.