我不明白为什么在我的段落中掉线以下的字母(如 g 和 y)会被截断。我尝试将线高设置得更高,但它仍然将它们切断。我在 px、pt 和 em 中使用了字体大小,但仍然没有运气。现在,当我将字体大小设置得更大(如 3.0em)时,问题就消失了。但我需要字体大约是这个大小。
这是链接:http ://sportegy.com/font-test/font-test.html
您需要使用该链接并查看我拥有的 .ttf 字体才能真正看到问题所在。不过,我也会在这里粘贴我的 HTML。
<html>
<head>
<style>
@font-face {
font-family: lib-font;
src: url('css/LiberationSansNarrow-Regular.ttf');
}
@font-face {
font-family: lib-bold;
src: url('css/LiberationSansNarrow-Bold.ttf');
}
</style>
</head>
<body>
<span style='font-family: lib-font;color: #232322;font-size: 1.0em;'>
The quick brown foxy was jumping over the green doggy.<br/>
The quick brown foxy was jumping over the green doggy.<br/>
The quick brown foxy was jumping over the green doggy.<br/>
The quick brown foxy was jumping over the green doggy.<br/>
The quick brown foxy was jumping over the green doggy.
</span>