all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emojis not colored
@ 2021-11-14 15:06 Colin Baxter 😺
  2021-11-14 15:25 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Colin Baxter 😺 @ 2021-11-14 15:06 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

Emojis are a mystery to be and I'm sure I am missing something in the
case of emacs-29 and its ability to use emojis, but I have a clue as to
what!

If I open emacs-29 by doing "emacs -Q <RET>" and use "M-x emoji-list
<RET>" then I see emojis but only as black-and-white. I do not see
colored emojis at all. I have used

(set-fontset-font t 'emoji
                    '("Noto Color Emoji" . "iso10646-1") nil 'prepend)

and variations but to no avail.

I suspect that although I have ~/.fonts/NotoColorEmoji.ttf I am missing
the actual colored "items". I do not know what these "items" are - emacs
emojify uses png files - perhaps I need these too for the new emacs
emoji ability. My question is therefore how I generate - or get -
colored emojis from NotoColorEmoji.ttf?

Best wishes,

Colin Baxter.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 15:06 emojis not colored Colin Baxter 😺
@ 2021-11-14 15:25 ` Eli Zaretskii
  2021-11-14 16:51   ` Colin Baxter 😺
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2021-11-14 15:25 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Colin Baxter 😺 <m43cap@yandex.com>
> Date: Sun, 14 Nov 2021 15:06:42 +0000
> 
> If I open emacs-29 by doing "emacs -Q <RET>" and use "M-x emoji-list
> <RET>" then I see emojis but only as black-and-white. I do not see
> colored emojis at all. I have used
> 
> (set-fontset-font t 'emoji
>                     '("Noto Color Emoji" . "iso10646-1") nil 'prepend)
> 
> and variations but to no avail.

Does Emacs indeed use Noto Color Emoji for the Emoji codepoints?  Use
"C-u C-x =" to tell.

> I suspect that although I have ~/.fonts/NotoColorEmoji.ttf I am missing
> the actual colored "items". I do not know what these "items" are - emacs
> emojify uses png files - perhaps I need these too for the new emacs
> emoji ability. My question is therefore how I generate - or get -
> colored emojis from NotoColorEmoji.ttf?

You shouldn't need to do anything.  You should only make sure your
Emacs is built with Cairo and HarfBuzz, and then it should "just
work".



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 15:25 ` Eli Zaretskii
@ 2021-11-14 16:51   ` Colin Baxter 😺
  2021-11-14 18:20     ` Colin Baxter 😺
  0 siblings, 1 reply; 13+ messages in thread
From: Colin Baxter 😺 @ 2021-11-14 16:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

>>>>> Eli Zaretskii <eliz@gnu.org> writes:

    >> From: Colin Baxter 😺 <m43cap@yandex.com> Date: Sun, 14 Nov 2021
    >> 15:06:42 +0000
    >> 
    >> If I open emacs-29 by doing "emacs -Q <RET>" and use "M-x
    >> emoji-list <RET>" then I see emojis but only as
    >> black-and-white. I do not see colored emojis at all. I have used
    >> 
    >> (set-fontset-font t 'emoji '("Noto Color Emoji" . "iso10646-1")
    >> nil 'prepend)
    >> 
    >> and variations but to no avail.

    > Does Emacs indeed use Noto Color Emoji for the Emoji codepoints?
    > Use "C-u C-x =" to tell.

Ah, it appears that the ~/.fonts/NotoColorEmoji.ttf is not being found.
The emojis are all Symbola. If I delete all the fonts (including
Symbola) from my ~/.fonts, with the exception of NotoColorEmoji.ttf,
then C-u C-x = shows the emoji to be now Unifont. It looks like a problem
with my font configurations or with my copy of NotoColorEmoji.

Thanks.

Best wishes,

Colin Baxter.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 16:51   ` Colin Baxter 😺
@ 2021-11-14 18:20     ` Colin Baxter 😺
  2021-11-14 18:53       ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Colin Baxter 😺 @ 2021-11-14 18:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

>>>>> Colin Baxter 😺 <m43cap@yandex.com> writes:

>>>>> Eli Zaretskii <eliz@gnu.org> writes:
    >>> From: Colin Baxter 😺 <m43cap@yandex.com> Date: Sun, 14 Nov 2021
    >>> 15:06:42 +0000
    >>> 
    >>> If I open emacs-29 by doing "emacs -Q <RET>" and use "M-x
    >>> emoji-list <RET>" then I see emojis but only as
    >>> black-and-white. I do not see colored emojis at all. I have used
    >>> 
    >>> (set-fontset-font t 'emoji '("Noto Color Emoji" . "iso10646-1")
    >>> nil 'prepend)
    >>> 
    >>> and variations but to no avail.

    >> Does Emacs indeed use Noto Color Emoji for the Emoji codepoints?
    >> Use "C-u C-x =" to tell.

    > Ah, it appears that the ~/.fonts/NotoColorEmoji.ttf is not being
    > found.  The emojis are all Symbola. If I delete all the fonts
    > (including Symbola) from my ~/.fonts, with the exception of
    > NotoColorEmoji.ttf, then C-u C-x = shows the emoji to be now
    > Unifont. It looks like a problem with my font configurations or
    > with my copy of NotoColorEmoji.

I can get emojis with Segoe ui emoji using

(set-fontset-font t 'emoji
                    '("Segoe ui emoji" . "iso10646-1") nil 'prepend)

and C-u C-x = confirms that its -microsoft-Segoe UI Emoji-regular. The
emojis are not colored. I think my copy of NotoColorEmoji.ttf may be
corrupt.

Best wishes,



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 18:20     ` Colin Baxter 😺
@ 2021-11-14 18:53       ` Eli Zaretskii
  2021-11-14 19:31         ` Colin Baxter 😺
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2021-11-14 18:53 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Colin Baxter 😺 <m43cap@yandex.com>
> Cc: help-gnu-emacs@gnu.org
> Cc: 
> Date: Sun, 14 Nov 2021 18:20:24 +0000
> 
> I can get emojis with Segoe ui emoji using
> 
> (set-fontset-font t 'emoji
>                     '("Segoe ui emoji" . "iso10646-1") nil 'prepend)
> 
> and C-u C-x = confirms that its -microsoft-Segoe UI Emoji-regular. The
> emojis are not colored.

On what OS is that?



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 18:53       ` Eli Zaretskii
@ 2021-11-14 19:31         ` Colin Baxter 😺
  2021-11-14 19:35           ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Colin Baxter 😺 @ 2021-11-14 19:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

>>>>> Eli Zaretskii <eliz@gnu.org> writes:

    >> From: Colin Baxter 😺 <m43cap@yandex.com> Cc:
    >> help-gnu-emacs@gnu.org Cc: Date: Sun, 14 Nov 2021 18:20:24 +0000
    >> 
    >> I can get emojis with Segoe ui emoji using
    >> 
    >> (set-fontset-font t 'emoji '("Segoe ui emoji" . "iso10646-1") nil
    >> 'prepend)
    >> 
    >> and C-u C-x = confirms that its -microsoft-Segoe UI
    >> Emoji-regular. The emojis are not colored.

    > On what OS is that?

Linux 4.9.0-16-686-pae #1 SMP Debian 4.9.272-2 (2021-07-19) i686 GNU/Linux



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 19:31         ` Colin Baxter 😺
@ 2021-11-14 19:35           ` Eli Zaretskii
  2021-11-14 19:53             ` Colin Baxter 😺
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2021-11-14 19:35 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Colin Baxter 😺 <m43cap@yandex.com>
> Cc: help-gnu-emacs@gnu.org
> Cc: 
> Date: Sun, 14 Nov 2021 19:31:04 +0000
> 
> >>>>> Eli Zaretskii <eliz@gnu.org> writes:
> 
>     >> From: Colin Baxter 😺 <m43cap@yandex.com> Cc:
>     >> help-gnu-emacs@gnu.org Cc: Date: Sun, 14 Nov 2021 18:20:24 +0000
>     >> 
>     >> I can get emojis with Segoe ui emoji using
>     >> 
>     >> (set-fontset-font t 'emoji '("Segoe ui emoji" . "iso10646-1") nil
>     >> 'prepend)
>     >> 
>     >> and C-u C-x = confirms that its -microsoft-Segoe UI
>     >> Emoji-regular. The emojis are not colored.
> 
>     > On what OS is that?
> 
> Linux 4.9.0-16-686-pae #1 SMP Debian 4.9.272-2 (2021-07-19) i686 GNU/Linux

Is your build with Cairo and HarfBuzz?



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 19:35           ` Eli Zaretskii
@ 2021-11-14 19:53             ` Colin Baxter 😺
  2021-11-14 20:32               ` Eli Zaretskii
  2021-11-15  8:56               ` Robert Pluim
  0 siblings, 2 replies; 13+ messages in thread
From: Colin Baxter 😺 @ 2021-11-14 19:53 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

>>>>> Eli Zaretskii <eliz@gnu.org> writes:

    >> From: Colin Baxter 😺 <m43cap@yandex.com> Cc:
    >> help-gnu-emacs@gnu.org Cc: Date: Sun, 14 Nov 2021 19:31:04 +0000
    >> 
    >> >>>>> Eli Zaretskii <eliz@gnu.org> writes:
    >> 
    >> >> From: Colin Baxter 😺 <m43cap@yandex.com> Cc: >>
    >> help-gnu-emacs@gnu.org Cc: Date: Sun, 14 Nov 2021 18:20:24 +0000
    >> >> 
    >> >> I can get emojis with Segoe ui emoji using
    >> >> 
    >> >> (set-fontset-font t 'emoji '("Segoe ui emoji" . "iso10646-1")
    >> nil >> 'prepend)
    >> >> 
    >> >> and C-u C-x = confirms that its -microsoft-Segoe UI >>
    >> Emoji-regular. The emojis are not colored.
    >> 
    >> > On what OS is that?
    >> 
    >> Linux 4.9.0-16-686-pae #1 SMP Debian 4.9.272-2 (2021-07-19) i686
    >> GNU/Linux

    > Is your build with Cairo and HarfBuzz?

Yes, with both

--8<---------------cut here---------------start------------->8---

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XDBE XIM XPM GTK3 ZLIB

--8<---------------cut here---------------start------------->8---


If I run fontlint on my NotoColorEmoji.ttf then I get this error.

--8<---------------cut here---------------end--------------->8---

Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 20170812-ML-D.
 Based on source from git with hash: 
Attempt to unget two characters
CHECKING     NotoColorEmoji.ttf
This font contains neither "CFF " nor "glyf"/"loca" tables
The following table(s) in the font have been ignored by FontForge
  Ignoring 'CBDT'
  Ignoring 'CBLC'
No (useable) bitmap strikes in this TTF font: /home/redknight/.fonts/noto/NotoColorEmoji.ttf
Couldn't find a font file named /home/redknight/.fonts/noto/NotoColorEmoji.ttf
NotoColorEmoji.ttf is not in a known format (or uses features of that format fontforge does not support, or is so badly corrupted as to be unreadable)
Open: Failed to open: NotoColorEmoji.ttf

--8<---------------cut here---------------end--------------->8---


Possibly my Debian version is too old.

Best wishes,



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 19:53             ` Colin Baxter 😺
@ 2021-11-14 20:32               ` Eli Zaretskii
  2021-11-15  8:56               ` Robert Pluim
  1 sibling, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2021-11-14 20:32 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Colin Baxter 😺 <m43cap@yandex.com>
> Cc: help-gnu-emacs@gnu.org
> Cc: 
> Date: Sun, 14 Nov 2021 19:53:12 +0000
> 
>     >> Linux 4.9.0-16-686-pae #1 SMP Debian 4.9.272-2 (2021-07-19) i686
>     >> GNU/Linux
> 
>     > Is your build with Cairo and HarfBuzz?
> 
> Yes, with both

Then I guess it's just a matter of installing a suitable font.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-14 19:53             ` Colin Baxter 😺
  2021-11-14 20:32               ` Eli Zaretskii
@ 2021-11-15  8:56               ` Robert Pluim
  2021-11-15  9:31                 ` Colin Baxter 😺
  1 sibling, 1 reply; 13+ messages in thread
From: Robert Pluim @ 2021-11-15  8:56 UTC (permalink / raw)
  To: Colin Baxter 😺; +Cc: help-gnu-emacs

>>>>> On Sun, 14 Nov 2021 19:53:12 +0000, Colin Baxter 😺 <m43cap@yandex.com> said:
    Colin> Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
    Colin>  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    Colin>  with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
    Colin>  Based on sources from 20170812-ML-D.
    Colin>  Based on source from git with hash: 
    Colin> Attempt to unget two characters
    Colin> CHECKING     NotoColorEmoji.ttf
    Colin> This font contains neither "CFF " nor "glyf"/"loca" tables
    Colin> The following table(s) in the font have been ignored by FontForge
    Colin>   Ignoring 'CBDT'
    Colin>   Ignoring 'CBLC'
    Colin> No (useable) bitmap strikes in this TTF font: /home/redknight/.fonts/noto/NotoColorEmoji.ttf
    Colin> Couldn't find a font file named /home/redknight/.fonts/noto/NotoColorEmoji.ttf
    Colin> NotoColorEmoji.ttf is not in a known format (or uses features of that format fontforge does not support, or is so badly corrupted as to be unreadable)
    Colin> Open: Failed to open: NotoColorEmoji.ttf


    Colin> Possibly my Debian version is too old.

I get the same on my working NotoColorEmoji.ttf, so I suspect that
fontlint just doesnʼt understand colour fonts (the "CB" in "CBDT" and
"CBLC" stands for "colour bitmap")

Robert
-- 



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-15  8:56               ` Robert Pluim
@ 2021-11-15  9:31                 ` Colin Baxter 😺
  2021-11-15 13:19                   ` Robert Pluim
  0 siblings, 1 reply; 13+ messages in thread
From: Colin Baxter 😺 @ 2021-11-15  9:31 UTC (permalink / raw)
  To: Robert Pluim; +Cc: help-gnu-emacs

>>>>> Robert Pluim <rpluim@gmail.com> writes:

>>>>> On Sun, 14 Nov 2021 19:53:12 +0000, Colin Baxter 😺 <m43cap@yandex.com> said:
    Colin> Copyright (c) 2000-2014 by George Williams. See AUTHORS for
    Colin> Contributors.  License GPLv3+: GNU GPL version 3 or later
    Colin> <http://gnu.org/licenses/gpl.html> with many parts BSD
    Colin> <http://fontforge.org/license.html>. Please read LICENSE.
    Colin> Based on sources from 20170812-ML-D.  Based on source from
    Colin> git with hash: Attempt to unget two characters CHECKING
    Colin> NotoColorEmoji.ttf This font contains neither "CFF " nor
    Colin> "glyf"/"loca" tables The following table(s) in the font have
    Colin> been ignored by FontForge Ignoring 'CBDT' Ignoring 'CBLC' No
    Colin> (useable) bitmap strikes in this TTF font:
    Colin> /home/redknight/.fonts/noto/NotoColorEmoji.ttf Couldn't find
    Colin> a font file named
    Colin> /home/redknight/.fonts/noto/NotoColorEmoji.ttf
    Colin> NotoColorEmoji.ttf is not in a known format (or uses features
    Colin> of that format fontforge does not support, or is so badly
    Colin> corrupted as to be unreadable) Open: Failed to open:
    Colin> NotoColorEmoji.ttf


    Colin> Possibly my Debian version is too old.

    > I get the same on my working NotoColorEmoji.ttf, so I suspect that
    > fontlint just doesnʼt understand colour fonts (the "CB" in "CBDT"
    > and "CBLC" stands for "colour bitmap")

I had sort of given up on NotoColorEmji.tff after seeing the fontlint
output. Now, however, if fontlint gives the same output on a working
font then I'll have to re-think.

Thanks for the information.

Best wishes,

Colin Baxter.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-15  9:31                 ` Colin Baxter 😺
@ 2021-11-15 13:19                   ` Robert Pluim
  2021-11-15 18:37                     ` Colin Baxter 😺
  0 siblings, 1 reply; 13+ messages in thread
From: Robert Pluim @ 2021-11-15 13:19 UTC (permalink / raw)
  To: Colin Baxter 😺; +Cc: help-gnu-emacs

>>>>> On Mon, 15 Nov 2021 09:31:35 +0000, Colin Baxter 😺 <m43cap@yandex.com> said:

    Colin> I had sort of given up on NotoColorEmji.tff after seeing the fontlint
    Colin> output. Now, however, if fontlint gives the same output on a working
    Colin> font then I'll have to re-think.

    Colin> Thanks for the information.

If you want to debug this further, etc/PROBLEMS has the following:

    *** This may be due to your local fontconfig customization.
    Try removing or moving aside "$XDG_CONFIG_HOME/fontconfig/conf.d" and
    "$XDG_CONFIG_HOME/fontconfig/fonts.conf"
    ($XDG_CONFIG_HOME is treated as "~/.config" if not set)

    Running Emacs as

        FC_DEBUG=1024 emacs

    will cause fontconfig to output information about which configuration
    files it is reading.  Running Emacs as

        FC_DEBUG=1 emacs

    will result in information about the results of fontconfig's font
    matching (including the filename(s) of the resulting fonts).

Robert
-- 



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: emojis not colored
  2021-11-15 13:19                   ` Robert Pluim
@ 2021-11-15 18:37                     ` Colin Baxter 😺
  0 siblings, 0 replies; 13+ messages in thread
From: Colin Baxter 😺 @ 2021-11-15 18:37 UTC (permalink / raw)
  To: Robert Pluim; +Cc: help-gnu-emacs

>>>>> Robert Pluim <rpluim@gmail.com> writes:

>>>>> On Mon, 15 Nov 2021 09:31:35 +0000, Colin Baxter 😺 <m43cap@yandex.com> said:
    Colin> I had sort of given up on NotoColorEmji.tff after seeing the
    Colin> fontlint output. Now, however, if fontlint gives the same
    Colin> output on a working font then I'll have to re-think.

    Colin> Thanks for the information.

    > If you want to debug this further, etc/PROBLEMS has the following:

    >     *** This may be due to your local fontconfig customization.
    > Try removing or moving aside "$XDG_CONFIG_HOME/fontconfig/conf.d"
    > and "$XDG_CONFIG_HOME/fontconfig/fonts.conf" ($XDG_CONFIG_HOME is
    > treated as "~/.config" if not set)

    >     Running Emacs as

    >         FC_DEBUG=1024 emacs

    >     will cause fontconfig to output information about which
    > configuration files it is reading.  Running Emacs as

    >         FC_DEBUG=1 emacs

    >     will result in information about the results of fontconfig's
    > font matching (including the filename(s) of the resulting fonts).

    > Robert --

Thanks. This confirms what I thought. My NotoColorEmji.tff which is
located in ~/.fonts is not being used. I have tried various fontconfig
recipes in my ~/.config/fontconfig/conf.d. None of them help - I'm not
surprised since they were largely guesses. I'm running Debian 9.13 and I
read somewhere on the Internet that this is too old for google emoji
color fonts. I don't know if that's correct or not. If it is then I'll
probably stick with emacs-emojify (which I quite like) until I upgrade
my machine.

Thank you very much for your kind help.

Best wishes,

Colin Baxter.



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-11-15 18:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-14 15:06 emojis not colored Colin Baxter 😺
2021-11-14 15:25 ` Eli Zaretskii
2021-11-14 16:51   ` Colin Baxter 😺
2021-11-14 18:20     ` Colin Baxter 😺
2021-11-14 18:53       ` Eli Zaretskii
2021-11-14 19:31         ` Colin Baxter 😺
2021-11-14 19:35           ` Eli Zaretskii
2021-11-14 19:53             ` Colin Baxter 😺
2021-11-14 20:32               ` Eli Zaretskii
2021-11-15  8:56               ` Robert Pluim
2021-11-15  9:31                 ` Colin Baxter 😺
2021-11-15 13:19                   ` Robert Pluim
2021-11-15 18:37                     ` Colin Baxter 😺

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.