pub struct GlyphQuad {
pub key: u64,
pub bitmap: CachedGlyph,
pub x: f32,
pub y: f32,
pub w: u32,
pub h: u32,
pub color: [u8; 4],
}Expand description
One glyph headed for the compositor’s atlas (D109 Step 4): position and
color per frame; bitmap is the shared cached rasterization, read only
on the atlas’s first sight of key.
Fields§
§key: u64Stable atlas key (see font::layout_glyphs).
bitmap: CachedGlyphCoverage bitmap (w*h bytes) — pre-gamma; the atlas upload applies
the text gamma curve once (see text_gamma_lut).
x: f32Top-left, physical px.
y: f32§w: u32§h: u32§color: [u8; 4]sRGB straight-alpha text color.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlyphQuad
impl RefUnwindSafe for GlyphQuad
impl Send for GlyphQuad
impl Sync for GlyphQuad
impl Unpin for GlyphQuad
impl UnsafeUnpin for GlyphQuad
impl UnwindSafe for GlyphQuad
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