Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/JimmyPun610/XF.TextIcon

Xamarin Forms Library for Icon font
https://github.com/JimmyPun610/XF.TextIcon

add-fonts icon icon-font iconfont label span xamarin xamarin-fonts xamarin-forms

Last synced: 29 days ago
JSON representation

Xamarin Forms Library for Icon font

Awesome Lists containing this project

README

        

# XF.TextIcon
Xamarin Forms Library for Icon font
Works in Android and iOS
Required Xamarin.Forms 3.5.0.274416 or above

# Supporting Font
1. Ionicon https://ionicons.com/
2. FontAwesome 5 Free https://fontawesome.com/icons
3. Icon8 Windows 10 https://github.com/icons8/windows-10-icons
4. Google Material Icon https://material.io/tools/icons/?style=baseline
5. IcoFont https://icofont.com/

# Support UI Control
1. Span
2. Label

# Setup
1. Forms Project
- Install Nuget Package
```
Install-Package XF.TextIcon.Forms -Version 1.0.0.0
```

2. Android Project
- Add Fonts to Asset Folder and make sure Build Action is AndroidAsset

3. iOS Project
- Add Fonts to Resources folder and make sure Build Action is BundleResource
- Insert below to info.plist
```xml
UIAppFonts

ionicons.ttf
icons8-win10.ttf
icofont.ttf
GoogleMaterial.ttf
FontAwesome5FreeRegular.otf
FontAwesome5FreeSolid.otf
FontAwesome5FreeBrand.otf

```


# How to use
To use in xaml, you may set the icon as below. The IconName can be check from CheatSheet.
```xaml














```



# Further improvement
Please let me know if any request on different fonts, providing the otf / ttf file will be nice.