ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Emoji color fonts not working on LMTX/Context MKIV
@ 2020-05-20 10:26 Jairo A. del Rio
  2020-05-20 19:31 ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Jairo A. del Rio @ 2020-05-20 10:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I've tried the following from the manuals and adapted some code to see if
it works:

1.
\definefontfeature[svg][svg=yes]
\definefontsynonym[Emoji][file:emojionecolor-svginot.ttf*default,svg]
\definesymbol[bug][\getglyphdirect{Emoji}{\char"1F41B}]
\starttext
\symbol[bug]
\stoptext

The emoji has no color when compiled with LuaTeX. Furthermore, the log
includes a lot of lines like the ones below:


fonts > svg conversion > executing runner 'otfsvg': inkscape
--export-area-drawing --shell > temp-otf-svg-shape.log


fonts > svg conversion > processing 1829 svg containers

xml > core > load error: invalid xml file - parsed text

With LMTX it gives an error about mlib-svg.

2.

\definefontfeature[overlay][default][ccmp=yes,colr=yes,dist=yes]
\definefontfeature[svg]
[default][svg=yes]
\definefontfeature[bitmap] [default][sbix=yes]
\definefontfeature [colored] [default]
[ccmp=yes,dist=yes,
colr=yes,svg=yes,sbix=yes]
\definefontsynonym[Emoji][file:notocoloremoji*default,colored]
\definesymbol[bug][\getglyphdirect{Emoji}{\char"1F41B}]
\starttext
\symbol[bug]
\stoptext

What I get is:

fonts > png conversion > processing 3374 png containers


sh: 1: gm: not found


sh: 1: gm: not found


sh: 1: gm: not found sh: 1: gm: not found

...

and the same line repeating itself
...

close source > level 1, order 3, name
'/home/lol/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

! error: (file /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf) (ttf):
loca table not found


LMTX prints a file without any emoji.


Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I doing
wrong?


I'm working with Ubuntu 20.04 LTS x86_64 and Inkscape 0.92.5 (2060ec1f9f,
2020-04-08) in case it helps. Thank you in advance.

[-- Attachment #1.2: Type: text/html, Size: 3576 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
  2020-05-20 10:26 Emoji color fonts not working on LMTX/Context MKIV Jairo A. del Rio
@ 2020-05-20 19:31 ` Pablo Rodriguez
  2020-05-20 19:39   ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2020-05-20 19:31 UTC (permalink / raw)
  To: ntg-context

On 5/20/20 12:26 PM, Jairo A. del Rio wrote:
> [...]
> Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I
> doing wrong?

Hi Jairo,

using latest ConTeXt with the following sample, I get these results:

  \definefontfamily[emoj][rm][Twemoji Mozilla][features={color}]
  \setupbodyfont[emoj]
  \starttext
  🤦🇬🇧
  \stoptext

MkIV (2020.01.30 14:13) displays colored icons.

LMTX (2020.05.18 16:50) displays only black and white icons.

I think this might be a bug in LMTX.

Could you confirm the issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
  2020-05-20 19:31 ` Pablo Rodriguez
@ 2020-05-20 19:39   ` Hans Hagen
  2020-05-20 20:18     ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2020-05-20 19:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 5/20/2020 9:31 PM, Pablo Rodriguez wrote:
> On 5/20/20 12:26 PM, Jairo A. del Rio wrote:
>> [...]
>> Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I
>> doing wrong?
> 
> Hi Jairo,
> 
> using latest ConTeXt with the following sample, I get these results:
> 
>    \definefontfamily[emoj][rm][Twemoji Mozilla][features={color}]
>    \setupbodyfont[emoj]
>    \starttext
>    🤦🇬🇧
>    \stoptext
> 
> MkIV (2020.01.30 14:13) displays colored icons.
> 
> LMTX (2020.05.18 16:50) displays only black and white icons.
> 
> I think this might be a bug in LMTX.
> 
> Could you confirm the issue?
what if you wipe the cache

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
  2020-05-20 19:39   ` Hans Hagen
@ 2020-05-20 20:18     ` Pablo Rodriguez
  2020-05-20 21:30       ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2020-05-20 20:18 UTC (permalink / raw)
  To: ntg-context

On 5/20/20 9:39 PM, Hans Hagen wrote:
>> [...]
>> LMTX (2020.05.18 16:50) displays only black and white icons.
>>
>> I think this might be a bug in LMTX.
>>
>> Could you confirm the issue?
> what if you wipe the cache

Many thanks for your reply, Hans.

icons are black and white, no color after wiping the cache.

Made no difference with a brand-new install either.

Just accidentally, I discovered this is an issue in Evince.

LMTX should handle color in LMTX with other PDF code than in MkIV.

MuPDF displays colorful. So do acroread for Linux, xpdf, SumatraPDF and
even Okular.

Sorry for the noise, since Evince seems to be the culprit.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
  2020-05-20 20:18     ` Pablo Rodriguez
@ 2020-05-20 21:30       ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2020-05-20 21:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

On 5/20/2020 10:18 PM, Pablo Rodriguez wrote:
> On 5/20/20 9:39 PM, Hans Hagen wrote:
>>> [...]
>>> LMTX (2020.05.18 16:50) displays only black and white icons.
>>>
>>> I think this might be a bug in LMTX.
>>>
>>> Could you confirm the issue?
>> what if you wipe the cache
> 
> Many thanks for your reply, Hans.
> 
> icons are black and white, no color after wiping the cache.
> 
> Made no difference with a brand-new install either.
> 
> Just accidentally, I discovered this is an issue in Evince.
> 
> LMTX should handle color in LMTX with other PDF code than in MkIV.

won't happen ... actually, at some point mkiv will use a similar method 
as lmtx

> MuPDF displays colorful. So do acroread for Linux, xpdf, SumatraPDF and
> even Okular.
> 
> Sorry for the noise, since Evince seems to be the culprit.
for me acrobat and mupdf based viewers (sumatra also uses it, actually a 
rather old version) are the reference .. it makes no sense to cripple 
context because of an issue with a viewer

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
  2020-05-20 21:25   ` Hans Hagen
  2020-05-20 21:32     ` Jairo A. del Rio
@ 2020-05-21 15:22     ` Pablo Rodriguez
  1 sibling, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2020-05-21 15:22 UTC (permalink / raw)
  To: ntg-context

On 5/20/20 11:25 PM, Hans Hagen wrote:
> On 5/20/2020 10:26 PM, Jairo A. del Rio wrote:
>> I did. It turns out that installing graphicsmagick does the trick (pun
>> intended) for Noto Color Emoji. However, the issue persists for SVG
>> fonts and the same message appears, despite of having cleaned the cache
>> (I've used mtxrun --script cache --erase). Using the code Pablo sent,
>> with EmojiOne Color instead of Twemoji Mozilla, I get the following
>> error messages:
>
> So, what version do you use?

This happens also to me witht the font from
https://github.com/eosrei/emojione-color-font/releases/latest.

Using latest in both Windows and Linux 64bit (2020.05.18 16:50).

Just in case it helps,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
  2020-05-20 21:32     ` Jairo A. del Rio
@ 2020-05-20 21:42       ` Jairo A. del Rio
  0 siblings, 0 replies; 10+ messages in thread
From: Jairo A. del Rio @ 2020-05-20 21:42 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users


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

Pablo pointed out the bug in Evince. Sorry too. I've used another PDF
viewer and SVG color displays correctly. Thanks.

El mié., 20 de may. de 2020 a la(s) 16:32, Jairo A. del Rio (
jairoadelrio6@gmail.com) escribió:

> Info from \luatexbanner
>
> For ConTeXt (LuaTeX): This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev)
> For ConTeXt (LMTX): This is LuaMetaTeX, Version 2.06.03
>
> El mié., 20 de may. de 2020 a la(s) 16:25, Hans Hagen (j.hagen@xs4all.nl)
> escribió:
>
>> On 5/20/2020 10:26 PM, Jairo A. del Rio wrote:
>> > I did. It turns out that installing graphicsmagick does the trick (pun
>> > intended) for Noto Color Emoji. However, the issue persists for SVG
>> > fonts and the same message appears, despite of having cleaned the cache
>> > (I've used mtxrun --script cache --erase). Using the code Pablo sent,
>> > with EmojiOne Color instead of Twemoji Mozilla, I get the following
>> > error messages:
>>
>> So, what version do you use?
>>
>> Hans
>>
>> -----------------------------------------------------------------
>>                                            Hans Hagen | PRAGMA ADE
>>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
>> -----------------------------------------------------------------
>>
>

[-- Attachment #1.2: Type: text/html, Size: 2172 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
  2020-05-20 21:25   ` Hans Hagen
@ 2020-05-20 21:32     ` Jairo A. del Rio
  2020-05-20 21:42       ` Jairo A. del Rio
  2020-05-21 15:22     ` Pablo Rodriguez
  1 sibling, 1 reply; 10+ messages in thread
From: Jairo A. del Rio @ 2020-05-20 21:32 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users


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

Info from \luatexbanner

For ConTeXt (LuaTeX): This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev)
For ConTeXt (LMTX): This is LuaMetaTeX, Version 2.06.03

El mié., 20 de may. de 2020 a la(s) 16:25, Hans Hagen (j.hagen@xs4all.nl)
escribió:

> On 5/20/2020 10:26 PM, Jairo A. del Rio wrote:
> > I did. It turns out that installing graphicsmagick does the trick (pun
> > intended) for Noto Color Emoji. However, the issue persists for SVG
> > fonts and the same message appears, despite of having cleaned the cache
> > (I've used mtxrun --script cache --erase). Using the code Pablo sent,
> > with EmojiOne Color instead of Twemoji Mozilla, I get the following
> > error messages:
>
> So, what version do you use?
>
> Hans
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>

[-- Attachment #1.2: Type: text/html, Size: 1652 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
  2020-05-20 20:26 ` Jairo A. del Rio
@ 2020-05-20 21:25   ` Hans Hagen
  2020-05-20 21:32     ` Jairo A. del Rio
  2020-05-21 15:22     ` Pablo Rodriguez
  0 siblings, 2 replies; 10+ messages in thread
From: Hans Hagen @ 2020-05-20 21:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jairo A. del Rio

On 5/20/2020 10:26 PM, Jairo A. del Rio wrote:
> I did. It turns out that installing graphicsmagick does the trick (pun 
> intended) for Noto Color Emoji. However, the issue persists for SVG 
> fonts and the same message appears, despite of having cleaned the cache 
> (I've used mtxrun --script cache --erase). Using the code Pablo sent, 
> with EmojiOne Color instead of Twemoji Mozilla, I get the following 
> error messages:

So, what version do you use?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Emoji color fonts not working on LMTX/Context MKIV
       [not found] <mailman.228.1590003553.9468.ntg-context@ntg.nl>
@ 2020-05-20 20:26 ` Jairo A. del Rio
  2020-05-20 21:25   ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Jairo A. del Rio @ 2020-05-20 20:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I did. It turns out that installing graphicsmagick does the trick (pun
intended) for Noto Color Emoji. However, the issue persists for SVG fonts
and the same message appears, despite of having cleaned the cache (I've
used mtxrun --script cache --erase). Using the code Pablo sent, with
EmojiOne Color instead of Twemoji Mozilla, I get the following error
messages:

LMTX (error):

function call [998]:
...mtx/tex/texmf-context/tex/context/base/mkiv/mlib-svg.lua:1471: bad
argument #1 to 'gsub' (string expected, got nil)


MKIV (outlined emojis, flag emojis not working):

fonts > svg conversion > executing runner 'otfsvg': inkscape
--export-area-drawing --shell > temp-otf-svg-shape.log

fonts > svg conversion > processing 1829 svg containers

xml > core > load error: invalid xml file - parsed text

(the line below repeated dozens of times)

fonts > svg conversion > processing can be going on for a while

fonts > svg conversion > processing 1829 pdf results

fonts > svg conversion > there are no converted shapes, fix your setup

fonts > svg conversion > svg conversion time 4.246 seconds


In any event, LMTX prints only black and white emojis.

On 5/20/2020 9:31 PM, Pablo Rodriguez wrote:
> > On 5/20/20 12:26 PM, Jairo A. del Rio wrote:
> >> [...]
> >> Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I
> >> doing wrong?
> >
> > Hi Jairo,
> >
> > using latest ConTeXt with the following sample, I get these results:
> >
> >    \definefontfamily[emoj][rm][Twemoji Mozilla][features={color}]
> >    \setupbodyfont[emoj]
> >    \starttext
> >    🤦🇬🇧
> >    \stoptext
> >
> > MkIV (2020.01.30 14:13) displays colored icons.
> >
> > LMTX (2020.05.18 16:50) displays only black and white icons.
> >
> > I think this might be a bug in LMTX.
> >
> > Could you confirm the issue?
> what if you wipe the cache
>

[-- Attachment #1.2: Type: text/html, Size: 3238 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-05-21 15:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 10:26 Emoji color fonts not working on LMTX/Context MKIV Jairo A. del Rio
2020-05-20 19:31 ` Pablo Rodriguez
2020-05-20 19:39   ` Hans Hagen
2020-05-20 20:18     ` Pablo Rodriguez
2020-05-20 21:30       ` Hans Hagen
     [not found] <mailman.228.1590003553.9468.ntg-context@ntg.nl>
2020-05-20 20:26 ` Jairo A. del Rio
2020-05-20 21:25   ` Hans Hagen
2020-05-20 21:32     ` Jairo A. del Rio
2020-05-20 21:42       ` Jairo A. del Rio
2020-05-21 15:22     ` Pablo Rodriguez

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 NNTP newsgroup(s).