pub struct Table<'a> { /* private fields */ }
Expand description
Implementations§
Source§impl<'a> Table<'a>
impl<'a> Table<'a>
Sourcepub fn has_glyph_classes(&self) -> bool
pub fn has_glyph_classes(&self) -> bool
Checks that face has Glyph Class Definition Table.
Sourcepub fn glyph_class(&self, glyph_id: GlyphId) -> Option<GlyphClass>
pub fn glyph_class(&self, glyph_id: GlyphId) -> Option<GlyphClass>
Returns glyph’s class according to Glyph Class Definition Table.
Returns None
when Glyph Class Definition Table is not set
or glyph class is not set or invalid.
Sourcepub fn glyph_mark_attachment_class(&self, glyph_id: GlyphId) -> Class
pub fn glyph_mark_attachment_class(&self, glyph_id: GlyphId) -> Class
Returns glyph’s mark attachment class according to Mark Attachment Class Definition Table.
All glyphs not assigned to a class fall into Class 0.
Sourcepub fn is_mark_glyph(&self, glyph_id: GlyphId, set_index: Option<u16>) -> bool
pub fn is_mark_glyph(&self, glyph_id: GlyphId, set_index: Option<u16>) -> bool
Checks that glyph is a mark according to Mark Glyph Sets Table.
set_index
allows checking a specific glyph coverage set.
Otherwise all sets will be checked.
Sourcepub fn glyph_variation_delta(
&self,
outer_index: u16,
inner_index: u16,
coordinates: &[NormalizedCoordinate],
) -> Option<f32>
pub fn glyph_variation_delta( &self, outer_index: u16, inner_index: u16, coordinates: &[NormalizedCoordinate], ) -> Option<f32>
Returns glyph’s variation delta at a specified index according to Item Variation Store Table.
Trait Implementations§
impl<'a> Copy for Table<'a>
Auto Trait Implementations§
impl<'a> Freeze for Table<'a>
impl<'a> RefUnwindSafe for Table<'a>
impl<'a> Send for Table<'a>
impl<'a> Sync for Table<'a>
impl<'a> Unpin for Table<'a>
impl<'a> UnwindSafe for Table<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more