Safari font rendering issues

前端 未结 8 811
独厮守ぢ
独厮守ぢ 2020-12-09 02:12

As you can see below, the Texta-Light font in Chrome appears completely different with Safari. Chrome displays the font as I like but Safari\'s rendering on OS X and iOS loo

8条回答
  •  既然无缘
    2020-12-09 02:40

    Based on @lucho's answer, I used same approach but I'm applying the fix as soon as tag loads. This fixes the issue with too thin Open Sans font in iOS Safari.

    
    
    

    ALTERNATIVE APPROACH:

    Alternatively you can add a class like ios-safari to tag and then apply CSS to it normally:

      
    
    

    CSS:

    .ios-safari {
      -webkit-text-stroke: .5px;
    }
    

提交回复
热议问题