【问题标题】:Xamarin Forms: How to set FontAttributes Bold for a custom fontXamarin Forms:如何为自定义字体设置 FontAttributes Bold
【发布时间】:2015-05-15 06:54:14
【问题描述】:

我有一个使用 FontAwesome 的 Xamarin Forms 项目,请点击此链接: http://forums.xamarin.com/discussion/31530/fontawesome-label-heres-how

效果很好。但是当我添加这段代码时:

myLabel.FontAttributes = FontAttributes.Bold;

图标变成带有“?”的矩形图像在里面。

我认为这是因为我设置的自定义字体只是普通字体属性。如何在 Xamarin Forms 中为粗体属性设置字体?

【问题讨论】:

    标签: fonts xamarin xamarin.forms


    【解决方案1】:

    好的,所以 FontAwesome 不支持粗体。所以我必须使用普通的字体属性。

    【讨论】:

      猜你喜欢
      • 2019-01-13
      • 2016-10-14
      • 1970-01-01
      • 1970-01-01
      • 2017-11-16
      • 2018-01-21
      • 2016-04-08
      • 2015-10-02
      • 2019-07-22
      相关资源
      最近更新 更多