Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

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

Closed
susin3x opened this issue Dec 5, 2024 · 5 comments
Labels

Comments

@susin3x
Copy link

susin3x commented Dec 5, 2024

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

@susin3x susin3x added the bug label Dec 5, 2024
@timunie
Copy link
Contributor

timunie commented Dec 5, 2024

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.

@susin3x
Copy link
Author

susin3x commented Dec 6, 2024

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

@Hzlin7
Copy link

Hzlin7 commented Dec 10, 2024

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

@timunie
Copy link
Contributor

timunie commented Dec 10, 2024

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.

@Hzlin7
Copy link

Hzlin7 commented Dec 11, 2024

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.

@timunie timunie added question and removed bug labels Dec 11, 2024
@AvaloniaUI AvaloniaUI locked and limited conversation to collaborators Dec 11, 2024
@timunie timunie converted this issue into discussion #17751 Dec 11, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

3 participants