我在我的一个项目中使用FontAwesome 4.7,并且我们具有SonarQube集成。在自定义CSS文件中的几个地方,我必须手动提供Font-Family,例如:
.calendar-wrapper:after {
font-family: 'FontAwesome';
content: '\f073';
position: absolute;
right: 9px;
top: 9px;
}
但是在这一行,SonarQube向我显示了错误: 意外丢失通用字体系列(Rule Here)
FontAwesome的通用字体家族应该是什么?我在互联网上到处都是,但是还没有找到解决方案。
答案 0 :(得分:0)
'FontAwesome' 是一种自定义字体,因此 sonarqube 要求添加通用字体作为后备。 添加像“sans-serif”这样的通用字体就足够了。
.calendar-wrapper:after {
font-family: 'FontAwesome', sans-serif;
content: '\f073';
position: absolute;
right: 9px;
top: 9px;
}