mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 23:05:05 +00:00
Paragraph Style Options and New Paragraph Style gain a Tabs section. It lists the style's stops and edits the selected stop's Alignment, position (X:, or Y: for vertical type), Leader and Align On character. Add puts a left stop 36 pt past the furthest one, Delete Tab removes the selected stop, and Clear All Tabs leaves the style with no stops. OK sorts the stops by position and keeps the stop edited last when two share one position. Reset Panel removes the style's tabs. paraStyle.new, paraStyle.setAttrs and paraStyle.edit check changed tabs stop by stop: at most 256 stops, and each changed stop's position from 0 to 100000 pt and leader of at most 8 characters. Stops the style already has are kept as they are. Changed tabs are sorted by position, keeping the first of stops at one position. text.tabs.set rejects a leader longer than 8 characters, an Align On value of more than one character and more than 256 stops. Loading paragraph styles skips a style whose indents, spacing, hyphenation, justification or tabs are out of range. Docs: docs/mcp.md, docs/target-app-parity.md.