Why does Firefox treat Helvetica differently from Chrome?

前端 未结 2 898
北恋
北恋 2021-02-07 12:58

The vertical position of text rendered in Helvetica and the size of its content area differ between Firefox and Chrome for Mac. For example, in Chrome, the descenders are clippe

2条回答
  •  被撕碎了的回忆
    2021-02-07 13:44

    • 'Line height is auto' => the browser gets to choose.
    • 'Line height = font size' => user error: the text will be illegible, and again it is reasonable, indeed essential, for the browser to make some adjustment.

    You must use some leading. Books for example may be set 10pt on 12pt line spacing.

提交回复
热议问题