Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Custom fonts on Android

$
0
0

Hi.

I'm starting an app with Xamarin.Forms.

It happens that the dessign of this app uses custom fonts on all the controls, on iOS it's pretty easy to use, just load the custom fonts at boot, but for Android i should create a subclass of each Xamarin.Forms control with a custom render to set the custom font... That's a pain!

Is there a way to intercept the native creation of controls in the Android app to test if the control is of a text-type control (TextViews, Buttons, etc) and then if the choosen font family is a custom one load it?

Else, is there a way to replace the base renderers for labels/buttons/etc to at least avoid creating custom classes for every control type?

Cheers.


Viewing all articles
Browse latest Browse all 58056

Trending Articles