We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Using FontFamily on SfComboBox results in Font not found

Adding a sfComboBox to any project where custom fonts are successfully set up and working, results in an error message and crash when applying any of the FontFamily properties. Applying the same font family name to say a SfButton works.


Unhandled Exception:

Java.Lang.RuntimeException: Font asset not found GeosansLight.ttf#GeosansLight

App.XAML, inside resource dictionary:

   <OnPlatform x:Key="GeosansLight"  x:TypeArguments="x:String" Android="GeosansLight.ttf#GeosansLight" iOS="GeosansLight">

Property of SfComboBox:

     FontFamily="{StaticResource GeosansLight}"

1 Reply

VA Vanaja  Annasamy Syncfusion Team February 26, 2019 10:15 AM UTC

Hi Nick, 
Greetings from Syncfusion.

We have analyzed the reported issue. In our current implementation we don’t set the font name directly(fontname.ttf#fontname) for ComboBox in android. If you set the font name like fontname.ttf#fontname for the ComboBox means it gets font name not found exception. We have already logged a feature report for this requirement to set the font name as like in the Xamarin forms. It will be available in any of our upcoming release We suggest you to set font family as fontname.ttf  to resolve this issue

Vanaja R.A. 

Live Chat Icon For mobile
Up arrow icon