【发布时间】:2019-04-03 10:22:42
【问题描述】:
字体真棒图标在 Xamarin.Forms 中不适合我。这是我的Labelxaml
<Label TextColor="Red" FontFamily="FontAwesomeBrands" FontSize="Large" Text=""
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,
Property=Width,Factor=1}">
</Label>
我已将这些文件添加到 android 项目的 Assests 文件夹中
输出只显示空符号。我怎样才能让它工作?
【问题讨论】:
-
我可能疯了,但有错字吗?字体名称是 FontAwesome5Brands,但在 XAML 中没有 5。
-
不工作。我尝试设置
FontAwesome5Brands和FontAwesome5Brands.otf#Regular。 -
您使用的是什么版本的 XF?
FontIconSource应该在 3.6 中可用,以使您的生活更轻松:github.com/xamarin/Xamarin.Forms/issues/3189 -
@GeraldVersluis - 这似乎是另一回事。一点都不懂。 :)
标签: xaml xamarin xamarin.forms font-awesome