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

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

    Since you said in your comment to Jordan Brown that using Arial makes the alignment perfect, this is a font issue. It is likely that whoever created your font did not set the Ascent value properly.

    If you have the TTF, upload it to FontSquirrel, select the "Expert" option and then keeping all default options. The one that fixes it I believe is "Fix Vertical Metrics." but I had issues when changing the defaults so I recommend keeping them as-is.

    Now the font line height renders the same on MAC and PC (it worked for me).

提交回复
热议问题