Skip to main content

Leaves

Struct Leaves 

Source
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: Precision

Implementations§

Source§

impl<'a> Leaves<'a>

Source

pub(super) fn new( base: OutlineGlyphs<'a>, options: DrawOptions, precision: Precision, ) -> Self

Trait Implementations§

Source§

impl VarcContext for Leaves<'_>

Source§

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>

Draws glyph into sink at the normalized coordinates coords. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.