Skip to main content

ttf_view/tables/cmap/
format4.rs

1use crate::types::uint16;
2
3#[repr(C)]
4#[non_exhaustive]
5pub struct CmapSubtableFormat4Repr {
6    seg_count_x2: uint16,
7    pub search_range: uint16,
8    pub entry_selector: uint16,
9    pub range_shift: uint16,
10    data: [uint16; 0],
11    // : end_code: [uint16; seg_count],
12    // : reserved_pad: uint16,
13    // : start_code: [uint16; seg_count],
14    // : id_delta: [uint16; seg_count],
15    // : id_range_offset: [uint16; seg_count],
16    // : glyph_id_array: [uint16; arbitrary length],
17}
18
19impl super::CmapSubtableTrait for CmapSubtableFormat4Repr {
20    const FORMAT: u16 = 4;
21}
22
23// TODO: 'cmap' subtable format 4