mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 16:37:32 +00:00
SVG export lays out each type object once and hands that layout to the writer for live text, type on a path, outlines and inside or outside character strokes, where each of them laid the same type out again. Type on a path, bidirectional type and type that falls back to outlines go from two layouts to one; inside or outside character strokes and the object's own fills go from up to four to one. The outline and character-stroke writers also group glyphs by run in one pass instead of filtering every glyph for each run. The written SVG, warnings and notes are unchanged. A test compares the export with each writer laying the type out on its own over 17 kinds of type and checks the layout counts; an ignored test times a large document.