Index: src/ports/SkFontHost_mac.cpp |
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp |
index cff69b315cc0254a8d275249aaa8e9a500c4895b..0cc436f7c3c44e1320a5d8566e9c63d78977e2ee 100644 |
--- a/src/ports/SkFontHost_mac.cpp |
+++ b/src/ports/SkFontHost_mac.cpp |
@@ -1618,18 +1618,19 @@ SkAdvancedTypefaceMetrics* SkTypeface_Mac::onGetAdvancedTypefaceMetrics( |
} else { |
CTFontRef borrowedCTFont = ctFont.get(); |
info->setGlyphWidths( |
- SkToInt(glyphCount), glyphIDs, glyphIDsCount, |
- SkAdvancedTypefaceMetrics::GetAdvance( |
- [borrowedCTFont](int gId, int16_t* data) { |
- CGSize advance; |
- advance.width = 0; |
- CGGlyph glyph = gId; |
- CTFontGetAdvancesForGlyphs( |
- borrowedCTFont, kCTFontHorizontalOrientation, |
- &glyph, &advance, 1); |
- *data = sk_float_round2int(advance.width); |
- return true; |
- })); |
+ SkToInt(glyphCount), |
+ glyphIDs, |
+ glyphIDsCount, |
+ SkAdvancedTypefaceMetrics::GetAdvance([borrowedCTFont](int gId, int16_t* data) { |
+ CGSize advance; |
+ advance.width = 0; |
+ CGGlyph glyph = gId; |
+ CTFontGetAdvancesForGlyphs(borrowedCTFont, kCTFontHorizontalOrientation, |
+ &glyph, &advance, 1); |
+ *data = sk_float_round2int(advance.width); |
+ return true; |
+ }) |
+ ); |
} |
} |
return info; |