1

I have a custom font that I want to set as the default font for the whole Xamarin.iOS app without specifying the size. How can I achieve this?

I already found a similar question here, however this refers to a non-Xamarin iOS app.

Blu
  • 821
  • 4
  • 17
Adnan Umer
  • 3,669
  • 2
  • 18
  • 38
  • hi, did you find any solution for this? i can enable fonts for Label, entry etc(Xamarin.Forms Attributes)... but not for titles & content of dialog boxes, list in pickers n many more places like that(Internal iOS attributes) – Blu Sep 07 '20 at 13:33

1 Answers1

0

You can subclass each control you want affected (Entry, Label) etc and add a custom property for size. From there create a custom renderer in iOS where you set the font to be used by all but also pass the custom property for size each type you call the control. Here is a blog article I wrote a while ago on this topic Making Custom Renderers in Xamarin.Forms More Scalable

darrellbooker
  • 188
  • 1
  • 7