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

About the display error of TextBlock TextAlignment=“Justify” When I use TextBlack to display Chinese #17826

Open
ApaulMyLittleAirport opened this issue Dec 24, 2024 · 2 comments
Labels

Comments

@ApaulMyLittleAirport
Copy link

ApaulMyLittleAirport commented Dec 24, 2024

avaloniaApp.zip

Describe the bug

When I use TextBlack to display Chinese:

TextBlock Text="今天的晚饭很好吃" TextAlignment="Justify" Width="300"

I want the spacing of the text to be balanced,But the actual effect is that the first word and the second word are next to each other, and the spacing of the words after the second word is normal。
image
I would like the second way to show the results

To Reproduce

Expected behavior

The text is evenly spaced

Avalonia version

Avalonia version:11.2.3

OS

windows 10

Additional context

No response

@timunie
Copy link
Contributor

timunie commented Dec 24, 2024

Can you please provide the text to copy on our own?

Also please specify Avalonia version explicitly. all is not a valid version. If you tested more versions, file latest tested version.

@ApaulMyLittleAirport
Copy link
Author

Can you please provide the text to copy on our own?

Also please specify Avalonia version explicitly. all is not a valid version. If you tested more versions, file latest tested version.

Thank you very much for paying attention to this issue, I use the latest stable version of 11.2.3, I have uploaded the minimum demo as an attachment, you can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants