webfonts-generator icon indicating copy to clipboard operation
webfonts-generator copied to clipboard

SVG rendering with black background

Open cs1193 opened this issue 6 years ago • 4 comments

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.

cs1193 avatar Aug 22 '18 09:08 cs1193

Up!

csclem avatar Sep 20 '18 13:09 csclem

same issue here

guillaume-duchemin avatar Sep 28 '18 13:09 guillaume-duchemin

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.

y-nk avatar Oct 02 '18 07:10 y-nk

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

guillaume-duchemin avatar Oct 02 '18 08:10 guillaume-duchemin