mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 12:43:05 +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);
|
error = FT_Get_WinFNT_Header(face, &WinFNT);
|
||||||
if (error)
|
if (error)
|
||||||
|
{
|
||||||
|
DPRINT1("%s: Failed to request font size.\n", face->family_name);
|
||||||
|
ASSERT(FALSE);
|
||||||
return error;
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
FontGDI->tmHeight = WinFNT.pixel_height;
|
FontGDI->tmHeight = WinFNT.pixel_height;
|
||||||
FontGDI->tmAscent = WinFNT.ascent;
|
FontGDI->tmAscent = WinFNT.ascent;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue