pub struct GlyfGlyph<'a> {
context: GlyfContext<'a>,
plan: OutlinePlan<'a>,
}Expand description
A TrueType outline from a Font, ready to load.
Contains the OutlinePlan used for both sizing and loading, so the
glyph is only walked once no matter how many times it is drawn. The font
is the OutlineContext used for loading. To hint, pass a
Hinter to OutlinePlan::load
with the same context.
Fields§
§context: GlyfContext<'a>§plan: OutlinePlan<'a>Implementations§
Source§impl<'a> GlyfGlyph<'a>
impl<'a> GlyfGlyph<'a>
Sourcepub fn plan(&self) -> &OutlinePlan<'a>
pub fn plan(&self) -> &OutlinePlan<'a>
Returns the plan that describes the outline’s structure and memory requirements.
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.
Sourcepub fn required_memory_size_unscaled(&self) -> usize
pub fn required_memory_size_unscaled(&self) -> usize
Returns the size in bytes of the working memory needed to load the outline in font units.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GlyfGlyph<'a>
impl<'a> !UnwindSafe for GlyfGlyph<'a>
impl<'a> Freeze for GlyfGlyph<'a>
impl<'a> Send for GlyfGlyph<'a>
impl<'a> Sync for GlyfGlyph<'a>
impl<'a> Unpin for GlyfGlyph<'a>
impl<'a> UnsafeUnpin for GlyfGlyph<'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