mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-20 01:14:23 +01:00
Part of #4934. type.retype set each line of outlined text as its own point type object, even when the lines stack as one paragraph. - Opaque, Normal lines with a solid fill or none and no stroke that follow each other in paint order, with the same group, paint, font, size, turn and tracking, each the same leading (0.25 to 3 times the size) below the one before and lined up at their starts, ends or centers, become one area type object. Its leading is Auto when Auto puts the last baseline in place, else the mean distance between the baselines, and its alignment is left, right or center. Its frame is Convert To Area Type's, now shared through typemenu::point_to_area. An untracked line of one or two glyphs takes the others' tracking. - Every object is laid out and compared with the outlines first: when area type would move a glyph the lines stay multi-line point type. When that also moves a glyph, the block ends at that glyph's line and the lines after it join again. Type whose bounds would reach past the coordinate limit stays apart. - Text Wrap objects above new area type are taken into account; when checking them on the changed layers would copy more than 2,000,000 anchors, subpaths and shapes, the lines stay multi-line point type. text::wrap_copy_units counts that work without copying the outlines, and wrap_work no longer copies them to count. - The result's fonts entries add leading and area, and texts join an object's lines with line breaks. These rules are VectorCraft's own. Docs: docs/mcp.md (Retype several lines), docs/type-parity.md (Retype row), docs/target-app-parity.md, docs/roadmap.md (M7 row).