From e91ba9d8bc671e333723281a1a8eaa98cad16b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=BA=A2=E5=B8=BD?= <761716178@qq.com> Date: Tue, 23 Jan 2024 19:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3GDI+=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E4=B8=8D=E5=90=8C=E5=B0=BA=E5=AF=B8=E4=B8=8B?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CPF.Windows/GDIPlus/GDIPlusDrawingFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CPF.Windows/GDIPlus/GDIPlusDrawingFactory.cs b/CPF.Windows/GDIPlus/GDIPlusDrawingFactory.cs index 7ee6adf..e75c1a0 100644 --- a/CPF.Windows/GDIPlus/GDIPlusDrawingFactory.cs +++ b/CPF.Windows/GDIPlus/GDIPlusDrawingFactory.cs @@ -295,7 +295,7 @@ namespace CPF.GDIPlus { if (h == -1) { - h = Font.Height; + h = Font.Height + 0.01f;//有些字体用行高计算字符尺寸的时候会有问题,只能加0.01 } return h; }