-
Notifications
You must be signed in to change notification settings - Fork 675
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
Different font display #9850
Comments
Styles here <Style x:Key="CommonTextStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="18" />
<Setter Property="FontFamily" Value="MiSans" />
<Setter Property="TextTrimming" Value="CharacterEllipsis" />
<Setter Property="TextWrapping" Value="WrapWholeWords" />
<Setter Property="Foreground" Value="{StaticResource CommonTextColor}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="CommonRichTextStyle" TargetType="RichTextBlock">
<Setter Property="FontSize" Value="18" />
<Setter Property="FontFamily" Value="MiSans" />
<Setter Property="TextTrimming" Value="CharacterEllipsis" />
<Setter Property="TextWrapping" Value="WrapWholeWords" />
<Setter Property="Foreground" Value="{StaticResource CommonTextColor}" />
<Setter Property="FontWeight" Value="Normal" />
</Style> |
well, i changed my font to HarmonyOS Font, it displays well. |
@Miaoyww are you using a custom font 'MiSans'. I can't tell from the image. Could this be an issue with the custom font? |
i changed my font to HarmonyOS Font, it displays okay. |
MiSans isn't hinted properly ( https://en.wikipedia.org/wiki/Font_hinting ) which is quite common for mobile fonts as they display at much higher DPI's where the extra file space used by hinting isn't a necessary trade off. You won't notice on mobile because of the higher DPI, but on desktop at 96 DPI you will notice it very clearly, especially on smaller font sizes. |
Ahhhh i dont know this. So all of these caused by MiSans instead of winui3? |
@Miaoyww that does seem to be the case. Resolving as won't fix. |
Describe the bug
I'm using MiSans as my app font, however, it doesn't display the same.
like the hitokoto card, it looks pretty normal
Why they just looks so different? The following has such a bad looking.
my repo: https://github.com/Miaoyww/NonsPlayer
Steps to reproduce the bug
Above
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.5: 1.5.240627000
Windows version
Windows Insider Build (xxxxx)
Additional context
Win11 23H2 22631.3380
The text was updated successfully, but these errors were encountered: