goud_engine/rendering/text/mod.rs
1//! Text rendering infrastructure.
2//!
3//! This module provides glyph rasterization, atlas generation, and caching
4//! for rendering text with TrueType/OpenType fonts.
5//!
6//! # Architecture
7//!
8//! 1. **Rasterizer** (`rasterizer`) - wraps `fontdue` to produce per-glyph
9//! grayscale bitmaps with metrics.
10//! 2. **Glyph Atlas** (`glyph_atlas`) - packs rasterized glyphs into a single
11//! RGBA8 texture atlas with UV lookup.
12//! 3. **Atlas Cache** (`atlas_cache`) - caches generated atlases by
13//! (font handle, pixel size) to avoid repeated rasterization.
14
15pub mod atlas_cache;
16pub mod glyph_atlas;
17pub mod rasterizer;
18
19pub use atlas_cache::GlyphAtlasCache;
20pub use glyph_atlas::{GlyphAtlas, GlyphInfo, UvRect};
21pub use rasterizer::{GlyphMetrics, RasterizedGlyph};