之间的差异
fas
以及
far
图标的
font-weight
因此,要在两者之间切换,只需调整
字体加粗
:
.icon {
font-family:"Font Awesome\ 5 Free";
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
line-height: 1;
}
.icon:before {
content:"\f007";
}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css">
<span class="icon" style="font-weight:300"></span>
<span class="icon" style="font-weight:900"></span>
下面是另一个相关问题:
Font Awesome shows square instead of icon when used directly in CSS