From: Hans Hagen <j.hagen@xs4all.nl>
To: Mohammad Hossein Bateni <bateni@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: tlig feature sometimes does not work
Date: Sat, 13 Mar 2021 09:12:46 +0100 [thread overview]
Message-ID: <cfeee28b-186a-aa87-ee44-431e808c8b02@xs4all.nl> (raw)
In-Reply-To: <CAMHZ1dbuRVjgePkOX2QbuWqdby8f9Y-iss1vofY5YRqGzHx1fg@mail.gmail.com>
On 3/13/2021 2:01 AM, Mohammad Hossein Bateni wrote:
> Umm... the fallbacks are correct. My conclusion is that tlig does not
> work when the character is not in the font itself. Is that the case?
> Is this a bug or a feature?
>
> \starttext
>
> \definefontfallback[fall][dejavusansmono][0-0xfffff][check=yes,force=no]
> \definefontsynonym[Test][file:Mikhak-Medium.ttf][fallbacks=fall]
> \definefontfeature[tf][arabic][tlig=yes]
> \definedfont[Test*tf]
> foo--bar
> [\char"2013]
> [\char"2014]
> \stoptext
... or a misunderdstanding:
\starttext
\definefontfallback[myfallback][dejavuserif*default][0x02d,0x2013,0x2014][check=yes,force=yes]
\definefontsynonym[mytestfont][file:Mikhak-Medium.ttf][fallbacks=myfallback]
\definedfont[mytestfont*arabic]
foo--ofo---oof [\char"002D] [\char"2013] [\char"2014]
\stoptext
for a ligature to be made all the glyphs involved have to come from the
same font
I think you should wikify this (also because the font once complete is a
nice one to use in examples),
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
-----------------------------------------------------------------
___________________________________________________________________________________
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-03-13 8:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-11 1:05 Mohammad Hossein Bateni
2021-03-12 17:32 ` Hans Hagen
2021-03-13 0:11 ` Mohammad Hossein Bateni
2021-03-13 0:13 ` Mohammad Hossein Bateni
2021-03-13 1:01 ` Mohammad Hossein Bateni
2021-03-13 8:12 ` Hans Hagen [this message]
2021-03-14 3:18 ` Mohammad Hossein Bateni
2021-03-13 8:00 ` 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=cfeee28b-186a-aa87-ee44-431e808c8b02@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=bateni@gmail.com \
--cc=ntg-context@ntg.nl \
/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).