canvas/ is a generic drawing interface on one NanoVG Vulkan context per
window surface. NanoVG reads the recording command buffer from the
GpuFrame handed to drawBegin(). It offers only generic primitives: shapes,
gradients, paths with holes, composite operations, typed text styles
(TextStyle, TextAlign, FontFace) and typed ImageHandles for files, pixels
and registered render targets. Origin and clipping are scoped: SavedState,
Translation and Placement restore them, and every primitive honours the
origin.
Text uses bundled faces (regular, bold, mono, math) with symbol,
special-character and emoji fallbacks, and a Cyrillic cut of the matching
weight last in each face's chain; tests check every bundled face loads and
covers the characters found in UI sources and the Russian alphabet.
rsc/FONTS.md records where each font comes from.
decorations/ owns client-side decorations as one concept: WindowDecorations
paints the base, rounded corners, outline and shadow of the same
WindowFrame the backend uses for edge hit-testing.
debug_ui/ owns the process ImGui and ImPlot contexts. DebugGUI renders
through the ImGui Vulkan backend with its own platform layer fed from
InputState, or runs headless so code that calls ImGui directly still works
when the interface is hidden.