In Label text unicode superscript character trims itself at the edges, not showing completely and didn't not wrapped #28791
Labels
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
TextTestMAUI-UnicodeCharacterSuperscriptIssue.zip
Description
Hi,
The below issue was raised 4 years ago regarding the text presentation in label for Xamarin forms. (xamarin/Xamarin.Forms#13780)
The issue is continued in MAUI as well. (android)
The problem occurs when Unicode superscript characters in a label don't wrap properly but are instead cut off from the edges, especially when the font size is adjusted.
Since users can select any font size based on their preference (small, medium, or large), the issue is noticeable and critical as these letters represents a significant meaning to the word and sentence itself.
For your reference, I have attached images and a gif that illustrate how the text is cut off when the font size changes.
Additionally, I have included a test Visual Studio project (TextTestMAUI-UnicodeCharacterSuperscriptIssue.zip) to help you reproduce the issue on your end using the same text sentence with in the MainPage.xaml. The project includes a button to increase and decrease the font size.
Please have a look at below gif and images highlights and appreciate for its urgent fix due to these characters represents itself a meaning to word and sentences.
Regards
Steps to Reproduce
Attached Test MAUI project. (TextTestMAUI-UnicodeCharacterSuperscriptIssue.zip)
Increase or Decrease the font using the button and observe the text, the superscript unicode characters will cuts from the edges instead of wrap as complete character.
Please have a look at above attached gif and images highlights
Link to public reproduction project repository
No response
Version with bug
9.0.50 SR5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
Android
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: