Lorp / samsa

Variable font inspector
https://lorp.github.io/samsa/
Apache License 2.0
243 stars 23 forks source link

SVG paths should be closed using "Z" in all cases #71

Closed Lorp closed 2 years ago

Lorp commented 2 years ago

In cases where a contour ends on a curve, the SVG path "Z" ClosePath command is not being used. This is fine when SVG paths are filled and not stroked, as in normal font glyphs. However when SVG paths are stroked, the "Z" command determines whether an end cap or a join will be used. In fact a join is always required, and therefore all contours should terminate with "Z".

Lorp commented 2 years ago

Fixed in 55cbd42408ffec4c58e71e3ee99dc94dcab7a52b