Emoji color fonts not working on LMTX/Context MKIV
![](https://secure.gravatar.com/avatar/23c65792d6f3eb5f6194f6ec9eadc2ac.jpg?s=120&d=mm&r=g)
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.
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Jairo A. del Rio
-
Pablo Rodriguez