⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module font_render

Module font_render 

Source
Expand description

TrueType Font Rendering

TrueType parser with integer Bezier rasterization and glyph caching. All math is integer-only (no floating point).

Structs§

GlyphBitmap
Rendered glyph bitmap.
GlyphCache
Glyph cache with LRU eviction.
GlyphContour
A contour in a glyph outline (sequence of points).
GlyphOutline
A parsed glyph outline.
HeadTable
Parsed head table fields.
HheaTable
Parsed hhea table fields.
MaxpTable
Parsed maxp table fields.
OutlinePoint
A point in a glyph outline.
TableEntry
A table directory entry.
TableTag
TrueType table tag (4-byte ASCII).
TtfParser
TrueType font parser.

Enums§

FontError
Errors during font parsing or rendering.
HintingMode
Hinting mode stub.
SubpixelMode
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.