Skip to content

Instantly share code, notes, and snippets.

@aatxe
Last active January 20, 2019 05:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aatxe/260261daf70865fbf1749095de9172c5 to your computer and use it in GitHub Desktop.
Save aatxe/260261daf70865fbf1749095de9172c5 to your computer and use it in GitHub Desktop.
Patch for emacs macfont.m enabling multicolor font support.
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