Struct ttf_parser::gdef::Table
source · 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> 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