From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111371 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: NotoColorEmoji - loca table not found Date: Thu, 13 May 2021 20:21:58 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6188079649657367003==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36045"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 14 03:22:38 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhMXG-0009Hq-51 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 14 May 2021 03:22:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6FE8F2837EA; Fri, 14 May 2021 03:22:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a6mwxTRvUtp8; Fri, 14 May 2021 03:22:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 055572837ED; Fri, 14 May 2021 03:22:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C00912837EB for ; Fri, 14 May 2021 03:22:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QBwrleg0bgo5 for ; Fri, 14 May 2021 03:22:09 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.53; helo=mail-wm1-f53.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DD4C72802FD for ; Fri, 14 May 2021 03:22:09 +0200 (CEST) Original-Received: by mail-wm1-f53.google.com with SMTP id 8so1054240wmc.5 for ; Thu, 13 May 2021 18:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ofL3hevaSUbKMED5+UxMdXTZQzvetB6nmchcoPf3RRU=; b=o8tzJxCR1h+zAqPyYvB8gJgGWp5FofWAOf0UTAMjvXHo8LK96Lvj4Vi9V0A6u81AHo oYBQi6YcIRXeBpGHoBU4BagrSN8yGbA0+te4Jy4BsfwPjEGHOVU6nVV6g6/NXsBUZ5YE F5ht8yknU0bR/VLE6c9zieS72Wh03uS5zgqvFnCokvEQnn1oFyNLc9bOkcBXulwGF2qW ivm00IHumjTkI8dVTUfpgFx3jotuNrB7QCd/PrMWF2do9oGF/TLqS6ekOnDgio1xnrF/ 2u9t3am71CdvM9GNI6fPKEuWOugatO+rZ4XDMWhlPPKFkvel985vrPvkg1HWW+6B0edQ rPDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ofL3hevaSUbKMED5+UxMdXTZQzvetB6nmchcoPf3RRU=; b=io0MGjOK+M5dzHEbI0YKOYUG+DadyGM5gXFuR0fn9Z4DdTcQ3/zv1gJX9bn2/HWQO8 2gjdVkAawmkiyHO5CSsxNUgMGmY4Hns38vND484Ev6ricLaR6s7xdBT2x+YFGSRI2ZvI 92wuZrG/nLOvNFNJ5XH3dcDSHwZI3fveQl8+1GyR9z3Cr4bHPZ6NMsCSHub9NAOrTJXW 83qHR5FcqPzo5g66+E9TQRAFnO8QIBg21DgPBq2WWegGUCjfwB7uTQSwbeA2gVeE+W0P KM/5dmWJ7SQycpc+SiK0rWugfpJ8rNQpwJx3DU8h900ut6IIeRIhv2yiw/jzmmEk6HXz Alpw== X-Gm-Message-State: AOAM5309UHsuHLAxwbinUXT9kPBBsrepOKY8iUmhg5QMliVfqTn8ezv8 HLStpV9jKRYgfQwdE0J1QoaeKdMln70bYR3BEj4Bk0v2urElIQ== X-Google-Smtp-Source: ABdhPJzzBkKEuKHAvaDm6q8zmmikaMXHLA9Qo71yxRvSPzDGT1/1vS+NmKX8qUDDFF7YqpcbaHUWCWvKsS48Obr4Yx8= X-Received: by 2002:a05:600c:2909:: with SMTP id i9mr46933643wmd.116.1620955329372; Thu, 13 May 2021 18:22:09 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:111371 Archived-At: --===============6188079649657367003== Content-Type: multipart/alternative; boundary="0000000000009aa54d05c2401290" --0000000000009aa54d05c2401290 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El jue, 13 de may. de 2021 a la(s) 19:52, Adam Reviczky (reviczky@gmail.com= ) escribi=C3=B3: > 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/5fe67e0bfe781ce0dd= e776fb1556f32e/fonts/ > \definefontfeature[Emoji][default][sbix=3Dyes] > > \starttext > > > \framed[background=3Dcolor,background=3Dblack]{\definedfont[file:NotoColo= rEmoji.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 > wrote: > >> In ConTeXt LMTX this works just fine (try mtxrun --generate and context >> --make first): >> >> \definefontfeature[Emoji][default][sbix=3Dyes] >> >> \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 damage= d. >> 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 a= n >> improper header. >> >> Jairo >> >> El jue, 13 de may. de 2021 a la(s) 18:26, Adam Reviczky ( >> reviczky@gmail.com) escribi=C3=B3: >> >>> 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/NotoColorEmoj= i.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/b47c3d3cee7cb= 6c86268d0595268c442/fonts/png/notocoloremoji.tma' >>> into >>> '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb= 6c86268d0595268c442/fonts/png/notocoloremoji.tmc' >>> system > lua > dumping >>> '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb= 6c86268d0595268c442/fonts/png/notocoloremoji.tma' >>> into >>> '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb= 6c86268d0595268c442/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/b47c3d3cee7cb= 6c86268d0595268c442/fonts/otl/notocoloremoji.tma' >>> into >>> '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb= 6c86268d0595268c442/fonts/otl/notocoloremoji.tmc' >>> system > lua > dumping >>> '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb= 6c86268d0595268c442/fonts/otl/notocoloremoji.tma' >>> into >>> '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb= 6c86268d0595268c442/fonts/otl/notocoloremoji.tmc' >>> stripped >>> fonts > otf loading > loading, optimizing, packing and cachin= g >>> 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 t= o >> 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 > > _________________________________________________________________________= __________ > --0000000000009aa54d05c2401290 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
El jue, 13 de may. de 2021 a la(s) 19= :52, Adam Reviczky (reviczky@gmail.co= m) escribi=C3=B3:
Thanks Jairo,

That ind= eed works, should've read that it is bitmap only.

<= div>I do get a white background though (MKIV), is that how the bitmap is st= ored?


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/c= oragyps/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1= 556f32e/fonts/
=C2=A0

\definefontfeature[Emoji][default][sbix=3Dye= s]

\starttext

\framed[backgr= ound=3Dcolor,background=3Dblack]{\definedfont[file:NotoColorEmoji.ttf*Emoji= ]\char"1F91D}

\stoptext

<= p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap">

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

I = also do not get a white background with LibreOfiice.



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

Jairo
=C2=A0

Adam

On Fri, May 14, 2021 at 12:51 AM Jairo A. d= el Rio <jai= roadelrio6@gmail.com> wrote:
In ConTeXt LMTX this works just fine (= try mtxrun --generate and context --make first):

\definefontfea= ture[Emoji][default][sbix=3Dyes]

\starttext

\definedfont[f= ile:NotoColorEmoji.ttf*Emoji]\char"1F91D

\stoptext
<= br>

However= , when one tries to convert it with ImageMagick the following happens:
<= br>=C2=A0 =C2=A0**** Error reading a content stream. The page may be incomp= lete.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Output may = be incorrect.
=C2=A0 =C2=A0**** Error: Ignoring spurious ET operator.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Output may be incor= rect.
=C2=A0 =C2=A0**** Error: File did not complete the page properly a= nd may be damaged.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0Output 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 pro= perly generating images as it complains about an improper header.

<= /p>

Jairo


El jue, 13 de may. de 2021 a la(s) 18:26, Adam Reviczky (reviczky@gmail.com) escribi=C3= =B3:
Hi,


The following= MWE gives an error:

\starttext

\definedfont[f= ile:NotoColorEmoji.ttf] \char"1F91D

\stoptext

<= /div>

fonts =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > otf = loading > loading 'NotoColorEmoji.ttf', hash 'notocoloremoji= '
system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> lua > compiling &= #39;/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6= c86268d0595268c442/fonts/png/notocoloremoji.tma' into '/home/ubuntu= /.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c4= 42/fonts/png/notocoloremoji.tmc'
system =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0> lua > dumping '/home/ubuntu/.texlive2020/texmf-var/luatex= -cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/png/notocoloremoji.tm= a' into '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b= 47c3d3cee7cb6c86268d0595268c442/fonts/png/notocoloremoji.tmc' stripped<= br>fonts =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > otf loading > loading d= one
fonts =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > otf loading > savin= g 'NotoColorEmoji.ttf' in cache
system =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0> lua > compiling '/home/ubuntu/.texlive2020/texmf-var/= luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/otl/notocolorem= oji.tma' into '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/con= text/b47c3d3cee7cb6c86268d0595268c442/fonts/otl/notocoloremoji.tmc'
= system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> lua > dumping '/home/u= buntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595= 268c442/fonts/otl/notocoloremoji.tma' into '/home/ubuntu/.texlive20= 20/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/ot= l/notocoloremoji.tmc' stripped
fonts =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 > otf loading > loading, optimizing, packing and caching time 2.5= 57
pages =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > flushing realpage 1, us= erpage 1, subpage 1
close source =C2=A0 =C2=A0> level 2, order= 3, name '/tmp/MWE.tex'
close source =C2=A0 =C2=A0> level 1, = order 3, name '/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv'= ;
! error: =C2=A0(file NotoColorEmoji.ttf) (ttf): loca table not foundmt= x-context =C2=A0 =C2=A0 | fatal error: return code: 256

<= /div>
Any idea what is wrong?

Adam

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000009aa54d05c2401290-- --===============6188079649657367003== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6188079649657367003==--