I have a font file(ttf) which I need to apply for entire application . Could any one help please ?
@VIVEKNEGI
Hello,its Very simple
1)Paste fontName.ttf file to assets folder(Android=>Assets) and ensure the build type is AndroidAsset
Open your App.xaml file and add resources Dictionary
<Application.Resources> <ResourceDictionary> <Style TargetType="Label"> <Setter Property="FontFamily" Value="FontName"/> </Style> <Style TargetType="Entry"> <Setter Property="FontFamily" Value="FontName"/> </Style> </ResourceDictionary> </Application.Resources>
Answers
@VIVEKNEGI
Hello,its Very simple
1)Paste fontName.ttf file to assets folder(Android=>Assets) and ensure the build type is AndroidAsset
Open your App.xaml file and add resources Dictionary
Check this tutorial :https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/fonts#using-a-custom-font
Hi
this does not seem to work for me..
in my case i want to change the tabbedpage's font to a custom font
when i change the TargetType to "TabbedPage" it gives me an error saying
(Can't resolve FontFamily on TabbedPage)
i get that TabbedPage does not own a FontFamily Property
so do i need to change the TargetType to something else or should i take a different way ?