如何在NativeScript应用程序中正确使用字体很棒的图标
我在app.scss中定义了这个定义
.fas {
font-family: 'Font Awesome 5 Free', 'fa-solid-900';
font-weight: 900;
}
,并且正在尝试
<Button class="btn fas" text=""></Button>
在我的应用程序中使用这样的图标。它的呈现为
从我的阅读中,应该工作,但是我显然缺少某些配置项目。 有什么想法我可能会想念什么?
I have this defined in my app.scss
.fas {
font-family: 'Font Awesome 5 Free', 'fa-solid-900';
font-weight: 900;
}
and am trying to use an icon like this
<Button class="btn fas" text=""></Button>
in my app. which renders as
from my reading this should work, but I am obviously missing some config item.
Any ideas what I could be missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用ICON字体时,使用代码的以下格式很幸运。
I've had more luck using the following format of the code when using icon fonts.