Why is iOS Safari adding extra letter-spacing?

前端 未结 2 914
长发绾君心
长发绾君心 2020-12-28 13:45

I think I have found a web rendering bug for Google Fonts in Mobile (iOS 8) Safari. It seems to me that Mobile Safari adds a tiny bit of letter-spacing to all text that uses

相关标签:
2条回答
  • 2020-12-28 14:34

    Note that Google Web Fonts only exports the regular weight (400) by default, which can lead to Mobile Safari (and other browsers) being forced to impose faux bold.

    To explicitly export bolder weights, select "CUSTOMISE" in the Google Web Font font selection pane, manually check each additional weight you require, and use the updated embed code.

    )]1

    0 讨论(0)
  • 2020-12-28 14:39

    I found the solution in this question: iOS 4.2+ webfont (ttf) 's bold font-weight rendering bug

    Mobile Safari is buggy rendering faux font weights, if you don't set the font-weight (to eg. font-weight: 400 or font-weight: normal) You need to specifically set the css font weight for it to render correctly in mobile safari.

    This is the solution.

    h2 {
      font-weight: 400;
    }

    0 讨论(0)
提交回复
热议问题