mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
PathData::bounds now counts a subpath of one anchor, so three places that measure what a path paints measured a point nothing paints: - .ai import: the box arrowheads are placed against measured a visible fill by the path's geometric box. A filled path with a head and one stray anchor no longer fit the drawn look, so its style was not read. The fill now measures PathData::drawn_bounds(false). - Type copies a Transform effect moves: the ink box of the glyph outlines now counts a contour of one anchor only where a round or projecting character stroke cap draws it as a dot. - .ai envelopes: a piece of type outlines made only of contours of zero length kept them and counted their point. It now counts nothing, as the rule for such contours says. Tests: a filled line with a head and a stray anchor still fits a look of the line and its head; a dot-only piece beside a stroked square adds nothing to the square's box. Both fail without the change.