mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
PDF import gives a space read from a gap between two glyphs tracking of its own when the line's tracking cannot place the glyphs after it. A space glyph that the file draws was not measured this way: the gap before or after it was spread over the whole line as one tracking value, so the words after it moved. VectorCraft's own PDF export draws a tracked space and leaves its tracking after it. A space the file draws between two glyphs on a line is now measured from the end of the glyph before it to the start of the glyph after it, and takes tracking of its own on the same terms as a space read from a gap. Two or more spaces in a row, and a space at the start or end of a line, keep the line's tracking. The tracking calculation builds a map of the line's laid-out advances by byte offset once. A wrapped line whose spaces each have tracking of their own, within a fiftieth of an em of the first space's tracking, can still come back as part of justified area type. Wrapped lines whose spaces' trackings differ by more than that stay point type with their words in place.