style<Fonts>: use TextFormattingMode.Ideal for bold letters

This commit is contained in:
leo 2021-06-18 17:42:37 +08:00
parent 303df7a3eb
commit e6095cec56
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@
<TextBlock
Margin="0,16,0,0"
Text="{StaticResource Text.Diff.Welcome}"
FontSize="18" FontWeight="UltraBold"
FontSize="18" FontWeight="UltraBold" TextOptions.TextFormattingMode="Ideal"
Foreground="{StaticResource Brush.FG2}"
HorizontalAlignment="Center"/>
</StackPanel>

View file

@ -26,7 +26,7 @@
<!-- Custom panel -->
<Border x:Name="body">
<StackPanel Margin="8" Orientation="Vertical">
<TextBlock Margin="8,8,0,18" x:Name="txtTitle" FontSize="18" FontWeight="DemiBold"/>
<TextBlock Margin="8,8,0,18" x:Name="txtTitle" FontSize="18" FontWeight="DemiBold" TextOptions.TextFormattingMode="Ideal"/>
<ContentControl x:Name="container"/>
<StackPanel Margin="0,16,0,0" Height="32" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Click="Sure" Width="80" Content="{StaticResource Text.Sure}" BorderBrush="{StaticResource Brush.FG1}" Background="{StaticResource Brush.Accent1}"/>