grunt-webfont icon indicating copy to clipboard operation
grunt-webfont copied to clipboard

Wider SVGs become smaller in font

Open elado opened this issue 11 years ago • 9 comments

I tried with and without autowidth but it seems that wider SVGs are converted to smaller fonts.

For example, these two SVGs:

screen shot 2015-02-15 at 2 14 15 pm

End up becoming these font icons at same font size:

screen shot 2015-02-15 at 2 17 25 pm

Is there a way to force same height on all icons?

elado avatar Feb 15 '15 22:02 elado

Use the same size SVG for everything. You're mixing and matching sizes here...

dovy avatar Feb 17 '15 22:02 dovy

But if I do so, I'll have extra spacing on the sides for the square ones, no?

With letters, the letter "I" is still same height as "W" but takes less width. Is it possible to achieve with fontforge?

elado avatar Feb 17 '15 22:02 elado

Not sure. I use fontforge engine, not the node version. ;)

dovy avatar Feb 17 '15 23:02 dovy

I use fontforge as well. Question is if there's a certain configuration to make it force a specific height, not width.

elado avatar Feb 17 '15 23:02 elado

I'm sorry, but I don't know. I'm just a user. ;)

dovy avatar Feb 17 '15 23:02 dovy

:+1:

lvl-svasseur avatar Apr 30 '15 19:04 lvl-svasseur

i've got the same issue. someone found a workaround?

pwilms avatar Jan 06 '16 13:01 pwilms

Similar or related issue for me. Source SVG size is 800×512, converted glyph is wide in proportions and contains all image data (and that is correct), but for some reason the glyph overflows the character area from the right and overlaps the next character (and that is the problem).

Any possibility for non-square (wide) glyphs?

thybzi avatar Feb 20 '16 11:02 thybzi

Isn't it related to #186?

thybzi avatar Feb 20 '16 16:02 thybzi