Type Alias read_fonts::tables::cmap::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> Debug for Cmap0<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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
source§

impl<'a> SomeTable<'a> for Cmap0<'a>

source§

fn type_name(&self) -> &str

The name of this table
source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.