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

前端 未结 11 2304
-上瘾入骨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:26

    It's caused by font format history and Windows/Mac wars, there are different ways to compute line height and if they are not synced in the font you use things will go wrong on some systems

    You need to fix your font (if the licensing allows it) or switch to one without this problem

    See http://www.webfonts.info/node/330 (warning, this is an infomercial even if the tech info is true)

    Better, not to make your design depend on an exact value here

提交回复
热议问题