Expand description
Shared glyph rendering logic for rendering backends.
Enumsยง
- Cache
Result ๐ - Outcome of a cache-first render attempt.
Functionsยง
- calculate_
raster_ ๐metrics - Calculate raster metrics (pixel bounds, bearings) from a glyphโs bounding box.
- fill_
glyph ๐ - Fill a prepared glyph, using the glyph atlas when possible and falling back to direct rendering otherwise.
- fill_
uncached_ ๐outline_ glyph - insert_
and_ ๐render_ bitmap - insert_
and_ ๐render_ colr - insert_
and_ ๐render_ outline - Insert an outline glyph into the atlas and render it from there.
- quality_
for_ scale - Choose image sampling quality based on downscale factor.
- quality_
for_ ๐skew - Choose image sampling quality based on skew presence.
- render_
bitmap_ ๐glyph_ from_ atlas - Render a bitmap glyph from the atlas cache.
- render_
cached_ ๐glyph - Render a cached glyph from the atlas.
- render_
colr_ ๐glyph_ from_ atlas - Render a COLR glyph from the atlas cache.
- render_
colr_ ๐to_ atlas - Record COLR glyph draw commands into the atlas command recorder.
- render_
from_ ๐atlas - Render from the atlas, constructing the appropriate image from the slot.
- render_
outline_ ๐glyph_ from_ atlas - Render an outline glyph from the atlas using bearing-based positioning.
- render_
outline_ ๐to_ atlas - Record outline glyph draw commands into the atlas command recorder.
- render_
uncached_ ๐bitmap_ glyph - render_
uncached_ ๐colr_ glyph - replay_
atlas_ commands - Replay recorded atlas commands into a
DrawSink. - stroke_
glyph ๐ - Stroke a prepared glyph, using the glyph atlas when possible and falling back to direct rendering otherwise.
- stroke_
uncached_ ๐outline_ glyph - supports_
atlas_ ๐caching - Returns
trueif the transform is safe for atlas-cached glyph rendering.