| Index: src/ports/SkFontHost_win.cpp
|
| diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp
|
| index 5a902148bd5eb8a8803f45d29014ad718f9f151c..a6ccf4d2ee37f0f90f024fe46d2ac2d021e878da 100755
|
| --- a/src/ports/SkFontHost_win.cpp
|
| +++ b/src/ports/SkFontHost_win.cpp
|
| @@ -1706,7 +1706,8 @@ DWORD SkScalerContext_GDI::getGDIGlyphPath(const SkGlyph& glyph, UINT flags,
|
| LogFontTypeface::EnsureAccessible(this->getTypeface());
|
| total_size = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, 0, NULL, &fMat22);
|
| if (GDI_ERROR == total_size) {
|
| - SkASSERT(false);
|
| + // GetGlyphOutlineW is known to fail for some characters, such as spaces.
|
| + // In these cases, just return that the glyph does not have a shape.
|
| return 0;
|
| }
|
| }
|
|
|