Googleフォントのカスタムフォントを使用するテキストを持つdivがあります。フォントサイズはピクセルで定義され、行の高さが定義されます。ある場合のFirefoxでブロックの高さは、Chromeで、それは472FirefoxとChromeの計算された高さの差
http://jsbin.com/wezasekafo/1/edit?html,css,output
* {
padding: 0;
margin: 0;
}
div {
font-family: "Roboto";
font-size: 35px;
width: 500px;
line-height: 1.7;
border: 1px solid;
}
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<div>
Lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text, lines of text,
lines of text, lines of text
</div>
私はそこに何が起こっているかを理解しようとしていている間、476となるように計算されますそれに対処する方法。 -