Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

[11.2.0-beta2] Hight of TextBlocks are different between CJK and non-CJK text

Open hamster620 opened this issue 4 months ago • 0 comments

Describe the bug

After upgrading from 11.1.3 to 11.2.0-beta2, the height of TextBlock contains CJK and non-CJK text (with same font size and default font family) will be different, which makes layout slightly change after switching locale.

11.1.3: 截圖 2024-09-28 下午4 01 30

11.2.0-beta2: 截圖 2024-09-28 下午4 00 51

To Reproduce

Place TextBlocks with CJK and non-CJK text.

Expected behavior

Height or line hight should be same no matter the text contains CJK characters or not.

Avalonia version

11.2.0-beta2

OS

Windows, macOS

Additional context

No response

hamster620 avatar Sep 28 '24 08:09 hamster620