mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[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:
parent
8cbaca5724
commit
ce077bb5d3
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue