mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 10:17:02 -06:00
The Paragraph panel menu's Roman Hanging Punctuation was a disabled stub. It is now a per-paragraph attribute: in a left-to-right paragraph of point or area type with it on, the punctuation Optical Margin Alignment hangs (quotation marks, hyphens, full stops and commas wholly; asterisks, tildes, ellipses, en and em dashes, colons and semicolons by half) hangs outside the margin when it starts or ends a line, on the same sides (left-aligned lines at their left, right-aligned at their right, centered and justified at both); letters don't hang. With Optical Margin Alignment on as well, letters hang too. East Asian punctuation keeps hanging only through burasagari. The layout shares Optical Margin Alignment's hanging code, given the share of each glyph that hangs. text.setFormat takes romanHangingPunctuation; it is off by default, saved only when on, carried by paragraph styles (New and Redefine capture it) and turned off by Reset Panel. The panel menu item is a checkbox enabled with type selected. Docs: docs/mcp.md, docs/type-parity.md, docs/gaps.md. Closes #2756. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>