pub(super) struct Leaves<'a> {
base: OutlineGlyphs<'a>,
options: DrawOptions,
precision: Precision,
}Expand description
Draws the leaves of a composite from the base source.
The leaves use the draw options of the composite.
Fields§
§base: OutlineGlyphs<'a>§options: DrawOptions§precision: PrecisionImplementations§
Source§impl<'a> Leaves<'a>
impl<'a> Leaves<'a>
pub(super) fn new( base: OutlineGlyphs<'a>, options: DrawOptions, precision: Precision, ) -> Self
Trait Implementations§
Source§impl VarcContext for Leaves<'_>
impl VarcContext for Leaves<'_>
Source§fn coords(&self) -> &[F2Dot14]
fn coords(&self) -> &[F2Dot14]
Returns the normalized variation coordinates of the font’s location. Read more
Source§fn draw_glyph(
&self,
glyph: GlyphId,
coords: &[F2Dot14],
ppem: Option<f32>,
buf: &mut [u8],
sink: &mut dyn PathSink,
) -> Result<(), Error>
fn draw_glyph( &self, glyph: GlyphId, coords: &[F2Dot14], ppem: Option<f32>, buf: &mut [u8], sink: &mut dyn PathSink, ) -> Result<(), Error>
Source§fn glyph_buffer_size(&self, glyph: GlyphId) -> usize
fn glyph_buffer_size(&self, glyph: GlyphId) -> usize
Returns the size in bytes of the working memory needed to draw
glyph.Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Leaves<'a>
impl<'a> !UnwindSafe for Leaves<'a>
impl<'a> Freeze for Leaves<'a>
impl<'a> Send for Leaves<'a>
impl<'a> Sync for Leaves<'a>
impl<'a> Unpin for Leaves<'a>
impl<'a> UnsafeUnpin for Leaves<'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