unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emoji on Mac OS X
@ 2016-06-27  8:33 Toon Claes
  2016-06-27  9:00 ` David Reitter
  0 siblings, 1 reply; 8+ messages in thread
From: Toon Claes @ 2016-06-27  8:33 UTC (permalink / raw)
  To: Emacs developers

Hi,

I am not sure if this is best place to ask this, but I didn't know where
else to post it.

I've been using emacs 25.0.91 for a while.
To have emoji in emacs on OS X, I am using this line in my init file:

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

This was working perfectly.

But recently I upgraded to emacs v25.0.95, and since then I am no longer
seeing emoji in emacs.

I've looking in the emacs source code to figure out what the line init
my init file should be doing, but without success.

So, should I change the line in my init file? Or is something wrong with
emacs?

Regards,
Toon Claes
PGP key fingerprint = AA9A A457 F944 B972 83D4  A177 3114 3A82 D32B 3897



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

* Re: Emoji on Mac OS X
  2016-06-27  8:33 Emoji on Mac OS X Toon Claes
@ 2016-06-27  9:00 ` David Reitter
  2016-06-27  9:27   ` YAMAMOTO Mitsuharu
  2016-06-28  1:12   ` Alex Dunn
  0 siblings, 2 replies; 8+ messages in thread
From: David Reitter @ 2016-06-27  9:00 UTC (permalink / raw)
  To: Toon Claes; +Cc: Emacs-Devel devel

Hi Toon,

On Jun 27, 2016, at 5:33 PM, Toon Claes <toon@iotcl.com> wrote:

> I've been using emacs 25.0.91 for a while.
> To have emoji in emacs on OS X, I am using this line in my init file:
> 
> (set-fontset-font t 'symbol (font-spec :family "Apple Color Emoji") nil ‘prepend)

Support for multi-color font is provided by the system, but is being actively prevented by code in Emacs for political reasons.

It is still enabled in the Aquamacs distribution.   Yamamoto’s Mac port should have it, too. 
Alternatively, you can build Emacs yourself without the anti-multi-color font change if you undo the change 😺:

git revert 9344612d3cd164317170b6189ec43175757e4231





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

* Re: Emoji on Mac OS X
  2016-06-27  9:00 ` David Reitter
@ 2016-06-27  9:27   ` YAMAMOTO Mitsuharu
  2016-06-28  1:12   ` Alex Dunn
  1 sibling, 0 replies; 8+ messages in thread
From: YAMAMOTO Mitsuharu @ 2016-06-27  9:27 UTC (permalink / raw)
  To: Toon Claes; +Cc: Emacs-Devel devel


> 2016/06/27 18:00、David Reitter <david.reitter@gmail.com> のメール:
> 
> Hi Toon,
> 
> On Jun 27, 2016, at 5:33 PM, Toon Claes <toon@iotcl.com> wrote:
> 
>> I've been using emacs 25.0.91 for a while.
>> To have emoji in emacs on OS X, I am using this line in my init file:
>> 
>> (set-fontset-font t 'symbol (font-spec :family "Apple Color Emoji") nil ‘prepend)
> 
> Support for multi-color font is provided by the system, but is being actively prevented by code in Emacs for political reasons.
> 
> It is still enabled in the Aquamacs distribution.   Yamamoto’s Mac port should have it, too. 
> Alternatively, you can build Emacs yourself without the anti-multi-color font change if you undo the change 😺:
> 
> git revert 9344612d3cd164317170b6189ec43175757e4231

BTW, multi-color font display is only a part of emoji support.
The Mac port supports emoji variation selectors for selecting
text/emoji presentation, emoji modifiers for skin tones, emoji
flag sequences, and emoji zwj sequences.  See
http://unicode.org/reports/tr51/ for details.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp




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

* Re: Emoji on Mac OS X
  2016-06-27  9:00 ` David Reitter
  2016-06-27  9:27   ` YAMAMOTO Mitsuharu
@ 2016-06-28  1:12   ` Alex Dunn
  2016-06-29 12:11     ` Jiajie Chen
  1 sibling, 1 reply; 8+ messages in thread
From: Alex Dunn @ 2016-06-28  1:12 UTC (permalink / raw)
  To: David Reitter, Toon Claes; +Cc: Emacs-Devel devel

Odd, emoji display fine for me on OS X with:
GNU Emacs 25.0.95.1 (x86_64-apple-darwin15.5.0, NS appkit-1404.47 Version 10.11.5 (Build 15F34))

Does it make a difference if it’s build --with-ns?

David Reitter <david.reitter@gmail.com> writes:

> Hi Toon,
>
> On Jun 27, 2016, at 5:33 PM, Toon Claes <toon@iotcl.com> wrote:
>
>> I've been using emacs 25.0.91 for a while.
>> To have emoji in emacs on OS X, I am using this line in my init file:
>>
>> (set-fontset-font t 'symbol (font-spec :family "Apple Color Emoji") nil ‘prepend)
>
> Support for multi-color font is provided by the system, but is being actively prevented by code in Emacs for political reasons.
>
> It is still enabled in the Aquamacs distribution.   Yamamoto’s Mac port should have it, too.
> Alternatively, you can build Emacs yourself without the anti-multi-color font change if you undo the change 😺:
>
> git revert 9344612d3cd164317170b6189ec43175757e4231



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

* Re: Emoji on Mac OS X
  2016-06-28  1:12   ` Alex Dunn
@ 2016-06-29 12:11     ` Jiajie Chen
  2016-06-29 12:45       ` Clément Pit--Claudel
  0 siblings, 1 reply; 8+ messages in thread
From: Jiajie Chen @ 2016-06-29 12:11 UTC (permalink / raw)
  To: emacs-devel


Alex Dunn <dunn.alex@gmail.com> writes:
> Odd, emoji display fine for me on OS X with:
> GNU Emacs 25.0.95.1 (x86_64-apple-darwin15.5.0, NS appkit-1404.47 Version 10.11.5 (Build 15F34))
>
> Does it make a difference if it’s build --with-ns?
>
> David Reitter <david.reitter@gmail.com> writes:
>
>> Hi Toon,
>>
>> On Jun 27, 2016, at 5:33 PM, Toon Claes <toon@iotcl.com> wrote:
>>
>>> I've been using emacs 25.0.91 for a while.
>>> To have emoji in emacs on OS X, I am using this line in my init file:
>>>
>>> (set-fontset-font t 'symbol (font-spec :family "Apple Color Emoji") nil ‘prepend)
>>
>> Support for multi-color font is provided by the system, but is being actively prevented by code in Emacs for political reasons.
>>
>> It is still enabled in the Aquamacs distribution.   Yamamoto’s Mac port should have it, too.
>> Alternatively, you can build Emacs yourself without the anti-multi-color font change if you undo the change 😺:
>>
>> git revert 9344612d3cd164317170b6189ec43175757e4231

By the way, I wonder when will multi-color font be supported on Linux?
At that time the multi-color font will be re-enabled in NS port.

commit 9344612d3cd164317170b6189ec43175757e4231
Author: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Date:   Tue Apr 12 08:26:51 2016 +0900

    Disable multicolor fonts on OS X since they are not supported on free systems

    * src/macfont.m (macfont_list): Don't use color bitmap fonts.




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

* Re: Emoji on Mac OS X
  2016-06-29 12:11     ` Jiajie Chen
@ 2016-06-29 12:45       ` Clément Pit--Claudel
  2016-06-29 14:28         ` Jiege Chen
  0 siblings, 1 reply; 8+ messages in thread
From: Clément Pit--Claudel @ 2016-06-29 12:45 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 352 bytes --]

On 2016-06-29 08:11, Jiajie Chen wrote:
> By the way, I wonder when will multi-color font be supported on Linux?
> At that time the multi-color font will be re-enabled in NS port.

See https://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00713.html for the latest discussion on this.
I think the answer is "not for a few years, at least".


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: Emoji on Mac OS X
  2016-06-29 12:45       ` Clément Pit--Claudel
@ 2016-06-29 14:28         ` Jiege Chen
  2016-06-29 14:48           ` Clément Pit--Claudel
  0 siblings, 1 reply; 8+ messages in thread
From: Jiege Chen @ 2016-06-29 14:28 UTC (permalink / raw)
  To: emacs-devel

Clément Pit--Claudel <clement.pit@gmail.com> wrote:
> On 2016-06-29 08:11, Jiajie Chen wrote:
>> By the way, I wonder when will multi-color font be supported on Linux?
>> At that time the multi-color font will be re-enabled in NS port.
> 
> See https://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00713.html
> for the latest discussion on this.
> I think the answer is "not for a few years, at least".
> 
> 
> 

So this may not be a very tough task, but it has a low priority and no one
came up with a patch yet?
It seems that freetype and fontconfig have the support while Xft doesn't.
If I have time, I may try to do it. However my summer holiday is short and
I have no such
knowledge in fonts.

-- 
Jiegec




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

* Re: Emoji on Mac OS X
  2016-06-29 14:28         ` Jiege Chen
@ 2016-06-29 14:48           ` Clément Pit--Claudel
  0 siblings, 0 replies; 8+ messages in thread
From: Clément Pit--Claudel @ 2016-06-29 14:48 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 1388 bytes --]

On 2016-06-29 10:28, Jiege Chen wrote:
> Clément Pit--Claudel <clement.pit@gmail.com> wrote:
>> On 2016-06-29 08:11, Jiajie Chen wrote:
>>> By the way, I wonder when will multi-color font be supported on Linux?
>>> At that time the multi-color font will be re-enabled in NS port.
>>
>> See https://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00713.html
>> for the latest discussion on this.
>> I think the answer is "not for a few years, at least".
> 
> So this may not be a very tough task, but it has a low priority and no one
> came up with a patch yet?
> It seems that freetype and fontconfig have the support while Xft doesn't.
> If I have time, I may try to do it. However my summer holiday is short and
> I have no such knowledge in fonts.

It doesn't seem so easy, actually.  When I wrote to the Xft mailing list about working on this, the only answer I got was this:

> On 12/18/2015 02:16 AM, Michael Titke wrote:
>> Just add a video mode font (we'll need to "typeset" videos intext
>> anyway - what was layout then?) and replace user input with random
>> noise where DSP would have told those smart ones ...

(No idea what it meant.)

In any case once Xft has support for multicolor fonts we could patch Emacs, but it would still take a while for the Xft update to propagate.

In any case, if you want to work on this, go ahead!
Clément.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2016-06-29 14:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-27  8:33 Emoji on Mac OS X Toon Claes
2016-06-27  9:00 ` David Reitter
2016-06-27  9:27   ` YAMAMOTO Mitsuharu
2016-06-28  1:12   ` Alex Dunn
2016-06-29 12:11     ` Jiajie Chen
2016-06-29 12:45       ` Clément Pit--Claudel
2016-06-29 14:28         ` Jiege Chen
2016-06-29 14:48           ` Clément Pit--Claudel

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).