5.2 Font Conversion Tool
A Python tool (d3tui-fontconv) will convert TTF/OTF
fonts to .d3f format:
d3tui-fontconv input.ttf --size 16 --output font.d3f
6. Performance Optimization
6.1 Batch Rendering
- Group characters by texture atlas to minimize texture switches
- Use triangle strips for character quads when possible
- Submit all text in a single display list
6.2 Dirty Rectangle Optimization
- Track which screen regions have changed
- Only redraw changed regions
- Maintain a dirty rectangle list