Chlumsky / msdfgen

Multi-channel signed distance field generator
MIT License
3.97k stars 412 forks source link

svg circle missing #124

Closed caperaven closed 1 year ago

caperaven commented 3 years ago

I converted the accessibility icon (renamed to icon2) I found that the head is missing from the png.

The svg code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2h5v5h2v-5.5c0-1.1-.9-2-2-2h-3v-3.45c1.29 1.07 3.25 1.94 5 1.95zm-6.17 5c-.41 1.16-1.52 2-2.83 2-1.66 0-3-1.34-3-3 0-1.31.84-2.41 2-2.83V12.1c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5 2.42 0 4.44-1.72 4.9-4h-2.07z"/></svg>

icon2

msdfgen -svg icon2.svg -o icon2.png -size 24 24

Ps, this is from the material icons set from google. Is there any way we can support non path items in the future?

Chlumsky commented 1 year ago

Support for <circle> and other SVG elements added in 0286aeb6eb452ec1cd9636b43cf303d33f61eb31.