[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Sun Oct 7 14:31:55 UTC 2018
src/hb-coretext.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b2e398c077cf9437298bfe2ee53b7407a5865c14
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Sun Oct 7 16:31:33 2018 +0200
[coretext] Fix OS X check
Fixes https://github.com/harfbuzz/harfbuzz/issues/1230
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index cd3ebae4..9bebb2be 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
@@ -210,7 +210,7 @@ create_ct_font (CGFontRef cg_font, CGFloat font_size)
}
CFURLRef original_url = nullptr;
-#if TARGET_OS_MAC && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
+#if TARGET_OS_OSX && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
ATSFontRef atsFont;
FSRef fsref;
OSStatus status;
@@ -240,7 +240,7 @@ create_ct_font (CGFontRef cg_font, CGFloat font_size)
* process in Blink. This can be detected by the new file URL location
* that the newly found font points to. */
CFURLRef new_url = nullptr;
-#if TARGET_OS_MAC && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
+#if TARGET_OS_OSX && MAC_OS_X_VERSION_MIN_REQUIRED < 1060
atsFont = CTFontGetPlatformFont (new_ct_font, NULL);
status = ATSFontGetFileReference (atsFont, &fsref);
if (status == noErr)
More information about the HarfBuzz
mailing list