text_fonts

module pkg::alloy::text::font::rastersource

Outlines into coverage masks (PLAN.md, F4 question 2): every line's signed area accumulated per pixel, then summed along each row, as font-rs does; curves are flattened into lines first. Grayscale, unhinted.

fn rasterizesource

exp fn rasterize(o: &Outline, scale: f32, shift: f32) -> GlyphMask

The outline at scale pixels a font unit, moved right by shift pixels (a fraction, for subpixel positions).

fn rasterize_withsource

exp fn rasterize_with(o: &Outline, t: &Affine) -> GlyphMask

The outline taken from font units (y up) to pixels (y down) by the transform.

fn rasterize_withinsource

exp fn rasterize_within(o: &Outline, t: &Affine, window: [i32 : 4]) -> GlyphMask

The outline taken to pixels by the transform, its mask within the window (left, top, right, bottom), past which it is cut.