From f7b1e95b102415c323f2b570d0ce499b62f3a8fd Mon Sep 17 00:00:00 2001 From: dontpanic Date: Fri, 3 Jan 2020 22:10:44 +0800 Subject: [PATCH] Make text sharper on low resolution screens --- Dotnvim/Controls/NeovimControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dotnvim/Controls/NeovimControl.cs b/Dotnvim/Controls/NeovimControl.cs index 688d51e..ffe2cbe 100644 --- a/Dotnvim/Controls/NeovimControl.cs +++ b/Dotnvim/Controls/NeovimControl.cs @@ -428,7 +428,7 @@ protected override void Draw() }) { var origin = new RawVector2(this.textParam.CharWidth * cellIndex, this.textParam.LineHeight * (i + 0.8f)); - this.DeviceContext.DrawGlyphRun(origin, glyphrun, foregroundBrush, D2D.MeasuringMode.Natural); + this.DeviceContext.DrawGlyphRun(origin, glyphrun, foregroundBrush, D2D.MeasuringMode.GdiNatural); glyphrun.FontFace = null; }