diff --git a/README.md b/README.md index 04bc76e2..23918ddc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SourceGit -开源的Git客户端,仅用于Windows 10。需要`.NET 5.0` +开源的Git客户端,仅用于Windows 10。 ## 预览 diff --git a/src/SourceGit.csproj b/src/SourceGit.csproj index 05ac9f12..c78b8dab 100644 --- a/src/SourceGit.csproj +++ b/src/SourceGit.csproj @@ -1,10 +1,7 @@ - + - net5.0-windows + net46 WinExe - win-x64 - false - true true true App.ico @@ -12,7 +9,7 @@ OpenSource GIT client for Windows Copyright © sourcegit 2020. All rights reserved. App.manifest - 1.8 + 1.9 MIT SourceGit.App https://gitee.com/sourcegit/SourceGit.git diff --git a/src/UI/Blame.xaml.cs b/src/UI/Blame.xaml.cs index bb0b1284..c69175ac 100644 --- a/src/UI/Blame.xaml.cs +++ b/src/UI/Blame.xaml.cs @@ -117,7 +117,8 @@ namespace SourceGit.UI { new Typeface(content.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch), content.FontSize, Brushes.Black, - VisualTreeHelper.GetDpi(this).PixelsPerDip); + new NumberSubstitution(), + TextFormattingMode.Ideal); if (minWidth < formatter.Width) { content.Document.PageWidth = formatter.Width + 16; minWidth = formatter.Width; diff --git a/src/UI/DiffViewer.xaml.cs b/src/UI/DiffViewer.xaml.cs index 603284d0..d95f5936 100644 --- a/src/UI/DiffViewer.xaml.cs +++ b/src/UI/DiffViewer.xaml.cs @@ -218,7 +218,8 @@ namespace SourceGit.UI { new Typeface(leftText.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch), leftText.FontSize, Brushes.Black, - VisualTreeHelper.GetDpi(this).PixelsPerDip); + new NumberSubstitution(), + TextFormattingMode.Ideal); if (minWidth < formatter.Width) minWidth = formatter.Width;