From e7a139542efcbf27ec246303141596a5af3fa2ea Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 29 Jul 2021 22:22:02 +0800 Subject: [PATCH] style: use 'Microsoft YaHei UI' for chinese characters --- src/Views/Widgets/DiffViewer.xaml.cs | 1 + src/Views/Widgets/RevisionFiles.xaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Views/Widgets/DiffViewer.xaml.cs b/src/Views/Widgets/DiffViewer.xaml.cs index 10c15433..739f49b3 100644 --- a/src/Views/Widgets/DiffViewer.xaml.cs +++ b/src/Views/Widgets/DiffViewer.xaml.cs @@ -467,6 +467,7 @@ namespace SourceGit.Views.Widgets { line.SetBinding(TextBlock.BackgroundProperty, new Binding("BG")); line.SetBinding(TextBlock.ForegroundProperty, new Binding("FG")); line.SetBinding(TextBlock.FontStyleProperty, new Binding("Style")); + line.SetValue(TextBlock.FontFamilyProperty, new FontFamily("Consolas,Microsoft YaHei UI")); line.SetValue(TextBlock.FontSizeProperty, new FontSizeConverter().ConvertFrom("9pt")); line.SetValue(TextBlock.MarginProperty, new Thickness(0)); line.SetValue(TextBlock.PaddingProperty, new Thickness(4, 0, 0, 0)); diff --git a/src/Views/Widgets/RevisionFiles.xaml b/src/Views/Widgets/RevisionFiles.xaml index 33302c46..712f9be6 100644 --- a/src/Views/Widgets/RevisionFiles.xaml +++ b/src/Views/Widgets/RevisionFiles.xaml @@ -66,7 +66,7 @@