Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Last active October 2, 2015 01:50
Show Gist options
  • Save ianblenke/e52684ee1fd865667245 to your computer and use it in GitHub Desktop.
Save ianblenke/e52684ee1fd865667245 to your computer and use it in GitHub Desktop.
harfbuzz kCTLanguageAttributeName patch
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index 13ba5d9..015d801 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
@@ -719,9 +719,9 @@ retry:
/* What's the iOS equivalent of this check?
* The symbols was introduced in iOS 7.0.
* At any rate, our fallback is safe and works fine. */
-#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
+/*#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090*/
# define kCTLanguageAttributeName CFSTR ("NSLanguage")
-#endif
+/*#endif*/
CFStringRef lang = CFStringCreateWithCStringNoCopy (kCFAllocatorDefault,
hb_language_to_string (buffer->props.language),
kCFStringEncodingUTF8,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment