Skip to main content

Module text

Module text 

Source
Expand description

Vello CPU glyph rendering backend.

Provides GlyphAtlas (atlas backed by per-page Pixmaps) and the GlyphRenderer implementation for RenderContext that rasterises glyphs into CPU-accessible pixel buffers.

The key difference from the hybrid backend is that atlas pages are owned as Arc<Pixmap>s here, so the CPU renderer can read pixels directly without any GPU upload step.

Modulesยง

debug ๐Ÿ”’
Debug utilities for visualizing glyph bounds during rasterization.

Structsยง

GlyphAtlasResources ๐Ÿ”’

Functionsยง

atlas_page_image_id ๐Ÿ”’
clear_pixmap_region ๐Ÿ”’
Zero out a rectangular region in the atlas pixmap.
copy_pixmap_to_atlas ๐Ÿ”’
Copy bitmap glyph pixels into a rectangular region of an atlas page.
ensure_page ๐Ÿ”’
Ensure a pixmap exists for the given page, creating it if needed.

Type Aliasesยง

GlyphRunBuilder
A glyph run builder.