Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Certain FontAwesome fonts not displaying

$
0
0

I installed the latest font-awesome fonts into my xamarin.forms shared project (targeting Android only). I followed the instructions here:

https://www.wintellect.com/using-fontawesome5-xamarin-forms/

However, I notice that not all the fonts will display on my forms. E.g. fa-eye will display correctly, but fa-vial displays nothing. E.g.

<Label Text="&#xf492;" TextColor="Black" FontSize="Large">
  <Label.FontFamily>
    <OnPlatform x:TypeArguments="x:String" Android="fa-regular-400.ttf#Font Awesome 5 Free Regular" />
  </Label.FontFamily>
</Label>

The above example should display the fa-vial font icon, but nothing is shown. If I change the Text to &#xf06e then the fa-eye font icon is correctly displayed.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>