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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can't use custom font with AutoComplete view

Thread ID:

Created:

Updated:

Platform:

Replies:

141999 Jan 14,2019 01:50 PM UTC Jan 16,2019 12:33 PM UTC Xamarin.Forms 2
loading
Tags: SfAutoComplete
Gabriel
Asked On January 14, 2019 01:53 PM UTC

FontFamily="Hero.otf#Hero" DropDownItemFontFamily="Hero.otf#Hero" IndicatorFontFamily="Hero.otf#Hero"

These two properties when set inside an autocomplete control give me this error: Java.Lang.RuntimeException: Font asset not found Hero.otf#Hero

Yet the font is present on the Assets folder, and works just fine in other controls. It's just this Syncfusion one that throws the error. From what I've tested, it needs all three FontFamilies set for the font to show (it works fine on iOS as well (using the appropriate name for the font, code above was just an example)).

Also, how do I add formatted code to the forums? It seems to delete xaml tags. 

Gabriel
Replied On January 14, 2019 01:57 PM UTC

So a workaround seems to be using just "Hero.otf" instead of "Hero.otf#Hero". Which is weird, as the latter is the Xamarin Forms standard for Android.


Dhanasekar R [Syncfusion]
Replied On January 16, 2019 12:33 PM UTC

Hi Gabriel, 
  
Greetings from Syncfusion. 
  
In our current implementation of SfAutoComplete, we can provide only FontFamily name as "Fontname.ttf". Hence to provide “The Custom Font declaration as like in Xamarin controls” we have added it to our feature request list. We will implement this feature and include this in our upcoming 2019 Volume 1 release which will be released by mid of March 2019. You can track the feature details from below link. 
 
 
Regards, 
Dhanasekar 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;