Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/JimmyPun610/XF.TextIcon
- Owner: JimmyPun610
- Created: 2019-06-10T04:20:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T07:35:39.000Z (about 2 years ago)
- Last Synced: 2024-10-03T01:43:23.381Z (2 months ago)
- Topics: add-fonts, icon, icon-font, iconfont, label, span, xamarin, xamarin-fonts, xamarin-forms
- Language: C#
- Size: 1.47 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-xamarin-forms - XF.TextIcon ★3
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.