mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 06:01:18 +00:00
The text document reader set a type stroke's paint and weight but never its cap, join or miter limit, so every stroked text object imported from a .ai or EPS editing copy drew with a miter join at a limit of 10. Type the file strokes with round joins, or with a miter limit of 4 or less, drew long spikes at its sharp corners. Keys 61, 62 and 64 of a run's character attributes (the run, its character style, then the document defaults) are now read as the stroke's cap (0 butt, 1 round, 2 projecting), join (0 miter, 1 round, 2 bevel) and miter limit, as PostScript numbers caps and joins. In the users' files the page strokes type with exactly these settings. Other values keep the defaults, a miter limit is capped at 500, and type without a stroke keeps the defaults. - ate.rs: Style reads the three keys and char_style passes them on, with a unit test over defaults, character styles, run overrides, hostile values and unstroked type. - tests_native.rs: an imported story with round, bevel, default and unstroked runs. - docs/file-format-parity.md: revision row, status line, one line on the mapping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>