AvaloniaUI/Avalonia

VerticalContentAlignment="Center" has been set, but the SourceHanSansCN font is still not centered in all controls

susin3x opened this issue · 5 comments

Describe the bug

VerticalContentAlignment="Center" has been set, but the SourceHanSansCN font is still not centered in all controls
Snipaste_2024-12-05_11-24-45
Uploading FontFontFamilyTest.zip…

To Reproduce

VerticalContentAlignment="Center" has been set, but the SourceHanSansCN font is still not centered in all controls

Expected behavior

No response

Avalonia version

11.1.0

OS

No response

Additional context

No response

Please use 11.2 for testings or even better latest nightly. Also worth to check visual tree in DevTools F12 is there is any unexpected Margin or Padding.

Please use 11.2 for testings or even better latest nightly. Also worth to check visual tree in DevTools F12 is there is any unexpected Margin or Padding.
The SourceHanSansCN font will increase the Height of AccessText in the Button template
Snipaste_2024-12-06_08-47-42

你用的字体可能不是最新的,可以去这下Region Specific Subset OTFs Simplified Chinese (简体中文),或者使用SourceHanSansSCLanguage Specific OTFs Simplified Chinese (简体中文),我在这下载的使用是没问题的。

Hi @Hzlin7 so you think that the font is too old and newer font works fine? If so, I think we can move this topic into a Q&A as it is not an Avalonia issue then.

Hi @Hzlin7 so you think that the font is too old and newer font works fine? If so, I think we can move this topic into a Q&A as it is not an Avalonia issue then.

Yes, I am using the V2.004 version of the font, and it works fine.