Why would html text sometimes appear garbled when viewing on Chrome or Safari on Windows?

后端 未结 9 826
长发绾君心
长发绾君心 2020-12-15 07:45

Occasionally users report that the text on https://squareup.com looks like gibberish (or garbled) to them… however we’ve been unable to reproduce this.

Users report

相关标签:
9条回答
  • 2020-12-15 07:52

    I had same issue and figured out that the problem was with font-face. Among the multiple font source files second preference was for "svg", changed to truetype solved the issue.

    0 讨论(0)
  • 2020-12-15 07:54

    Maybe its the custom fonts acting up? When I view your site in firefox it says its in Helvetica Neue but in Chrome it says ag1, agb

    0 讨论(0)
  • 2020-12-15 08:01

    It may be something related to the character encoding. Try explicitly specifying the encoding by putting this in the <head> of the page:

    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    
    0 讨论(0)
  • 2020-12-15 08:01

    it's a bit of a stab in the dark, but have you considered re-generating the @fontface files, just in case there's some form of corruption which only surfaces when viewed in certain WebKit browser versions?

    If you have one, try running a TTF through the FontSquirrel fontface generator:

    http://www.fontsquirrel.com/fontface/generator

    0 讨论(0)
  • 2020-12-15 08:02

    Easily recreated by using an older version of Windows as well as an older branch of Chrome. Seems like Chrome 4-8 have this issue. For testing purposes, boot into XP with Chrome 4. The problem lies in text-rendering: optimizelegibility. This is a reported bug in older Chrome versions when using optimizelegibility with @font-face when using woff fonts. If you can reproduce the issue, try taking out vertical-align: baseline and see if the rendering is still garbled.

    0 讨论(0)
  • 2020-12-15 08:08

    I don't have a surefire answer for you, but it looks like you're using the Modernizr class and looking at your html node in Chrome it has the js fontface class applied to it, which suggests custom font-face problems.

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