AUDIO
Source snapshot · 11 November 2026

Portable layout, SVG drawing and animation

Typed paths and local glyph outlines

PathCommand supports move/line/quadratic/cubic/close geometry. SvgDrawing::path accepts 1..4096 finite typed commands: start with MoveTo, draw/close only in an open subpath, and start another subpath after Close. SVG's normal implicit fill closure applies. No arbitrary markup/URL/transform string is accepted. Existing 4096 drawing-command/1 MiB document limits and atomic rejection remain.

With text enabled, TextFont::outline_glyph extracts selected-instance TrueType glyf outlines into at most 4096 finite font-unit path commands. Empty outlines (e.g. spaces) yield nothing; invalid IDs reject. CFF/Type1/color/bitmap rendering is unsupported. Outline loading can allocate before output limits, so it belongs on UI/worker threads. SvgDrawing::shaped_text shapes a complete independent run and renders its local outlines at a caller-selected baseline, converting upward font Y to downward SVG Y. It emits paths without text nodes/font URLs. Glyph zero draws that font's replacement outline. Whole-run failure restores document bytes and command count, even if earlier glyph paths succeeded.

Consumers own headroom/layout, font permissions and meaningful accessible titles; outline paths themselves do not supply text semantics, selection or text input. These outline APIs do not provide hinted/native/GPU/bitmap rendering. The independent CPU raster feature accepts prepared paths and local TrueType glyph outlines. The example uses public licensed local font bytes and needs no system fallback:

CARGO_BUILD_JOBS=2 cargo run -p ravet-surface --features text \
  --example font-outlines --locked -- /path/to/local.ttf > target/font-outlines.svg

Tests cover contour/curve serialization, invalid topology/nonfinite/capacity preservation, actual local glyph/space/invalid-ID outlines, outline-only output and whole-run capacity rollback. A 640×240 fixture contains 25 paths/18529 bytes; the local collaborative browser reports all ink bounds inside the viewport and no text nodes. Preview snapshots fail on its client, so pixel inspection used an independent librsvg export: readable Latin, joined Arabic and combining marks. That export tool is validation evidence, not a RAVET raster API. See decision 0093.