Custom Fonts Height is too Higher then FontSize
Opened this issue · 1 comments
inquick commented
Describe the bug
I add two TextBlock in window, and use custom fonts. The Digiface FontFamily shows normally but the "思源黑体 CN Regular" shows not as what i want.
Is there any way to make "思源黑体 CN Regular" shows Alignment center?
The code is:
`
To Reproduce
- Copy the two ttf files to application resources under /Assets/Fonts/
- Add
<TextBlock Background="Blue" Text="00:00" FontSize="20" FontFamily="avares://CommandCenter/Assets/Fonts/DIGITAL-REGULAR.TTF#Digiface" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center"/> <TextBlock Background="Blue" FontSize="20" FontFamily="avares://CommandCenter/Assets/Fonts/SourceHanSansCN-Regular.ttf#思源黑体 CN Regular" VerticalAlignment="Center" >Hello</TextBlock>
in any view.axaml files.
3. Build and abserve the UI about “Hello”.
Expected behavior
No response
Avalonia version
11.2.1
OS
Windows
Additional context
No response
timunie commented
Please try always latest version available, best nightly. Also worth to test Font on Word or similar, could also be a font issue.