logo
pub enum CmapSubtable<'a> {
    Format0 {
        language: u16,
        glyph_id_array: ReadArray<'a, U8>,
    },
    Format2 {
        language: u16,
        sub_header_keys: ReadArray<'a, U16Be>,
        sub_headers: ReadArray<'a, SubHeader>,
        sub_headers_scope: ReadScope<'a>,
    },
    Format4(CmapSubtableFormat4<'a>),
    Format6 {
        language: u16,
        first_code: u16,
        glyph_id_array: ReadArray<'a, U16Be>,
    },
    Format10 {
        language: u32,
        start_char_code: u32,
        glyph_id_array: ReadArray<'a, U16Be>,
    },
    Format12 {
        language: u32,
        groups: ReadArray<'a, SequentialMapGroup>,
    },
}

Variants

Format0

Fields

language: u16
glyph_id_array: ReadArray<'a, U8>

Format2

Fields

language: u16
sub_header_keys: ReadArray<'a, U16Be>
sub_headers: ReadArray<'a, SubHeader>
sub_headers_scope: ReadScope<'a>

Format4(CmapSubtableFormat4<'a>)

Format6

Fields

language: u16
first_code: u16
glyph_id_array: ReadArray<'a, U16Be>

Format10

Fields

language: u32
start_char_code: u32
glyph_id_array: ReadArray<'a, U16Be>

Format12

Fields

language: u32

Implementations

Returns an owned::CmapSubtable. Will only return None if self is CmapSubtable::Format2 as support for converting from this format is not yet implemented.

Extract all the mappings from the sub-table.

Trait Implementations

The type of the value returned by write.

Write the binary representation of Self to ctxt.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type of the arguments supplied to write_dep.

The type of the value returned by write_dep.

Write the binary representation of Self to ctxt.