mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 10:17:02 -06:00
The toolbar listed the Touch Type tool (Shift+T), but choosing it did nothing. The reference app's Touch Type tool moves, scales and rotates one character of live type by dragging the handles of a box around it. A click with the tool now selects one character and shows a box around it. Dragging the box or its lower-left handle moves the character along its line and up or down. The upper-left handle scales it vertically, the lower-right handle scales it horizontally, the upper-right handle scales it proportionally, and the upper-middle handle rotates it. A character rotated by up to about 84 degrees follows the pointer too. Near a quarter turn, a drag moves it only along its line. Escape cancels a drag, and otherwise lets go of the character. Each drag is one text.touchType command and one undo step. It sets the character's baseline shift, scales and rotation, and moves it along its line by changing its own kerning and the kerning of the character before it, within the kerning range. The characters after it stay where they are. Where the font kerned the character with its neighbors, the two kerning values also keep the character in place when it is only raised, scaled or rotated. The characters after it stay where they were, or move by the change in its width when it is scaled. The first character of a line and a right-to-left character move only up and down. The type stays editable. Docs: docs/mcp.md, docs/target-app-parity.md, docs/type-parity.md.