Expand description
TrueType Font Rendering
TrueType parser with integer Bezier rasterization and glyph caching. All math is integer-only (no floating point).
Structs§
- Glyph
Bitmap - Rendered glyph bitmap.
- Glyph
Cache - Glyph cache with LRU eviction.
- Glyph
Contour - A contour in a glyph outline (sequence of points).
- Glyph
Outline - A parsed glyph outline.
- Head
Table - Parsed
headtable fields. - Hhea
Table - Parsed
hheatable fields. - Maxp
Table - Parsed
maxptable fields. - Outline
Point - A point in a glyph outline.
- Table
Entry - A table directory entry.
- Table
Tag - TrueType table tag (4-byte ASCII).
- TtfParser
- TrueType font parser.
Enums§
- Font
Error - Errors during font parsing or rendering.
- Hinting
Mode - Hinting mode stub.
- Subpixel
Mode - Subpixel rendering mode.
Functions§
- apply_
hinting - Apply hinting to a glyph outline (stub – returns outline unchanged).
- rasterize_
outline - Rasterize a glyph outline to a grayscale bitmap using integer math.
- render_
glyph - Render a character to a grayscale bitmap at the given pixel size.