Type Alias read_fonts::tables::ift::PatchMapFormat1

source ·
pub type PatchMapFormat1<'a> = TableRef<'a, PatchMapFormat1Marker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> PatchMapFormat1<'a>

source

pub fn format(&self) -> u8

Format identifier: format = 1

source

pub fn compatibility_id(&self) -> &'a [BigEndian<u32>]

Unique ID that identifies compatible patches.

source

pub fn max_entry_index(&self) -> u16

Largest entry index which appears in either the glyph map or feature map.

source

pub fn max_glyph_map_entry_index(&self) -> u16

Largest entry index which appears in the glyph map.

source

pub fn glyph_count(&self) -> Uint24

source

pub fn glyph_map_offset(&self) -> Offset32

Sub table that maps glyph ids to entry indices.

source

pub fn glyph_map(&self) -> Result<GlyphMap<'a>, ReadError>

Attempt to resolve glyph_map_offset.

source

pub fn feature_map_offset(&self) -> Nullable<Offset32>

Sub table that maps feature and glyph ids to entry indices.

source

pub fn feature_map(&self) -> Option<Result<FeatureMap<'a>, ReadError>>

Attempt to resolve feature_map_offset.

source

pub fn applied_entries_bitmap(&self) -> &'a [u8]

source

pub fn uri_template_length(&self) -> u16

source

pub fn uri_template(&self) -> &'a [u8]

source

pub fn patch_encoding(&self) -> u8

Patch format number for patches referenced by this mapping.

source§

impl<'a> PatchMapFormat1<'a>

source

pub fn get_compatibility_id(&self) -> [u32; 4]

source

pub fn gid_to_entry_iter(&'a self) -> impl Iterator<Item = (GlyphId, u16)> + 'a

source

pub fn entry_count(&self) -> u32

source

pub fn uri_template_as_string(&self) -> Result<&str, ReadError>

source

pub fn is_entry_applied(&self, entry_index: u16) -> bool

Trait Implementations§

source§

impl<'a> Debug for PatchMapFormat1<'a>

source§

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

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

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