Commit e29e4cac authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

gdiplus: Fix empty glyph handling.

parent 33e05eb6
......@@ -6242,11 +6242,15 @@ static GpStatus SOFTWARE_GdipDrawDriverString(GpGraphics *graphics, GDIPCONST UI
/* Generate a mask for the text */
for (i=0; i<length; i++)
{
DWORD ret;
int left, top, stride;
GetGlyphOutlineW(hdc, text[i], ggo_flags,
ret = GetGlyphOutlineW(hdc, text[i], ggo_flags,
&glyphmetrics, max_glyphsize, glyph_mask, &identity);
if (ret == GDI_ERROR || ret == 0)
continue; /* empty glyph */
left = pti[i].x + glyphmetrics.gmptGlyphOrigin.x;
top = pti[i].y - glyphmetrics.gmptGlyphOrigin.y;
stride = (glyphmetrics.gmBlackBoxX + 3) & (~3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment