mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
Character and paragraph styles checked a new attribute against the keys its base style serializes, and the JSON leaves out Auto leading and kerning, no mojikumi and other defaults. So charStyle.new / setAttrs refused leading or kerning, paraStyle.new refused mojikumi, and a style captured from text with explicit leading failed to apply to Auto-leading text, to duplicate or to come back out of a library. The check now also accepts every field name the style type deserializes (read from serde's derive), still refusing unknown keys and the file-only justify_auto. The test creates and edits styles with kerning, leading, small caps, mojikumi and direction, applies a captured leading style to fresh text with and without Clear Overrides, duplicates it, uses it from a library, and checks `nope` and `justify_auto` are still refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # ROADMAP.md