AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.04k stars 2.25k forks source link

Diacritics misalignment on 11.2.0 #17527

Open Aytharn opened 1 week ago

Aytharn commented 1 week ago

Describe the bug

When displaying strings containing diacritics, like the very common "é" in French the accent aligns with the surrounding text, not the character itself, which goes pushed underneath in a quite weird fashion.

Screenshot 2024-11-15 at 18 06 31 Screenshot 2024-11-15 at 18 06 51

To Reproduce

Just load a text from an .xml resource and display it in the UI

Expected behavior

normal appropriated alignment of the letters, with diacritics appearing where they should, suspended above them

Avalonia version

11.2.0

OS

macOS

Additional context

No response

Aytharn commented 5 days ago

More details: the bug is as well present on iOS, which makes quite sense. At the same time numbers have a wrong horizontal alignment as well: with "large" numbers is ok, for instance: 2,8 will look ok but using thin shaped ones like 1 or 7 will cause the text to appear like "1 ,3" or "7 ,8"