emoji in source code

60 views
Skip to first unread message

Shriram Krishnamurthi

unread,
Jul 19, 2020, 11:55:45 AM7/19/20
to Racket Users
I wrote the following program:

  (define /: '😐)

which at least on my screen looks like



in Aquamacs and in my browser (modulo dark/light mode).

However, no matter which mode I use in OS X AND which color mode I use in DrRacket, the emoji just isn't visible:



Not the most pressing problem in the world, but figured this is probably not desirable.

Shriram

Robby Findler

unread,
Jul 19, 2020, 5:37:10 PM7/19/20
to Shriram Krishnamurthi, Racket Users
I'm not sure what's going on, but this smily works: ☺

Robby


--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/af814198-b86b-4905-a741-4b59d605ca8co%40googlegroups.com.

Matthew Flatt

unread,
Jul 20, 2020, 11:02:56 AM7/20/20
to Shriram Krishnamurthi, Racket Users
The emoji problem on Mac OS has to do with the system-level drawing
function, CGContextShowGlyphsAtPoint, that used at the Cairo layer, at
least in the version of Cairo that we're using. That function doesn't
support emoji glyphs.

A newer version of Cairo handles emoji glyphs:

https://gitlab.freedesktop.org/cairo/cairo/commit/416a0005ab6a2b9a709d05281025e3581d612989?expanded=1

So, I've put "upgrade Cairo" on my todo list.


At Sun, 19 Jul 2020 16:36:53 -0500, Robby Findler wrote:
> I'm not sure what's going on, but this smily works: ☺
>
> Robby
>
>
> On Sun, Jul 19, 2020 at 10:55 AM Shriram Krishnamurthi <shr...@gmail.com>
> wrote:
>
> > I wrote the following program:
> >
> > (define /: '😐)
> >
> > which at least on my screen looks like
> >
> >
> >
> > in Aquamacs and in my browser (modulo dark/light mode).
> >
> > However, no matter which mode I use in OS X AND which color mode I use in
> > DrRacket, the emoji just isn't visible:
> >
> >
> >
> > Not the most pressing problem in the world, but figured this is probably
> > not desirable.
> >
> > Shriram
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to racket-users...@googlegroups.com.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/racket-users/af814198-b86b-4905-a741-4b59d605
> ca8co%40googlegroups.com
> >
> <https://groups.google.com/d/msgid/racket-users/af814198-b86b-4905-a741-4b59d60
> 5ca8co%40googlegroups.com?utm_medium=email&utm_source=footer>
> > .
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CAL3TdOMS5KWw0cj_jzzWpeO1icNZ1Ez
> %2BKkjZt%2B3PLiY96BwoaA%40mail.gmail.com.
>
>
> ------------------------------------------------------------------------------
> [image/png "AutoGeneratedInlineImage1"] [~/Desktop & open] [~/Temp & open]
> .
>
>
> ------------------------------------------------------------------------------
> [image/png "AutoGeneratedInlineImage2"] [~/Desktop & open] [~/Temp & open]
> .

Matthew Flatt

unread,
Aug 18, 2020, 7:42:34 PM8/18/20
to Racket Users
It turns out that the commit below is not part of the main Cairo
branch. (It builds on other commits that haven't been merged, and there
appear to be issues.) So, it's not as simple as upgrading Cairo.
> https://groups.google.com/d/msgid/racket-users/20200720090250.1da%40sirmail.smt
> p.cs.utah.edu.
Reply all
Reply to author
Forward
0 new messages