Why does font-icon render outside of its content area? and how to fix it?

101 Views Asked by At

I have a .woff font file consisting of font-icons. These icons are rendered differently in Mac and in Windows. I suspect the reason to be different Win Ascent/Descent and HHead Ascent/Descent values in font metrics.

This icon-font file is generated from svg files using webfonts-generator package

Here is the snapshot of same icon rendered in both mac and windows

Mac: enter image description here

Windows: enter image description here

could anyone tell me how to fix this?

1

There are 1 best solutions below

0
Shirish Maharjan On

may be your line-height is less than font-size