read_fonts::tables::cmap

Type Alias Cmap2

source
pub type Cmap2<'a> = TableRef<'a, Cmap2Marker>;
Expand description

cmap Format 2: High-byte mapping through table

Aliased Type§

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

Implementations§

source§

impl<'a> Cmap2<'a>

source

pub fn format(&self) -> u16

Format number is set to 2.

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 sub_header_keys(&self) -> &'a [BigEndian<u16>]

Array that maps high bytes to subHeaders: value is subHeader index × 8.

Trait Implementations§

source§

impl<'a> Debug for Cmap2<'a>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a> FontRead<'a> for Cmap2<'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 Cmap2<'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.