In ConTeXt LMTX this works just fine (try mtxrun --generate and context --make first): \definefontfeature[Emoji][default][sbix=yes] \starttext \definedfont[file:NotoColorEmoji.ttf*Emoji]\char"1F91D \stoptext However, when one tries to convert it with ImageMagick the following happens: **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: Ignoring spurious ET operator. Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. Only SVG fonts don't trigger this error in LMTX. I confirm ConTeXt MkIV is having issues with emoji fonts. It seems that GraphicsMagick is not properly generating images as it complains about an improper header. Jairo El jue, 13 de may. de 2021 a la(s) 18:26, Adam Reviczky (reviczky@gmail.com) escribió:
Hi,
I am trying to use the 'handshake' character ( https://www.fileformat.info/info/unicode/char/1f91d/fontsupport.htm) from the Noto Color Emoji font ( https://github.com/googlefonts/noto-emoji/blob/main/fonts/NotoColorEmoji.ttf ).
The following MWE gives an error:
\starttext
\definedfont[file:NotoColorEmoji.ttf] \char"1F91D
\stoptext
fonts > otf loading > loading 'NotoColorEmoji.ttf', hash 'notocoloremoji' system > lua > compiling '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/png/notocoloremoji.tma' into '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/png/notocoloremoji.tmc' system > lua > dumping '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/png/notocoloremoji.tma' into '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/png/notocoloremoji.tmc' stripped fonts > otf loading > loading done fonts > otf loading > saving 'NotoColorEmoji.ttf' in cache system > lua > compiling '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/otl/notocoloremoji.tma' into '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/otl/notocoloremoji.tmc' system > lua > dumping '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/otl/notocoloremoji.tma' into '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/otl/notocoloremoji.tmc' stripped fonts > otf loading > loading, optimizing, packing and caching time 2.557 pages > flushing realpage 1, userpage 1, subpage 1 close source > level 2, order 3, name '/tmp/MWE.tex' close source > level 1, order 3, name '/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv' ! error: (file NotoColorEmoji.ttf) (ttf): loca table not foundmtx-context | fatal error: return code: 256
Any idea what is wrong?
Adam
___________________________________________________________________________________ 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
___________________________________________________________________________________