Try to unbreak building on older macOS again (#314)
authorKhaled Hosny <khaledhosny@eglug.org>
Thu, 8 Sep 2016 01:44:37 +0000 (04:44 +0300)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 8 Sep 2016 01:44:37 +0000 (18:44 -0700)
src/hb-coretext.cc

index ee7f91c..e68ee91 100644 (file)
@@ -152,7 +152,7 @@ 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) {
+  if (&CTGetCoreTextVersion != NULL && CTGetCoreTextVersion() <= kCTVersionNumber10_9) {
     CFStringRef fontName = CTFontCopyPostScriptName (ct_font);
     bool isEmojiFont = CFStringCompare (fontName, CFSTR("AppleColorEmoji"), 0) == kCFCompareEqualTo;
     CFRelease (fontName);