/// Returns a `cmap` format 4 subtable representing the given character map.
///
/// # Example
///
/// ```
/// # use informa::ctx::Context;
/// # use informa::data::CharacterMap;
/// # use informa::sfnt::tables::cmap::format4::compile;
/// let ctx = Context::default();
/// let mut map = CharacterMap::new();
/// # map.insert('A', 1);
/// # map.insert('B', 2);
/// # map.insert('C', 3);
/// // ... insert entries into character map ...
/// let subtable = compile(&map, &ctx);
/// ```
Returns a `cmap` format 4 subtable representing the given character map.
Returns a ` cmap ` format 4 subtable representing the given character map .
pub fn compile(map: &CharacterMap, ctx: &Context) -> Bytes {
    let mut segments = encoding_segments(&map, ctx);
    segments.push(Segment::sentinel());
    compile_segments(&map, &segments)
}
pub fn compile ( map : & CharacterMap , ctx : & Context ) -> Bytes { let mut segments = encoding_segments ( & map , ctx ) ; segments . push ( Segment :: sentinel ( ) ) ; compile_segments ( & map , & segments ) }
Returns a `cmap` format 4 subtable representing the given character map.
Returns a ` cmap ` format 4 subtable representing the given character map .
map
&CharacterMap
ctx
&Context
example
None
use informa::ctx::context;
None
use informa::data::charactermap;
None
use informa::sfnt::tables::cmap::format4::compile;
let ctx = Context::default();
let mut map = CharacterMap::new().
let ctx = Context :: default () ; let mut map = CharacterMap :: new () .
map.insert('a', 1);
None
map.insert('b', 2);
None
map.insert('c', 3);
insert entries into character map
let subtable = compile(↦, &ctx);
```
insert entries into character map let subtable = compile ( ↦ &ctx ) ; ` ` `