| Index: src/ports/SkFontHost_mac.cpp
|
| diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp
|
| index d95ebbb27264e81fbb206b295104332aec481e77..842c5e6b71747fa40ecff7e92fbcc663f56b8caa 100644
|
| --- a/src/ports/SkFontHost_mac.cpp
|
| +++ b/src/ports/SkFontHost_mac.cpp
|
| @@ -1667,24 +1667,6 @@ SkAdvancedTypefaceMetrics* SkTypeface_Mac::onGetAdvancedTypefaceMetrics(
|
| }
|
| }
|
| }
|
| -
|
| - if (perGlyphInfo & kHAdvance_PerGlyphInfo) {
|
| - 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;
|
| - })
|
| - );
|
| - }
|
| return info;
|
| }
|
|
|
|
|