FontIconFontFamily is not working with Embedded Fonts in Android

Hello lovely Syncfusion-Team,

FontIconFontFamily is not working with Embedded Fonts feature of Xamarin.Forms up 4.5.530 in Android but working in UWP. I have not tested it in iOS.

For example, AssemblyInfo.cs file in my shared project has the following statement:
[assembly: ExportFont("Icons.ttf")]
And the XAML file has the following imaginary code:
<SfTabView>
     <SfTabItem FontIconFontFamily="Icons" IconFont="{StaticResource Home}" />
</SfTabView>
And the fonts are not loaded.

Tha same fonts are working well in Android with many other controls but the SfTabItem not.

Regards,
Abubakr

Attachment: Untitled_6c2257f3.7z

3 Replies 1 reply marked as answer

SP Sakthivel Palaniyappan Syncfusion Team April 5, 2021 07:57 AM UTC

Hi Abubakr,

Greetings from Syncfusion.

We have analyzed your query and we have implemented the control in native platform to map for Xamarin Forms, so we suggest to provide Alias name as like below code snippet.

App.cs:
 
[assembly: ExportFont("GSTouch.ttf", Alias = "Icons")] 

Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/TabviewSample1570812428.zip

Please let us know if you have any  other queries.

Regards,
Sakthivel P.
 


Marked as answer

AB Abubakr April 20, 2021 12:10 PM UTC

Thanks. It working now


JK Jeya Kasipandi Syncfusion Team April 21, 2021 05:24 AM UTC

Hi Abubakr,

Thanks for the update. We are glad to know that the reported problem has been resolved at your end. Please get in touch if you would require any further assistance.

Regards,
Jeya K

Loader.
Up arrow icon