[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Sep 8 01:44:52 UTC 2016


 src/hb-coretext.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 48677345281a93d8829dd37d0480a6062945416a
Author: Khaled Hosny <khaledhosny at eglug.org>
Date:   Thu Sep 8 04:44:37 2016 +0300

    Try to unbreak building on older macOS again (#314)

diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index ee7f91c..e68ee91 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
@@ -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);


More information about the HarfBuzz mailing list