Roboto from materializecss weird font rendering in Chrome, Firefox, OK with IE?

后端 未结 4 1238
灰色年华
灰色年华 2021-02-12 21:53

I\'m using Materialize CSS coming with the Roboto 2.0 font. Font looks horrible in Chrome 43 and Firefox 37. Surprisingly with IE it looks very good (full resulution):

<

4条回答
  •  别那么骄傲
    2021-02-12 22:52

    Have you tried specifying font smoothing/rendering?
    It generally makes a big difference in my experience.

    body {
      /* Better Font Rendering */
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    

提交回复
热议问题