iOS UIFont.ByName Exception (Value cannot be null. Parameter name: value)

In a custom Xamarin Forms iOS renderer I am loading fonts from files and when I get to UIFont.FromName it thorws the exception shown below. The font var is a valid CGFont instance and fontsize is a valid nfloat. Any ideas? var font = CGFont.CreateFromProvider(fontDataProvider); Control.Font = UIFont.FromName(font.FullName, (nfloat)e.NewElement.FontSize); stacktrace: System.ArgumentNullException: Value cannot be null. […]

By Roy Jennes
Categorised as Uncategorised Tagged , ,

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us