svgtofont icon indicating copy to clipboard operation
svgtofont copied to clipboard

some of the output font icons look crooked and sketchy

Open Alimahmooodi opened this issue 1 year ago • 4 comments

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

Alimahmooodi avatar Jul 04 '23 09:07 Alimahmooodi

@Alimahmooodi

  • https://github.com/jaywcjlove/svgtofont/issues/195#issuecomment-1609418046

jaywcjlove avatar Jul 05 '23 03:07 jaywcjlove

@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,
}

schmidt-oliver avatar Aug 01 '23 12:08 schmidt-oliver

@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

macaroni37 avatar Aug 29 '23 02:08 macaroni37

@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!

Opty1712 avatar Apr 08 '24 13:04 Opty1712