Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Label text unicode superscript character trims itself at the edges, not showing completely and didn't not wrapped #28791

Open
andaleebkhaan opened this issue Apr 3, 2025 · 2 comments
Labels
platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@andaleebkhaan
Copy link

andaleebkhaan commented Apr 3, 2025

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

Image

Image

Image

Image

Image

Image

Image

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

@andaleebkhaan andaleebkhaan added the t/bug Something isn't working label Apr 3, 2025
@andaleebkhaan
Copy link
Author

andaleebkhaan commented Apr 3, 2025

Attached test project

TextTestMAUI-UnicodeCharacterSuperscriptIssue.zip

Illustration gif

Image

@BagavathiPerumal
Copy link
Contributor

This issue has been verified in Visual Studio Code 1.98.2 (9.0.50). It can be reproduced on the Android platform (Android version 15.0).

Screen.Recording.2025-04-04.at.11.05.49.AM.mov

@BagavathiPerumal BagavathiPerumal added platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants