Type Alias Cmap6

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

cmap Format 6: Trimmed table mapping

Aliased Type§

pub struct Cmap6<'a> {
    pub(crate) shape: Cmap6Marker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: Cmap6Marker§data: FontData<'a>

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.

Source§

impl Cmap6<'_>

Source

pub fn map_codepoint(&self, codepoint: impl Into<u32>) -> Option<GlyphId>

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.