| Index: third_party/harfbuzz-ng/src/hb-coretext.cc
|
| diff --git a/third_party/harfbuzz-ng/src/hb-coretext.cc b/third_party/harfbuzz-ng/src/hb-coretext.cc
|
| index ee7f91cc9a7a3a9f1e84ebb6abc92ea3d9ded413..507581bd7b7dbb783ed30e7e29ce5f28372b94a9 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-coretext.cc
|
| +++ b/third_party/harfbuzz-ng/src/hb-coretext.cc
|
| @@ -152,7 +152,8 @@ create_ct_font (CGFontRef cg_font, CGFloat font_size)
|
| * operating system versions. Except for the emoji font, where _not_
|
| * reconfiguring the cascade list causes CoreText crashes. For details, see
|
| * crbug.com/549610 */
|
| - if (&CTGetCoreTextVersion != NULL && CTGetCoreTextVersion() < kCTVersionNumber10_10) {
|
| + // 0x00070000 stands for "kCTVersionNumber10_10", see CoreText.h
|
| + if (&CTGetCoreTextVersion != NULL && CTGetCoreTextVersion() < 0x00070000) {
|
| CFStringRef fontName = CTFontCopyPostScriptName (ct_font);
|
| bool isEmojiFont = CFStringCompare (fontName, CFSTR("AppleColorEmoji"), 0) == kCFCompareEqualTo;
|
| CFRelease (fontName);
|
|
|