Malolan
Malolan

Reputation: 63

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

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?

Upvotes: 0

Views: 110

Answers (1)

Shirish Maharjan
Shirish Maharjan

Reputation: 502

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

Upvotes: -1

Related Questions