mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 02:37:01 -06:00
Apps write type on a path one glyph at a time, each placed and turned along the curve. The importer joined glyphs into a line only while they kept the first glyph's direction. Type on a gentle curve was flattened into straight lines, and type on a tighter curve fell apart into one object per glyph. A glyph that starts about where the previous one ends, turned a little from it (under about 20°), now continues the line. A line whose baseline turned more than about 3° becomes type on a path: its path is a smooth curve (Catmull-Rom as cubic Béziers) through the glyphs' baseline origins and the end of the last glyph. Spaces between words are measured along the last glyph. Straight type, rotated or not, imports as before. Test: "ARCHING" written glyph by glyph along an arc imports as one type-on-a-path object with that text and a curved path; slightly rotated straight type stays point type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>