| Index: src/ports/SkTypeface_win_dw.cpp
|
| diff --git a/src/ports/SkTypeface_win_dw.cpp b/src/ports/SkTypeface_win_dw.cpp
|
| index 87fbcd2f6cfc70b00190951837f5892afa1d492f..0f22e471cfcb17428a9f09883613d62217cf8e39 100644
|
| --- a/src/ports/SkTypeface_win_dw.cpp
|
| +++ b/src/ports/SkTypeface_win_dw.cpp
|
| @@ -452,11 +452,13 @@ SkAdvancedTypefaceMetrics* DWriteFontTypeface::onGetAdvancedTypefaceMetrics(
|
| } else {
|
| IDWriteFontFace* borrowedFontFace = fDWriteFontFace.get();
|
| info->setGlyphWidths(
|
| - glyphCount, glyphIDs, glyphIDsCount,
|
| - SkAdvancedTypefaceMetrics::GetAdvance(
|
| - [borrowedFontFace](int gId, int16_t* data) {
|
| - return getWidthAdvance(borrowedFontFace, gId, data);
|
| - }));
|
| + glyphCount,
|
| + glyphIDs,
|
| + glyphIDsCount,
|
| + SkAdvancedTypefaceMetrics::GetAdvance([borrowedFontFace](int gId, int16_t* data) {
|
| + return getWidthAdvance(borrowedFontFace, gId, data);
|
| + })
|
| + );
|
| }
|
| }
|
|
|
|
|