Skip to main content

Module renderer

Module renderer 

Source
Expand description

Shared glyph rendering logic for rendering backends.

Enumsยง

CacheResult ๐Ÿ”’
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 true if the transform is safe for atlas-cached glyph rendering.