johanmattssonm / birdfont

A font editor for creating fonts in TTF, EOT, SVG and BIRDFONT format.
https://birdfont.org
462 stars 32 forks source link

Add support for rounded join and endcap in SVG glyph import #73

Closed oskay closed 6 years ago

oskay commented 6 years ago

Following up on a footnote from issue #72:

If the input SVG file contains presentation attributes to set the stroke linejoin and linecap styles to rounded, for example in: <svg xmlns="http://www.w3.org/2000/svg" viewBox=" 0 0 1000 1000"><g><path fill="none" stroke="#008888" stroke-width="40" stroke-linejoin="round" stroke-linecap="round" d="[...] "/></g></svg>

Then those attributes are currently ignored. SVG file and screenshots (Inkscape, Birdfont) attached.

Inkscape:

screen shot 2018-10-16 at 9 12 31 am

Birdfont:

screen shot 2018-10-16 at 9 12 53 am

U+78_MkII.zip

johanmattssonm commented 6 years ago

Thank you. The next version of Birdfont will include a fix for this problem.

johanmattssonm commented 6 years ago

BirdFont 3.14.0 is released. It has support for round line joins.