read_fonts::tables::ift

Type Alias 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) -> CompatibilityId

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 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> 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