7.2 Font Fallback
When a character is not found in the current font, D3-TUI will: 1. Try the next font in the fallback chain 2. Use a default replacement character (□) 3. Skip the character (last resort)
/* Set font fallback chain */
void d3tui_font_set_fallback(d3tui_font_t *primary,
d3tui_font_t **fallbacks, size_t count);
8. Performance Considerations
8.1 Texture Upload Optimization
- Upload font textures once at load time
- Keep textures in VRAM for the lifetime of the font
- Use DMA transfers for texture uploads
8.2 Memory Optimization
- Share texture atlases between fonts when possible
- Use paletted textures for monochrome fonts
- Compress texture data if memory is constrained