Skip to main content

Module commands

Module commands 

Source
Expand description

Deferred atlas rendering commands.

During glyph encoding, outline and COLR glyph draw commands are recorded into an AtlasCommandRecorder rather than being executed immediately. At render time the application drains the pending recorders (grouped by atlas page) and replays them into a single glyph renderer that is reset between pages.

This approach:

  • Supports multiple atlas pages (not just page 0)
  • Keeps a single glyph renderer (same atlas page size)
  • Mirrors the drain_pending_uploads pattern used for bitmap glyphs

Structs§

AtlasCommandRecorder
Records atlas draw commands for a single atlas page.

Enums§

AtlasCommand
A single draw command recorded for deferred atlas rendering.
AtlasPaint
Paint type for atlas commands.