Last active
January 20, 2019 05:21
-
-
Save aatxe/260261daf70865fbf1749095de9172c5 to your computer and use it in GitHub Desktop.
Patch for emacs macfont.m enabling multicolor font support.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/macfont.m b/src/macfont.m | |
index 0445628..c9082a5 100644 | |
--- a/src/macfont.m | |
+++ b/src/macfont.m | |
@@ -2373,9 +2373,9 @@ So we use CTFontDescriptorCreateMatchingFontDescriptor (no | |
!= (spacing >= FONT_SPACING_MONO))) | |
continue; | |
- /* Don't use a color bitmap font until it is supported on | |
- free platforms. */ | |
- if (sym_traits & kCTFontTraitColorGlyphs) | |
+ /* Don't use a color bitmap font unless its family is | |
+ explicitly specified. */ | |
+ if ((sym_traits & kCTFontTraitColorGlyphs) && NILP (family)) | |
continue; | |
if (j > 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment