Font Awesome unicode "\f046" 未在 Chrome 中显示

Font Awesome unicode "\f046" not showing in Chrome

我正在尝试在我的网页上使用 Font Awesome Unicode (https://fontawesome.com/v4.7.0/icon/check-square-o)。

但是显示如下

我花了很多时间在互联网上寻找 Chrome 中没有显示 Unicode 的原因。但仍然没有运气。

.myClass {
  font-size: 45px;
}

.myClass::after {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f046";
}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css">
<span class='myClass'>Hiiii</span>

没有可以用作伪元素的值为 /f046 的图标。检查此作弊 sheet 以获取您可以使用的图标:

https://fontawesome.com/cheatsheet

如本页所述,您要搜索的图标是 \f14a

https://fontawesome.com/icons/check-square?style=regular

它说:

This icon replaces Font Awesome 4's fa-check-square-o

请注意,您分享的 link 适用于 Font Awesome 4,但在 HTML 您使用的是版本 5。