XAFontUtils 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package XAFontUtils --version 1.0.1                
NuGet\Install-Package XAFontUtils -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XAFontUtils" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XAFontUtils --version 1.0.1                
#r "nuget: XAFontUtils, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XAFontUtils as a Cake Addin
#addin nuget:?package=XAFontUtils&version=1.0.1

// Install XAFontUtils as a Cake Tool
#tool nuget:?package=XAFontUtils&version=1.0.1                

XAFontUtilsLibrary

A Tiny Font Utility Library for Xamarin.Android to apply custom Fonts to

  • Toolbar
  • NavigationView
  • Menu
  • Submenu
  • Other Views like EditText, TextView, etc.

Supported Android Languages

  • Java
  • Kotlin
  • Xamarin

Readme for Java and Kotlin can be found here https://github.com/androidmads/FontUtils.

How to download

You can download the plugin from Nuget Package Manager using

Install-Package XAFontUtils -Version 1.0.1

How to use

C#

// To import the Library
using XAFontUtilsLibrary;
...
// Applying Custom Font
Typeface typeface = Typeface.CreateFromAsset(Assets, "custom_font.ttf");
// Init Library
FontUtils fontUtils = new FontUtils();
// Apply font to Toolbar
fontUtils.ApplyFontToToolbar(toolbar, typeface);
// Apply font to NavigationView
fontUtils.ApplyFontToNavigationView(navigationView, typeface);
// Apply font to Menu
fontUtils.ApplyFontToMenu(menu, typeface);
// Apply font to Other Views like TextView...
fontUtils.ApplyFontToView(textview, typeface);
fontUtils.ApplyFontToView(editText, typeface);
fontUtils.ApplyFontToView(radioButton, typeface);
fontUtils.ApplyFontToView(checkBox, typeface);

License

MIT License

Copyright (c) 2018 AndroidMad / Mushtaq M A

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 873 8/3/2018
1.0.2 963 6/25/2018
1.0.1 795 3/21/2018
1.0.0 877 3/20/2018

A Tiny Font Utility Library used to apply custom fonts to Views.