mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
DXF text justified Fit now keeps its height and stretches or squeezes horizontally to run exactly from its first point to its second; Aligned text scales as a whole, height included, to do the same, its width factor kept. Attributes justified the same way follow suit. Without a second point, or with both points the same, the text keeps its size as before. Root cause: the importer took the angle of the two points and anchored the text at the first, but kept the text's height and width factor, ignoring the distance between the points. The text now records that span and, when it becomes a text object, is measured in the font it is set in, then given the horizontal scale (Fit) or size (Aligned) that makes it end at the second point, kept between 1% and 10,000% of its natural length. The import's bounds estimate uses the same scale. Co-Authored-By: Claude Opus 5.5 <[email protected]>