[Wine-patches] [eter-2.0.0 3/3] gdiplus: Make font height better match a desired one. [eterbug #8317]

Dmitry Timoshkov dtimoshkov на etersoft.ru
Ср Май 16 08:08:26 MSK 2012


This avoids backporting huge and invasive pile of gdiplus font patches.
---
 dlls/gdiplus/font.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 1ac7604..28f2012 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -198,7 +198,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
     (*font)->lfw.lfWeight = textmet.tmWeight;
     (*font)->lfw.lfCharSet = textmet.tmCharSet;
 
-    (*font)->pixel_size = (*font)->emSize = textmet.tmHeight;
+    (*font)->pixel_size = textmet.tmAscent;
+    (*font)->emSize = textmet.tmHeight;
     (*font)->unit = UnitPixel;
     (*font)->height = 1; /* FIXME: need NEWTEXTMETRIC.ntmSizeEM here */
     (*font)->line_spacing = textmet.tmAscent + textmet.tmDescent + textmet.tmExternalLeading;
-- 
1.7.10.1



Подробная информация о списке рассылки Wine-patches