Why not define font-weight or font-style in @font-face, Font Squirrel?

前端 未结 4 736
夕颜
夕颜 2021-02-05 12:25

When we define @font-face styles, we can define whether the referenced files are for the bold, italic, or bold italic versions of a font, as discussed in this SO question:

4条回答
  •  既然无缘
    2021-02-05 12:45

    The problem using the default FontSquirrel's approach is that if the fallback font loads, all weights will be lost because they are all set to normal. I think the style linking is the best approach.

    If you are worried about IE8 users you can use a conditional css.

提交回复
热议问题