style<*>: change font render mode

This commit is contained in:
leo 2021-05-17 16:56:47 +08:00
parent a94a62bd27
commit 5b3b551b84

View file

@ -7,6 +7,8 @@
mc:Ignorable="d" mc:Ignorable="d"
UseLayoutRounding="True" UseLayoutRounding="True"
Title="{StaticResource Text.Blame}" Title="{StaticResource Text.Blame}"
TextOptions.TextFormattingMode="Display"
TextOptions.TextRenderingMode="ClearType"
WindowStartupLocation="CenterOwner" WindowStartupLocation="CenterOwner"
Height="600" Width="800"> Height="600" Width="800">
<WindowChrome.WindowChrome> <WindowChrome.WindowChrome>
@ -86,7 +88,7 @@
<DataGridTemplateColumn.CellTemplate> <DataGridTemplateColumn.CellTemplate>
<DataTemplate> <DataTemplate>
<Border Background="{Binding BG}" BorderThickness="0"> <Border Background="{Binding BG}" BorderThickness="0">
<TextBlock Text="{Binding Line.Content}" Background="Transparent" Foreground="{StaticResource Brush.FG1}" FontFamily="Consolas" FontSize="12" Margin="0" Padding="2,0,0,0"/> <TextBlock Text="{Binding Line.Content}" Background="Transparent" Foreground="{StaticResource Brush.FG1}" FontFamily="Consolas,SimSun" FontSize="9pt" Margin="0" Padding="2,0,0,0"/>
</Border> </Border>
</DataTemplate> </DataTemplate>
</DataGridTemplateColumn.CellTemplate> </DataGridTemplateColumn.CellTemplate>