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

Text trims incorrectly when CJK characters sits between half-width brackets #14068

Open
djdjz7 opened this issue Dec 31, 2023 · 2 comments
Open

Comments

@djdjz7
Copy link

djdjz7 commented Dec 31, 2023

Describe the bug

Text trims incorrectly when CJK characters sit between rounded brackets. English characters seem to be working fine. Full-width brackets work fine as well.

To Reproduce

Here's a sample code:

<StackPanel>
        <TextBlock FontSize="40" TextTrimming="CharacterEllipsis" Text="这里有一些中文字符 (放在一个英文括号里面)"/>
        <TextBlock FontSize="40" TextTrimming="CharacterEllipsis" Text="Here are some English texts (in round brackets)"/>
</StackPanel>

With avalonia it produces this:

屏幕录制-2023-12-31-224023

However, just as what WPF shows, it is supposed to be something like this:
屏幕录制-2023-12-31-224336

Environment

  • OS: Windows
  • Avalonia-Version: 11.0.6
@Gillibald
Copy link
Contributor

Might be fixed by: #16919

@djdjz7
Copy link
Author

djdjz7 commented Dec 29, 2024

Might be fixed by: #16919

Thanks for your attention, but it doesn't seem to be fixed on my side with Avalonia 11.2.3, or with the prerelease version mentioned in the pull request 11.3.999-cibuild0053672-alpha, or the lastest pre-release version 11.3.999-cibuild0054097-alpha

image
image

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

Successfully merging a pull request may close this issue.

2 participants