-
Notifications
You must be signed in to change notification settings - Fork 703
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
Font ramp update #4862
Font ramp update #4862
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@marksfoster Do these changes take into account the change of font from Segoe UI to Segoe UI Variable? I can only assume there is some new logic going on under the hood to adjust the OpticalSize axis in line with the font size being used - but I wonder if that will only be supported with Windows 10 21H2 onward, or if the font will be bundled with WinUI/Reunion, so all WinUI apps will benefit from the new and more consistent typographic styles? |
This PR fixes a regression in BaseTextBlockStyle which causes TextBlocks in legacy code (with style BaseTextBlockStyle) to not be SemiBold.
STYLE IN GENERIC
<Style x:Key="BaseTextBlockStyle" TargetType="TextBlock"> <Setter Property="FontFamily" Value="XamlAutoFontFamily" /> <Setter Property="FontWeight" Value="SemiBold" /> <Setter Property="FontSize" Value="14" /> <Setter Property="TextTrimming" Value="None" /> <Setter Property="TextWrapping" Value="Wrap" /> <Setter Property="LineStackingStrategy" Value="MaxHeight" /> <Setter Property="TextLineBounds" Value="Full" /> </Style>
Before
After