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

rasterize_outline

Function rasterize_outline 

Source
pub fn rasterize_outline(
    outline: &GlyphOutline,
    scale_num: u32,
    scale_den: u32,
) -> GlyphBitmap
Expand description

Rasterize a glyph outline to a grayscale bitmap using integer math.

scale_num / scale_den is the scaling factor (e.g., pixel_size / units_per_em). Uses midpoint line drawing for on-curve segments and quadratic Bezier subdivision for off-curve control points.