[NTGDI][FREETYPE] Return non-zero gm.gmBlackBoxX/Y (#2643)

In return of GetGlyphOutline function call, gm.gmBlackBoxX and gm.gmBlackBoxY must be non-zero to avoid Division by Zero. At epilogue of ftGdiGetGlyphOutline, we adjust the values. CORE-15949
This commit is contained in:
Katayama Hirofumi MZ 2020-04-23 22:02:41 +09:00 committed by GitHub
parent 5ce61092b5
commit 52fb8c1a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4203,6 +4203,12 @@ ftGdiGetGlyphOutline(
}
DPRINT("ftGdiGetGlyphOutline END and needed %lu\n", needed);
if (gm.gmBlackBoxX == 0)
gm.gmBlackBoxX = 1;
if (gm.gmBlackBoxY == 0)
gm.gmBlackBoxY = 1;
*pgm = gm;
return needed;
}