jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
542 stars 85 forks source link

unify width and height #226

Closed xtrashild closed 1 month ago

xtrashild commented 5 months ago

Hi,

no matter which font-size I use, I end up having and icon that has different width and height, usually the height is correct but the width is stretched.

examples:

I set font-size for the icon to be 10px I expect 10x10 I get 12.8x10

I set the font-size for the icon to be 12px I expect 12x12 I get 15.37x12

is there a property I can set to prevent the stretching?

jaywcjlove commented 4 months ago

I have not reproduced the issue you described. I guess it might be necessary to check the size of the icon.