sapegin / grunt-webfont

SVG to webfont converter for Grunt
MIT License
1.11k stars 210 forks source link

Glyphs gets distorted after generating from SVG ( having matrixes with negative values using version 1.6.0) #390

Open sachinsingh007 opened 5 years ago

sachinsingh007 commented 5 years ago

Hi,

I am using v1.6.0 for the generating glyphs from svgs.

I come across a issue, after generating glyph (using ^1.6.0) it gets distorted. but when using v0.5.4 it generates correctly.

though I examine in svg code, I found that it uses rect with matrices(including negative values) therefore I removed matrix transformation and manually change rect to path(without matrix) then it works and glyph no longer distorted.

Distorted glyph using rect with matrix transformation

image

image

Corrected glyph using path without matrix transformation image

image