Using Xamarin Embedded fonts and Font Image Source, What this plugging was trying to achieve can be achieved now.

May 18, 2020 ยท View on GitHub

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/fonts#use-a-custom-font https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/fonts#display-font-icons

If you are using Xamarin.Forms 4.5.0.530 below version, it still make sense to use this pluging.

icon

Build status

Plugin.Glypher

This plugin extend support for font glyphs (font icons) in Xamarin.Forms applications.

Usage

xmlns:fontAwesome5Free="clr-namespace:Plugin.Glypher.FontAwesome5Free;assembly=Plugin.Glypher.FontAwesome5Free"
xmlns:glypher="clr-namespace:Plugin.Glypher;assembly=Plugin.Glypher"

<Label glypher:FontGlyph.Glyph="{x:Static fontAwesome5Free:GlyphListBrand.Fab_Bluetooth}"
       FontSize="Large"
       TextColor="CornflowerBlue" />
       
<Button glypher:FontGlyph.Glyph="{x:Static fontAwesome5Free:GlyphListBrand.Fab_Bitcoin}"
        FontSize="Large"
        TextColor="IndianRed" />

<Image>
    <Image.Source>
        <FontImageSource Size="32" 
                         Color="Orange" 
                         glypher:FontGlyph.Glyph="{x:Static fontAwesome5Free:GlyphListRegular.Far_Bell_Slash}" />
    </Image.Source>
</Image>

Setup

Plugin.Glypher is not required to be reference if using any other package.

  • Install selected nuget(s) into any .NET Standard 2.0 projects required for your app. No need to install it in your platform specific projects.
PackageWikiNugetAndroidiOS
Plugin.Glypher.FontAwesome5FreeFont Awesome 5 FreeNuGetYesYes
Plugin.Glypher.FontAwesome5ProFont Awesome 5 ProNuGetYesYes
Plugin.Glypher.WeatherIconsWeather IconsNuGetYesYes

Screenshots

AndroidiOS
androidios

SourceLink Support

In Visual Studio, confirm that SourceLink is enabled. Also, Turn off "Just My Code" since, well, this isn't your code.

https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink

Contributing

Contributions are welcome. Feel free to file issues and pull requests on the repo and they'll be reviewed as time permits.

Icon

Thank you for the Icons by Yannick Lung, Stephen Hutchings