| Index: Source/platform/fonts/cocoa/FontPlatformDataCocoa.mm
|
| diff --git a/Source/platform/fonts/cocoa/FontPlatformDataCocoa.mm b/Source/platform/fonts/cocoa/FontPlatformDataCocoa.mm
|
| index 9f3bd9fc9599faedf78e3e3384b2c116163ba6be..de9069b35905ef4f51ad9edc580d7a7c29e06545 100644
|
| --- a/Source/platform/fonts/cocoa/FontPlatformDataCocoa.mm
|
| +++ b/Source/platform/fonts/cocoa/FontPlatformDataCocoa.mm
|
| @@ -290,28 +290,9 @@ SkTypeface* FontPlatformData::typeface() const{
|
| }
|
|
|
| #if OS(MACOSX)
|
| -static bool isAATFont(CTFontRef ctFont)
|
| -{
|
| - CFDataRef table = CTFontCopyTable(ctFont, kCTFontTableMort, 0);
|
| - if (table) {
|
| - CFRelease(table);
|
| - return true;
|
| - }
|
| - table = CTFontCopyTable(ctFont, kCTFontTableMorx, 0);
|
| - if (table) {
|
| - CFRelease(table);
|
| - return true;
|
| - }
|
| - return false;
|
| -}
|
| -
|
| HarfBuzzFace* FontPlatformData::harfBuzzFace()
|
| {
|
| CTFontRef font = ctFont();
|
| - // HarfBuzz can't handle AAT font
|
| - if (isAATFont(font))
|
| - return 0;
|
| -
|
| if (!m_harfBuzzFace) {
|
| uint64_t uniqueID = reinterpret_cast<uintptr_t>(font);
|
| m_harfBuzzFace = HarfBuzzFace::create(const_cast<FontPlatformData*>(this), uniqueID);
|
|
|