我的嵌入式webfont似乎有一个永久的填充底部

时间:2018-05-09 18:40:46

标签: html css fonts webfonts woff

下面的图片展示了我的问题。无论使用哪种字体,您都可以看到它不像其他字体那样垂直居中。我没有任何严厉的行高设置。在我使用它的任何地方都是这样的。

我不知道为什么,我一直在谷歌搜索这个问题,除了关于行高的教程之外什么都没有,至少没有帮助。

字体为ITCAvantGardeStd-Demi.otf。

enter image description here

enter image description here

遵循zgood的建议后,转换字体并检查"修复垂直度量标准"在https://transfonter.org/解决了我的问题。

使用"修复垂直度量标准":

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:2)

有时您需要规范字体垂直指标。您可以通过Font SquirrelTransFonter等网络字体生成器运行它,然后选择“修复垂直指标”以生成新的字体文件。