jaywcjlove / svgtofont

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

some of the output font icons look crooked and sketchy #209

Open Alimahmooodi opened 1 year ago

Alimahmooodi commented 1 year ago

When I use svgtofont to convert the SVGs some of the font icons look different from the original SVG file. anybody knows the reason behind this issue? here is a photo of an example: Original SVG: image The output font icon: image

here is the SVG file if you want to try it yourself: ballot-check

p.s: I have already tried svgFixer but it didn't help

jaywcjlove commented 1 year ago

@Alimahmooodi

schmidt-oliver commented 11 months ago

@Alimahmooodi Try setting the font height to 1000 or higher. You can think of the value as something like precision rather than size.

svgicons2svgfont: {
    fontHeight: 1000,
}
macaroni37 commented 10 months ago

@Alimahmooodi Try setting the font height to 1000 or higher. You can think of the value as something like precision rather than size.

svgicons2svgfont: {
    fontHeight: 1000,
}

Confirmed this extra setting fixed the issue

Opty1712 commented 3 months ago

@Alimahmooodi Try setting the font height to 1000 or higher. You can think of the value as something like precision rather than size.

svgicons2svgfont: {
    fontHeight: 1000,
}

confirm it works!