pub(crate) struct PreparedGlyph<'a> {
pub(crate) glyph_type: GlyphType<'a>,
pub(crate) outline_transform: Affine,
pub(crate) relative_paint_transform: Affine,
pub(crate) cache_key: Option<GlyphCacheKey>,
}Expand description
A simplified representation of a glyph, prepared for easy rendering.
Fields§
§glyph_type: GlyphType<'a>The type of glyph.
outline_transform: AffinePer-glyph outline transform: maps the draw-unit glyph outline (after font-size absorption) to scene coordinates.
relative_paint_transform: AffineThe transform of the paint, relative to PreparedGlyph::outline_transform *
GlyphScaleProperties::draw_scale.
cache_key: Option<GlyphCacheKey>Cache key for renderers that implement glyph caching.
This is Some for glyphs that can be cached, None otherwise.
For COLR glyphs, context_color is extracted from the renderer’s
current paint during cache key creation.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PreparedGlyph<'a>
impl<'a> RefUnwindSafe for PreparedGlyph<'a>
impl<'a> Send for PreparedGlyph<'a>
impl<'a> Sync for PreparedGlyph<'a>
impl<'a> Unpin for PreparedGlyph<'a>
impl<'a> UnsafeUnpin for PreparedGlyph<'a>
impl<'a> UnwindSafe for PreparedGlyph<'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