From: Eli Zaretskii Date: Fri, 23 Sep 2022 06:36:24 +0000 (+0300) Subject: Support Noto Emoji font as fallback X-Git-Tag: emacs-29.0.90~1856^2~306 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=94380420e2cba7e2821b22fd8a46cd5b04c985ef;p=emacs.git Support Noto Emoji font as fallback The black-and-white emoji font is back under active development, see https://github.com/googlefonts/noto-emoji. So this adds that font as fallback for systems that don't have the capability of using color fonts. * lisp/international/fontset.el (setup-default-fontset): Support black-and-white Noto Emoji font as fallback for Emoji display. --- diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index 4e44de27ce9..99c78487046 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el @@ -982,7 +982,11 @@ (set-fontset-font "fontset-default" symbol-subgroup "-*-fixed-medium-*-*-*-*-*-*-*-*-*-iso10646-1" nil 'prepend)) - ;; This sets up the Emoji codepoints to use prettier fonts. + ;; This sets up the Emoji codepoints to use prettier fonts: + ;; this is fallback, if they don't have color Emoji capabilities... + (set-fontset-font "fontset-default" 'emoji + '("Noto Emoji" . "iso10646-1") nil 'prepend) + ;; ...and this is if they do (set-fontset-font "fontset-default" 'emoji '("Noto Color Emoji" . "iso10646-1") nil 'prepend)