aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkFontHost_mac.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-05-09 08:41:01 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-09 08:41:01 -0700
commit5a493cdbeca87f85e2b08914c176c29d914083d9 (patch)
tree0f64a7e24392bde722301e788690b951f6e14abb /src/ports/SkFontHost_mac.cpp
parentab12c788e2d8f7768c65c65ec6d6190ffb2f3fcc (diff)
Less indentation.
Diffstat (limited to 'src/ports/SkFontHost_mac.cpp')
-rw-r--r--src/ports/SkFontHost_mac.cpp25
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;