mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
document.setup accepts a superscript and subscript size of 1 to 500% and a position of -500 to 500%, and a small caps size of 1 to 200%. text.setFormat copies these proportions into the characters it formats. A .vectorcraft file's characters, character styles and graph label styles opened with the proportions they held. With a superscript size of 0, the superscript characters were not drawn, and with a superscript or small caps size of 1.797e308, moving the type failed with "result would exceed the canvas". These proportions are now read as the nearer end of each range when a file opens: in the type of the layers, symbols, graph designs, patterns and the pattern definition that Cancel puts back in pattern editing mode, in graph label styles and in character styles. Proportions in range and the other character attributes open as saved. Docs: docs/mcp.md (Small Caps, Superscript and Subscript).