From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Adam Reviczky <reviczky@gmail.com>
Subject: Re: NotoColorEmoji - loca table not found
Date: Fri, 14 May 2021 20:05:13 +0200 [thread overview]
Message-ID: <f65a3cde-17ed-7f4b-cd90-c81d21ceabde@xs4all.nl> (raw)
In-Reply-To: <CABaoHuuDs8AKpFOtAY2ub_A5jZAUHLnwswQNbDkRjSc5_P66Yg@mail.gmail.com>
On 5/14/2021 6:33 PM, Adam Reviczky wrote:
> Hi Hans,
>
> Yes, sorry about the error :).
>
> Thanks for the explanation, will use lmtx for that, though probably best
> just using another font (some mentioned on the list
> https://www.mail-archive.com/ntg-context@ntg.nl/msg92800.html
> <https://www.mail-archive.com/ntg-context@ntg.nl/msg92800.html> and
> https://mailman.ntg.nl/pipermail/ntg-context/2020/098136.html
> <https://mailman.ntg.nl/pipermail/ntg-context/2020/098136.html>) or svg
> or metapost as I do not need it in colour.
I spend quite a bit of time looking into this (it's already a while ago
when I implemented all this and color stuff in otf is a bit of a mess
and evolving, so in retrospect it's probably better to wait a few years
to see how that works out; the same for variable fonts ... hadr to deal
with when there are not many fonts and fuzzy specs.)
Anyway, the problem is this: these png emoji are using palettes + masks
and that combinaiton gives:
- with gm (gs) : white background
- with mutool : black background
- with luatex : a mess
- with lmtx : what we want
now, testing all this takes a lot of time in mkiv because building the
cache file takes time, so it's one of these moments i wonder if a modern
machine would do better than my old but reliable machine. The outcome is
that in mkiv one can do this:
\enabledirectives[backend.otfpng.method=lmtx] % the real deal, slow
\enabledirectives[backend.otfpng.method=mutool] % black bg
\enabledirectives[backend.otfpng.method=gm] % white bg, default
So, when you have a fast machine or a coffe break, you can use the lmtx
method (can be configures in cont-loc.mkiv).
As manetioned, in lmtx it is done differently so no penalties there.
> I thought it would be easier via fonts but backtracking on the idea now
> and maybe using something like this instead:
> https://thenounproject.com/term/handshake/153516/
> <https://thenounproject.com/term/handshake/153516/>.
btw, some emoji fonts have both bw outlines and bitmap color, some use
png (bloated), and microsoft fonts have efficient outline color (nice
mechanism).
Hans
(who never uses emoji)
-----------------------------------------------------------------
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-05-14 18:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-13 23:26 Adam Reviczky
2021-05-13 23:49 ` Jairo A. del Rio
2021-05-14 0:52 ` Adam Reviczky
2021-05-14 1:21 ` Jairo A. del Rio
2021-05-14 15:31 ` Hans Hagen
2021-05-14 16:33 ` Adam Reviczky
2021-05-14 18:05 ` Hans Hagen [this message]
2021-05-14 7:56 ` Hans Hagen
2021-05-14 7:54 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f65a3cde-17ed-7f4b-cd90-c81d21ceabde@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=reviczky@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).