pub(crate) enum CachedGlyphType {
Outline,
Bitmap,
Colr(Rect),
}Expand description
Type hint for cached glyph rendering.
Used when rendering directly from the atlas cache to skip glyph preparation.
Variants§
Outline
An outline glyph cached in the atlas.
Bitmap
A bitmap glyph cached in the atlas.
Colr(Rect)
A COLR glyph cached in the atlas.
The Rect parameter contains the fractional area dimensions
to preserve sub-pixel accuracy during rendering.
Trait Implementations§
Source§impl Clone for CachedGlyphType
impl Clone for CachedGlyphType
Source§fn clone(&self) -> CachedGlyphType
fn clone(&self) -> CachedGlyphType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CachedGlyphType
impl Debug for CachedGlyphType
impl Copy for CachedGlyphType
Auto Trait Implementations§
impl Freeze for CachedGlyphType
impl RefUnwindSafe for CachedGlyphType
impl Send for CachedGlyphType
impl Sync for CachedGlyphType
impl Unpin for CachedGlyphType
impl UnsafeUnpin for CachedGlyphType
impl UnwindSafe for CachedGlyphType
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