Homebrew-emacs-plus: Emoji don't render

Created on 16 Oct 2017  路  3Comments  路  Source: d12frosted/homebrew-emacs-plus

I was under the impression that the multicolor font patch should enable emoji rendering, but my emoji mostly just render as blank.

$ brew info emacs-plus
d12frosted/emacs-plus/emacs-plus: stable 25.3, HEAD
GNU Emacs text editor
https://www.gnu.org/software/emacs/
/usr/local/Cellar/emacs-plus/HEAD-dcb8658 (3,972 files, 122.6MB) *
  Built from source on 2017-10-14 at 10:51:36 with: --with-natural-title-bar
From: https://github.com/d12frosted/homebrew-emacs-plus/blob/master/Formula/emacs-plus.rb

During the build process there is a message about the multicolor patch being interrupted but claims to have successfully applied it by using a fuzzy match, I'm not sure if this is relevant at all.

I'm using the Operator Mono typeface but I tried Source Code Pro and it was the same. I've also tried emacs -Q. I've also noticed that the first time loading a file with an emoji or pasting an emoji into emacs, the editor hangs for several seconds before becoming responsive again, albeit without any emoji rendering just a blank space.

Any suggestions would be greatly appreciated.

Here are the results of M-x describe-char on a fire emoji.
image

Most helpful comment

@jonathanj it may work if you explicitly tell emacs to use the "Apple Color Emoji" font for emoji symbols, such as with this line in your init.el:

  (set-fontset-font t 'symbol 
                    (font-spec :family "Apple Color Emoji") 
                    nil 'prepend)

All 3 comments

@jonathanj it may work if you explicitly tell emacs to use the "Apple Color Emoji" font for emoji symbols, such as with this line in your init.el:

  (set-fontset-font t 'symbol 
                    (font-spec :family "Apple Color Emoji") 
                    nil 'prepend)

Worked perfectly, thank you @threeve.

For those who find the emoji sequence tricky, the emacs-mac implementation is here. Although this only partially works when I remove the number after font-shape-gstring. If anyone can help me make this work on emacs-plus, I would be much appreciate. @d12frosted Or would you consider adding this to emacs-plus?

Was this page helpful?
0 / 5 - 0 ratings