From 35149275381d680fac1cc953a19e27bc46ccfd8b Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Wed, 1 Nov 2017 17:56:51 +0900 Subject: [PATCH] font width info for diagnosis --- win32ss/gdi/ntgdi/freetype.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c index 5fb58cf3e4..8b0b10ac66 100644 --- a/win32ss/gdi/ntgdi/freetype.c +++ b/win32ss/gdi/ntgdi/freetype.c @@ -33,7 +33,7 @@ #include #include "font.h" -#define NDEBUG +//#define NDEBUG #include /* TPMF_FIXED_PITCH is confusing; brain-dead api */ @@ -4478,6 +4478,7 @@ TextIntRealizeFont(HFONT FontHandle, PTEXTOBJ pTextObj) DPRINT("Font '%S,%u' is substituted by: ", pLogFont->lfFaceName, pLogFont->lfCharSet); SubstituteFontRecurse(&SubstitutedLogFont); DPRINT("'%S,%u'.\n", SubstitutedLogFont.lfFaceName, SubstitutedLogFont.lfCharSet); + DPRINT("lfWidth: %ld\n", pLogFont->lfWidth); MatchPenalty = 0xFFFFFFFF; TextObj->Font = NULL; @@ -5452,9 +5453,11 @@ GreExtTextOutW( FT_Get_Kerning(face, previous, glyph_index, 0, &delta); TextLeft += delta.x; } + /* DPRINT("TextLeft: %I64d\n", TextLeft); DPRINT("TextTop: %lu\n", TextTop); DPRINT("Advance: %d\n", realglyph->root.advance.x); + */ DestRect.left = BackgroundLeft; DestRect.right = (TextLeft + (realglyph->root.advance.x >> 10) + 32) >> 6; -- 2.14.2