### Describe the bug Text is incorrectly trimmed when I use emoji or Japanes characters and TextTrimming is set to PrefixCharacterElipsis ### To Reproduce MainWindow.axaml: ``` <StackPanel> <TextBox Text="{Binding Greeting}" /> <TextBlock Text="{Binding Greeting}" MaxWidth="200" TextTrimming="PrefixCharacterEllipsis" Background="Red"/> </StackPanel> ``` MainWindowViewModel.cs: ``` public partial class MainWindowViewModel : ViewModelBase { [ObservableProperty] private string _greeting = "Welcome to Avalonia! どうもありがとうございます"; } ``` <img width="370" height="171" alt="Image" src="https://github.com/user-attachments/assets/12ca4fe0-093e-4a00-a4c0-f6c2ce5fe383" /> When I do not use special characters it looks good: <img width="379" height="186" alt="Image" src="https://github.com/user-attachments/assets/0252926a-f541-4537-a94a-86873bbdb7a3" /> Adding Emoji cause issues: <img width="375" height="178" alt="Image" src="https://github.com/user-attachments/assets/dc891360-7f47-49de-a7b7-bc50412d8cca" /> With the text: `טקסט בשפה עברית אמור להיות מוצג מימין לשמאל` is even worse: <img width="402" height="169" alt="Image" src="https://github.com/user-attachments/assets/01d5f1fa-b70f-478a-a47f-c93cd9541a30" /> ### Expected behavior Text is trimmed correctly. We see begining and end of the text ### Avalonia version 11.2.3, 11.3.0, 11.3.2, 12.0.999-cibuild0057790-alpha ### OS Windows ### Additional context _No response_