pub enum Glyph<'a> {
Simple(SimpleGlyph<'a>),
Composite(CompositeGlyph<'a>),
}
Expand description
Simple or composite glyph.
Variants§
Simple(SimpleGlyph<'a>)
Composite(CompositeGlyph<'a>)
Implementations§
Source§impl<'a> Glyph<'a>
impl<'a> Glyph<'a>
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return the FontData
used to resolve offsets for this table.
Sourcepub fn number_of_contours(&self) -> i16
pub fn number_of_contours(&self) -> i16
If the number of contours is greater than or equal to zero, this is a simple glyph. If negative, this is a composite glyph — the value -1 should be used for composite glyphs.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Glyph<'a>
impl<'a> RefUnwindSafe for Glyph<'a>
impl<'a> Send for Glyph<'a>
impl<'a> Sync for Glyph<'a>
impl<'a> Unpin for Glyph<'a>
impl<'a> UnwindSafe for Glyph<'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