mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 14:33:34 +00:00
Character Style Options and New Character Style get an Advanced Character Formats section with Horizontal Scale, Vertical Scale, Baseline Shift, Character Rotation and Language. Empty fields stay unset, an explicit 100%, 0 degrees or English: USA stays distinct from unset, and Reset Panel on the section clears only these five. Scales take 1% to 10000% and baseline shift -1296 pt to 1296 pt, as text.setRangeStyle does; rotation is stored from -180 to 180 degrees. Language sets the language the characters are shaped in; hyphenation and spelling do not change. A field still as it opened keeps its stored value without the range check, so a style captured from a scaled type object can be renamed. The same applies to Basic's Size and Leading minimum. charStyle.edit keeps a language tag that is not in the list when the style already has it, so a style read from a file with such a tag can be edited.