IconFont Property not working on "Longer" Unicodes

Hi there,

Looks like there is a bug in the way the SfSegmentedControl works with icons. To my understanding, you define a font for the control to use for its icons. Then, for each SfSegmentItem, you define a unicode character for the control to render as its image. For the example below, I assigned the control two SfSegmentItems, one containing the unicode of "\u000f00bf" and one containing the unicode of "\uf90e" respectively. Both icons are from MaterialDesignIcons.com. As you can see, the segment with the longer unicode is not properly displaying the icon, while the segment with the normal unicode is shown properly.
Hopefully, this can get fixed. An alternative is to allow for an FontImageSource, a Xamarin.Forms class, which processes all "glyphs" properly in my experiences.

Best regards,
Marcus

2 Replies 1 reply marked as answer

SS Suganya Sethuraman Syncfusion Team July 9, 2020 09:31 AM UTC

Hi Marcus, 
 
Greetings from Syncfusion, 
 
We were able to reproduce the issue “IconFont Property not working on "Longer" Unicodes” and we confirm this as a bug and logged a defect report. You can keep track of the bug from the feedback portal below. 
 
 
The provided feedback link is private, and you need to login to view this feedback. 
 
The Fix will be included in our upcoming Weekly NuGet, which will be available on 21st July ,2020. 
 
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 
 
Regards, 
Suganya Sethuraman 


Marked as answer

SS Suganya Sethuraman Syncfusion Team July 22, 2020 01:21 PM UTC

Hi Marcus,

Thanks for your patience.


After our further analysis of the issue with our control, the provided MaterialDesignIcons.com custom font works only in XAML. In the code behind it doesn’t show the icon for any FontImageSource with glyph. So, when you apply the IconFont in the Code behind the SfSegmentedControl level, the same issue is reproduced.

We have prepared a simple sample with Xamarin.Forms Image control to replicate the issue.

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

Screenshot:
 
 
 

We may suspect the issue with ttf file.

Please let us know, if you have any other control.


Regards, 
Suganya Sethuraman 


Loader.
Up arrow icon