El jue, 13 de may. de 2021 a la(s) 19:52, Adam Reviczky (reviczky@gmail.com) escribió:
Thanks Jairo,

That indeed works, should've read that it is bitmap only.

I do get a white background though (MKIV), is that how the bitmap is stored?


In LuaLaTeX with Harfbuzz shaper as well as ConTeXt LMTX, transparency is properly handled, so I suppose ConTeXt MkIV is to blame in this case. In case you understand how does ConTeXt handle with bitmap fonts, relevant files are under /home/coragyps/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/
 

\definefontfeature[Emoji][default][sbix=yes]

\starttext

\framed[background=color,background=black]{\definedfont[file:NotoColorEmoji.ttf*Emoji]\char"1F91D}

\stoptext


In Hans' example for applecoloremoji there is no white background (page 5, bachotex-2017-emoji.pdf).

I also do not get a white background with LibreOfiice.



I'd wait for Hans to fix it, as I don't really understand font management in ConTeXt...

Jairo
 

Adam

On Fri, May 14, 2021 at 12:51 AM Jairo A. del Rio <jairoadelrio6@gmail.com> wrote:
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,


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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________