| Index: src/ports/SkFontHost_win.cpp
|
| diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp
|
| index 2cf5e9e50fb5b2321ef2adba330884569b7d4be4..a1d92fc21611a6ea4e34a4a93f4820c891f5fa4b 100755
|
| --- a/src/ports/SkFontHost_win.cpp
|
| +++ b/src/ports/SkFontHost_win.cpp
|
| @@ -1581,17 +1581,17 @@
|
| {
|
| GLYPHMETRICS gm;
|
|
|
| - DWORD total_size = GetGlyphOutlineW(fDDC, glyph.getGlyphID(), flags, &gm, BUFFERSIZE, glyphbuf->get(), &fMat22);
|
| + DWORD total_size = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, BUFFERSIZE, glyphbuf->get(), &fMat22);
|
| // Sometimes GetGlyphOutlineW returns a number larger than BUFFERSIZE even if BUFFERSIZE > 0.
|
| // It has been verified that this does not involve a buffer overrun.
|
| if (GDI_ERROR == total_size || total_size > BUFFERSIZE) {
|
| // GDI_ERROR because the BUFFERSIZE was too small, or because the data was not accessible.
|
| // When the data is not accessable GetGlyphOutlineW fails rather quickly,
|
| // so just try to get the size. If that fails then ensure the data is accessible.
|
| - total_size = GetGlyphOutlineW(fDDC, glyph.getGlyphID(), flags, &gm, 0, NULL, &fMat22);
|
| + total_size = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, 0, NULL, &fMat22);
|
| if (GDI_ERROR == total_size) {
|
| LogFontTypeface::EnsureAccessible(this->getTypeface());
|
| - total_size = GetGlyphOutlineW(fDDC, glyph.getGlyphID(), flags, &gm, 0, NULL, &fMat22);
|
| + total_size = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, 0, NULL, &fMat22);
|
| if (GDI_ERROR == total_size) {
|
| // GetGlyphOutlineW is known to fail for some characters, such as spaces.
|
| // In these cases, just return that the glyph does not have a shape.
|
| @@ -1601,10 +1601,10 @@
|
|
|
| glyphbuf->reset(total_size);
|
|
|
| - DWORD ret = GetGlyphOutlineW(fDDC, glyph.getGlyphID(), flags, &gm, total_size, glyphbuf->get(), &fMat22);
|
| + DWORD ret = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, total_size, glyphbuf->get(), &fMat22);
|
| if (GDI_ERROR == ret) {
|
| LogFontTypeface::EnsureAccessible(this->getTypeface());
|
| - ret = GetGlyphOutlineW(fDDC, glyph.getGlyphID(), flags, &gm, total_size, glyphbuf->get(), &fMat22);
|
| + ret = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, total_size, glyphbuf->get(), &fMat22);
|
| if (GDI_ERROR == ret) {
|
| SkASSERT(false);
|
| return 0;
|
|
|