mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-05 08:53:45 +00:00
Allow automatic use of color fonts for emoji on macOS
* src/macfont.m (macfont_list): Don't exclude color fonts when the fontspec has an 'emoji' script specification.
This commit is contained in:
parent
2bdd5732aa
commit
e3171e7e86
@ -2415,8 +2415,12 @@ So we use CTFontDescriptorCreateMatchingFontDescriptor (no
|
||||
continue;
|
||||
|
||||
/* Don't use a color bitmap font unless its family is
|
||||
explicitly specified. */
|
||||
if ((sym_traits & kCTFontTraitColorGlyphs) && NILP (family))
|
||||
explicitly specified or we're looking for a font for
|
||||
emoji. */
|
||||
if ((sym_traits & kCTFontTraitColorGlyphs)
|
||||
&& NILP (family)
|
||||
&& !EQ (CDR_SAFE (assq_no_quit (QCscript, AREF (spec, FONT_EXTRA_INDEX))),
|
||||
Qemoji))
|
||||
continue;
|
||||
|
||||
if (j > 0
|
||||
|
Loading…
Reference in New Issue
Block a user