Font Rendering / Line-Height Issue on Mac/PC (outside of element)

前端 未结 11 2325
-上瘾入骨i
-上瘾入骨i 2020-11-27 12:45

The Design

The info widgets content should be vertically aligned in the middle as such:

\"Original

11条回答
  •  心在旅途
    2020-11-27 13:23

    I witnessed the same issue, with a custom font (Trade Gothic) served by FastFonts.

    Windows did what it should have. But all other browsers on Linux based machines, Mac, iOS, Android suffered the problem.

    My only solution was to match on the user agent, and namespace the body tag with .not-win

    Then my styles could override the line-height specific to non-windows devices.

提交回复
热议问题