When using a custom font via @font-face
, it does render just as I think it should in Chrome. In Firefox, though, additional padding (top and bottom) is added to the font.
Here is my example page that outlines the problem.
Is there anything I can do about it?
FYI, this also happens in Firefox on Linux (and not in Chromium). I tried to load your font in FontForge and immediately got a warning:
I think the problem is that the VDMX (Vertical Device Metrics) table is defect:
This looks exactly like what happens in Firefox: somewhere the minimum and maximum height is incorrectly calculated. This is also clear when you select the text: the selection box extends to the utmost top and bottom of the line; if the
h1
element really had padding, you would see a gap between the top and bottom of the line and the selection box.Also, validation revealed that almost every glyph is “missing points at extrema”:
A quick search showed:
Just Add:
to your CSS rules