Type Alias read_fonts::tables::ift::GlyphMap

source ·
pub type GlyphMap<'a> = TableRef<'a, GlyphMapMarker>;

Aliased Type§

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

Implementations§

source§

impl<'a> GlyphMap<'a>

source

pub fn read( data: FontData<'a>, glyph_count: Uint24, max_entry_index: u16, ) -> Result<Self, ReadError>

A constructor that requires additional arguments.

This type requires some external state in order to be parsed.

source§

impl<'a> GlyphMap<'a>

source

pub fn first_mapped_glyph(&self) -> u16

source

pub fn entry_index(&self) -> ComputedArray<'a, U8Or16>

Trait Implementations§

source§

impl<'a> Debug for GlyphMap<'a>

source§

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

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

impl<'a> FontReadWithArgs<'a> for GlyphMap<'a>

source§

fn read_with_args( data: FontData<'a>, args: &(Uint24, u16), ) -> Result<Self, ReadError>

read an item, using the provided args. Read more
source§

impl ReadArgs for GlyphMap<'_>

source§

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