pub struct VarcGlyph<'a> {
pub(super) outlines: &'a Outlines<'a>,
pub(super) outline: Outline,
pub(super) base: OutlineGlyphs<'a>,
}Expand description
A variable composite glyph from a Font.
This includes the base outlines used to draw its components.
Fields§
§outlines: &'a Outlines<'a>§outline: Outline§base: OutlineGlyphs<'a>Implementations§
Source§impl<'a> VarcGlyph<'a>
impl<'a> VarcGlyph<'a>
Sourcepub fn required_memory_size(&self) -> usize
pub fn required_memory_size(&self) -> usize
Returns the size in bytes of the working memory needed for drawing.
The size depends on the nesting depth, the largest leaf, and the table’s axes and regions. It is computed the first time it is needed and kept. Returns zero for a glyph that cannot be drawn, which a draw reports as an error.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for VarcGlyph<'a>
impl<'a> !RefUnwindSafe for VarcGlyph<'a>
impl<'a> !UnwindSafe for VarcGlyph<'a>
impl<'a> Send for VarcGlyph<'a>
impl<'a> Sync for VarcGlyph<'a>
impl<'a> Unpin for VarcGlyph<'a>
impl<'a> UnsafeUnpin for VarcGlyph<'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