Chrome SVG webfonts weird characters in select input

前端 未结 3 2029
情话喂你
情话喂你 2021-02-06 04:47

Chrome 26.0.1410.64m on Windows 8 has problems rendering WebFonts. It is a known problem and a solution is to first serve the svg version of the font instead of the woff version

3条回答
  •  猫巷女王i
    2021-02-06 05:23

    As automaticoo stated, it is a known issue with Chrome. However, you can workaround the issue with a technique mentioned in the selected answer for this post: Google Webfonts Render Choppy in Chrome on Windows.

    @media screen and (-webkit-min-device-pixel-ratio:0) {
      select {
        font-family: Arial; /* standard font */
      }
    }
    

    That way you can use whatever font you want for browsers that still work, and replace it with a generic HTML font for Chrome.

提交回复
热议问题