sunflowerdeath / webfonts-generator

Generator of webfonts from svg icons
The Unlicense
271 stars 152 forks source link

SVG rendering with black background #55

Open cs1193 opened 5 years ago

cs1193 commented 5 years ago

I tried rendering svg icons to webfonts, but I am facing issue for few icons which renders with a black background, however when I do the same in IcoMoon generator it works fine.

Original SVG: screen shot 2018-08-22 at 2 28 26 pm

As generated by webfonts-generator screen shot 2018-08-22 at 2 25 47 pm

As generated by icomoon screen shot 2018-08-22 at 2 25 59 pm

I tried to go with

formatOptions {
  svg: {
    normalize: false
  }
}

But no icons were rendered. Any help here would be great.

csclem commented 5 years ago

Up!

guillaume-duchemin commented 5 years ago

same issue here

y-nk commented 5 years ago

i had the same issue as well. it appears to come mostly from my svg files. multiple paths as well as the "even-odd" fill rule are quite messy to get around.

guillaume-duchemin commented 5 years ago

After search, I solve my problem by delete transparent background on my SVGs and simplify xml code with export options.