mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 17:05:55 +01:00
A stroke's arrowheads are symbols of the file that its style's stroke dictionary names (BSArrowBeginSymbol / BSArrowEndSymbol, with BSArrowBeginScale / BSArrowEndScale). The importer didn't read them, so lines came in without their heads. The style parser now records those symbol references, and the reader turns each arrowhead symbol into a custom arrowhead: the symbol's level, 1 pt sample of the line gives the axis and where the line stops under the head, the rest of its art is the head, tip at its rightmost point. A custom arrowhead can now carry that stop. The head goes on the path with its tip on the end or past it (Extend), whichever gives the object its drawn art's bounds; otherwise, and for heads that can't be read faithfully, the object keeps its drawn look.