Index: src/ports/SkFontHost_FreeType.cpp |
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp |
index 4dc401c59a6f456aaf360d3ef90de6b0174a733c..2e0b8b6ee371abc703bd1c5db8bb336cceef9eda 100644 |
--- a/src/ports/SkFontHost_FreeType.cpp |
+++ b/src/ports/SkFontHost_FreeType.cpp |
@@ -606,18 +606,19 @@ SkAdvancedTypefaceMetrics* SkTypeface_FreeType::onGetAdvancedTypefaceMetrics( |
info->fGlyphWidths.emplace_back(std::move(range)); |
} else { |
info->setGlyphWidths( |
- face->num_glyphs, glyphIDs, glyphIDsCount, |
- SkAdvancedTypefaceMetrics::GetAdvance( |
- [face](int gId, int16_t* data) { |
- FT_Fixed advance = 0; |
- if (FT_Get_Advances(face, gId, 1, |
- FT_LOAD_NO_SCALE, &advance)) { |
- return false; |
- } |
- SkASSERT(data); |
- *data = advance; |
- return true; |
- })); |
+ face->num_glyphs, |
+ glyphIDs, |
+ glyphIDsCount, |
+ SkAdvancedTypefaceMetrics::GetAdvance([face](int gId, int16_t* data) { |
+ FT_Fixed advance = 0; |
+ if (FT_Get_Advances(face, gId, 1, FT_LOAD_NO_SCALE, &advance)) { |
+ return false; |
+ } |
+ SkASSERT(data); |
+ *data = advance; |
+ return true; |
+ }) |
+ ); |
} |
} |