read_fonts::tables::cmap

Type Alias Cmap0

Source
pub type Cmap0<'a> = TableRef<'a, Cmap0Marker>;
Expand description

cmap Format 0: Byte encoding table

Aliased Type§

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

Implementations§

Source§

impl<'a> Cmap0<'a>

Source

pub fn format(&self) -> u16

Format number is set to 0.

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 glyph_id_array(&self) -> &'a [u8]

An array that maps character codes to glyph index values.

Trait Implementations§

Source§

impl<'a> FontRead<'a> for Cmap0<'a>

Source§

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

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