[NTG-context] tlig feature sometimes does not work

Mohammad Hossein Bateni bateni at gmail.com
Sun Mar 14 04:18:20 CET 2021


Added some notes to the wiki:
https://wiki.contextgarden.net/Featuresets#Open-type_features

On Sat, Mar 13, 2021 at 3:12 AM Hans Hagen <j.hagen at xs4all.nl> wrote:

> 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
> -----------------------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210313/8c7e55f4/attachment.htm>


More information about the ntg-context mailing list