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> Debug for Cmap6<'a>

source§

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

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

impl<'a> SomeTable<'a> for Cmap6<'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.