Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.
/ Plugin.Glypher Public archive

Extend support for font glyph (font icon) for Xamarin Forms applications

License

Notifications You must be signed in to change notification settings

thudugala/Plugin.Glypher

Repository files navigation

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

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.
Package Wiki Nuget Android iOS
Plugin.Glypher.FontAwesome5Free Font Awesome 5 Free NuGet Yes Yes
Plugin.Glypher.FontAwesome5Pro Font Awesome 5 Pro NuGet Yes Yes
Plugin.Glypher.WeatherIcons Weather Icons NuGet Yes Yes

Screenshots

Android iOS
android ios

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