Enum read_fonts::tables::glyf::Glyph
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)