解决GDI+部分字体不同尺寸下不显示的问题

This commit is contained in:
小红帽 2024-01-23 19:25:15 +08:00
parent 8e4047fa0e
commit e91ba9d8bc

View File

@ -295,7 +295,7 @@ namespace CPF.GDIPlus
{ {
if (h == -1) if (h == -1)
{ {
h = Font.Height; h = Font.Height + 0.01f;//有些字体用行高计算字符尺寸的时候会有问题只能加0.01
} }
return h; return h;
} }