diff options
author | 2016-05-09 08:41:01 -0700 | |
---|---|---|
committer | 2016-05-09 08:41:01 -0700 | |
commit | 5a493cdbeca87f85e2b08914c176c29d914083d9 (patch) | |
tree | 0f64a7e24392bde722301e788690b951f6e14abb /src/ports/SkFontHost_mac.cpp | |
parent | ab12c788e2d8f7768c65c65ec6d6190ffb2f3fcc (diff) |
Less indentation.
Review-Url: https://codereview.chromium.org/1963693002
Diffstat (limited to 'src/ports/SkFontHost_mac.cpp')
-rw-r--r-- | src/ports/SkFontHost_mac.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp index cff69b315c..0cc436f7c3 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; |