Struct truetype::char_mapping::Encoding4 [] [src]

pub struct Encoding4 {
    pub format: u16,
    pub length: u16,
    pub language: u16,
    pub segment_count_x2: u16,
    pub search_range: u16,
    pub entry_selector: u16,
    pub range_shift: u16,
    pub end_codes: Vec<u16>,
    pub reserved_pad: u16,
    pub start_codes: Vec<u16>,
    pub id_deltas: Vec<i16>,
    pub id_range_offsets: Vec<u16>,
    pub glyph_ids: Vec<GlyphID>,
}

A char-to-glyph encoding in format 4.

Fields

format: u16 length: u16 language: u16 segment_count_x2: u16 search_range: u16 entry_selector: u16 range_shift: u16 end_codes: Vec<u16> reserved_pad: u16 start_codes: Vec<u16> id_deltas: Vec<i16> id_range_offsets: Vec<u16> glyph_ids: Vec<GlyphID>

Methods

impl Encoding4
[src]

fn mapping(&self) -> HashMap<u16u16>

Return the mapping.

Trait Implementations

impl PartialEq for Encoding4
[src]

fn eq(&self, __arg_0: &Encoding4) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Encoding4) -> bool

This method tests for !=.

impl Eq for Encoding4
[src]

impl Debug for Encoding4
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Encoding4
[src]

fn clone(&self) -> Encoding4

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Value for Encoding4
[src]

fn read<T: Tape>(tape: &mut T) -> Result<Self>

Read a value.