read_fonts::tables::cmap

Type Alias Cmap6

Source
pub type Cmap6<'a> = TableRef<'a, Cmap6Marker>;
Expand description

cmap Format 6: Trimmed table mapping

Aliased Type§

struct Cmap6<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Cmap6<'a>

Source

pub fn format(&self) -> u16

Format number is set to 6.

Source

pub fn length(&self) -> u16

This is the length in bytes of the subtable.

Source

pub fn language(&self) -> u16

For requirements on use of the language field, see “Use of the language field in ‘cmap’ subtables” in this document.

Source

pub fn first_code(&self) -> u16

First character code of subrange.

Source

pub fn entry_count(&self) -> u16

Number of character codes in subrange.

Source

pub fn glyph_id_array(&self) -> &'a [BigEndian<u16>]

Array of glyph index values for character codes in the range.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for Cmap6<'a>

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more