pub struct PlacedGlyph {
pub glyph: CachedGlyph,
pub x: i32,
pub y: i32,
pub key: u64,
pub color_rgba: Option<Arc<ColorGlyph>>,
}Expand description
One glyph placed by layout_glyphs: the cached rasterization plus its
top-left pixel position and a stable atlas key (D109/Phase 27 Step 4).
Fields§
§glyph: CachedGlyph§x: i32Top-left of the glyph bitmap, physical px.
y: i32§key: u64Stable across frames: px_bits << 32 | char << 1 | wants_bold.
Face routing is deterministic per (char, bold), so this fully
identifies the rasterization without exposing FaceKey.
color_rgba: Option<Arc<ColorGlyph>>Some for a color-emoji glyph (Phase 32 Step 4) — glyph above is
then a cheap zero-size placeholder (never read) and consumers must
blit this RGBA bitmap directly instead of using glyph’s coverage
mask. Reuses the same premultiplied-RGBA-quad pipeline
DrawCommand::BlitRgba (the Image widget) already established in
both the CPU and GPU-shapes paths, rather than adding a second
coverage-atlas page — real color rendering with no new render
primitive.