@font-face svg not working properly in Chrome?

前端 未结 5 1808
深忆病人
深忆病人 2020-12-13 01:01

I have an issue with a specific font and the way it\'s rendered in Chrome.

Firefox shows the font properly due to using ttf.

Chrome doesn\'t use antialias a

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 01:27

    As Lily and font squirrel suggest, your SVG font should almost always come at the bottom of your list of @font-face sources. You don't want a browser to use an SVG font unless it can't use anything else.

    The reason for this is that SVG fonts are very poorly supported, and support is decreasing. As of this post (2015), SVG fonts are no longer supported by Chrome (38) and are only supported by Safari 8, iOS Safari 8.1 and the Android browser 37. http://caniuse.com/#feat=svg-fonts

    Edit: As of Feb 2016, Android Browser 47 no longer supports SVG fonts. Safari and iOS Safari still support them, and seem the be the only browsers that do.

提交回复
热议问题