From ce077bb5d37f2aea4602c50d027a24be3f8b3b54 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Fri, 2 Nov 2018 16:28:00 +0900 Subject: [PATCH] [WIN32SS][FONT] Add DPRINT1 and ASSERT for font resize failure (#1003) Add DPRINT1 and ASSERT calls for font resize failure in IntRequestFontSize function. JIRA issue: N/A --- win32ss/gdi/ntgdi/freetype.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c index 31a4b4920ec..dfdb3768f67 100644 --- a/win32ss/gdi/ntgdi/freetype.c +++ b/win32ss/gdi/ntgdi/freetype.c @@ -3274,7 +3274,11 @@ IntRequestFontSize(PDC dc, PFONTGDI FontGDI, LONG lfWidth, LONG lfHeight) { error = FT_Get_WinFNT_Header(face, &WinFNT); if (error) + { + DPRINT1("%s: Failed to request font size.\n", face->family_name); + ASSERT(FALSE); return error; + } FontGDI->tmHeight = WinFNT.pixel_height; FontGDI->tmAscent = WinFNT.ascent;