Skip to main content

Module glyph

Module glyph 

Source
Expand description

Glyphs as alpha bitmaps, rendered the way the oracle’s FreeType renders them.

Part of the backend seam, for exactly one type: SubpixelBitmap is what RenderDevice::draw_glyph_lcd hands a backend, so the trait cannot be implemented without naming it. Everything else here — the gray rasterizer, the LCD filter, the session’s bitmap cache — is the engine’s own and is private.

Not a general glyph rasterizer: above a size threshold the outline is filled instead, and RenderOptions::subpixel_text_positioning is how a caller asks for true fractional placement at every size.

Structs§

SubpixelBitmap
One glyph rasterized to three coverages per pixel — one per LCD stripe.