Chrome doesn't support `font-family: “Arial Bold”`?

后端 未结 1 1866
暖寄归人
暖寄归人 2021-01-28 23:55

In Chrome v75 Windows 10

font-family: \"Arial Black\" works, but font-family: \"Arial Bold\" doesn\'t.

They both work in Edge.

相关标签:
1条回答
  • 2021-01-29 00:17

    "Arial Bold" isn't a font family.

    "Arial" is a font family. "Bold" is a weight. The Bold weight of Arial is stored in a file called "Arial Bold", but this doesn't mean it's part of a separate family.

    What you want is:

    .example {
      font-family: "Arial";
      font-weight: bold;
    }
    <div class="example">Example</div>

    0 讨论(0)
提交回复
热议问题