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

前端 未结 4 731
夕颜
夕颜 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:46

    By default, Font-Squirrel does this in order to increase support with user-agents that do not follow specification (those that ignore font-weight and font-style).

    If you do not care about those outdated user-agents, you may enable the "Style Linking" option which is available in the expert section of the @font-face kit generator. Note that IE8 and below ignores numbered font-weight values and only support normal and bold (and corresponding 400, 700 weight values).

提交回复
热议问题