[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Sat Sep 10 06:13:44 UTC 2016
src/hb-coretext.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit fc4e671f311241e21c1cc3ed941b1fc651875a2e
Author: Ebrahim Byagowi <ebrahim at gnu.org>
Date: Fri Sep 9 23:28:28 2016 +0430
[coretext] Use intended coretext version check logic (#315)
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index e68ee91..507581b 100644
--- a/src/hb-coretext.cc
+++ b/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_9) {
+ // 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);
More information about the HarfBuzz
mailing list