[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
This commit is contained in:
Katayama Hirofumi MZ 2018-11-02 16:28:00 +09:00 committed by GitHub
parent 8cbaca5724
commit ce077bb5d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;