Index: src/ports/SkFontHost_win.cpp |
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp |
index f292bdd69b2242c0caa238f6e2fd36b569c31364..4a091bc71b8d7405fa602dadb25e0acb620a628f 100755 |
--- a/src/ports/SkFontHost_win.cpp |
+++ b/src/ports/SkFontHost_win.cpp |
@@ -743,7 +743,9 @@ static bool getWidthAdvance(HDC hdc, int gId, int16_t* advance) { |
// static |
SkAdvancedTypefaceMetrics* SkFontHost::GetAdvancedTypefaceMetrics( |
uint32_t fontID, |
- SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo) { |
+ SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo, |
+ const uint32_t* glyphIDs, |
+ uint32_t glyphIDsCount) { |
LOGFONT lf; |
GetLogFontByID(fontID, &lf); |
SkAdvancedTypefaceMetrics* info = NULL; |
@@ -863,7 +865,11 @@ SkAdvancedTypefaceMetrics* SkFontHost::GetAdvancedTypefaceMetrics( |
SkAdvancedTypefaceMetrics::WidthRange::kDefault); |
} else { |
info->fGlyphWidths.reset( |
- getAdvanceData(hdc, glyphCount, &getWidthAdvance)); |
+ getAdvanceData(hdc, |
+ glyphCount, |
+ glyphIDs, |
+ glyphIDsCount, |
+ &getWidthAdvance)); |
} |
} |