I want to use icons from Font Awesome in my Xamarin Forms application. I have followed several tutorials I found but I still can't get the icons to display. Here is a portion of the static class showing the class name and namespace:
namespace NGIC_XAML.Constants
{
public static class IconFontsFAProRegular
{
public const string GlassMartini = "\uf000";
public const string Music = "\uf001";
public const string Search = "\uf002";
public const string Heart = "\uf004";
}
}
Here is the ExportFont statement in my AssemblyInfo.cs file:
[assembly: ExportFont("Font-Awesome-5-Pro-Regular-400.otf", Alias = "FAProRegular")]
Here is the declaration of the namespace in my XAML file:
xmlns:local="clr-namespace:NGIC_XAML.Constants"
And finally, here is the tag where I want to use one of the font icons:
<Image
HeightRequest="44"
HorizontalOptions="Center"
VerticalOptions="Center"
WidthRequest="44">
<Image.Source>
<FontImageSource
FontFamily="FAProRegular"
Glyph="{x:Static local:IconFontsFAProRegular.Heart}"
Size="44"
Color="{StaticResource NGIC_Red}" />
</Image.Source>
</Image>
The output
Someone is bound to ask, so here are the packages installed:
I would sure like to know what I;m doing wrong! I also don't get intellisense when I enter the namespace name in the ImageSource.


You must set font family as static resource and reference it in your code. Otherwise it will not work.
Example: