From 303df7a3eb83e1008a99113fa8fa3abe699f4a16 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 18 Jun 2021 15:54:05 +0800 Subject: [PATCH] fix: fix placeholder text blur issue --- src/Views/Controls/TextEdit.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Views/Controls/TextEdit.cs b/src/Views/Controls/TextEdit.cs index 9048a97c..59df84d2 100644 --- a/src/Views/Controls/TextEdit.cs +++ b/src/Views/Controls/TextEdit.cs @@ -49,9 +49,11 @@ namespace SourceGit.Views.Controls { Placeholder, CultureInfo.CurrentCulture, FlowDirection.LeftToRight, - new Typeface(FontFamily, FontStyle, FontWeight, FontStretches.Normal), + new Typeface(FontFamily, FontStyle, FontWeight, FontStretch), FontSize, FindResource("Brush.FG2") as Brush, + new NumberSubstitution(), + TextFormattingMode.Display, VisualTreeHelper.GetDpi(this).PixelsPerDip); switch (PlaceholderBaseline) {