On 3/24/2021 4:48 PM, denis.ma...@ub.unibe.ch wrote:
\definefontfamily[times][rm][Times New Roman]
don't assume beforehand that something that doesn't work as expected is
a bug
the font just has no ligatures defined which you can remedy (in this
cae) with because it does have the glyphs
\startluacode
fonts.handlers.otf.addfeature {
name = "moreligatures",
type = "ligature",
data = {
['ff'] = { "f", "f" },
['fi'] = { "f", "i" },
['fl'] = { "f", "l" },
}
}
\stopluacode
\blockligatures[begrif:fl:ich]
\definefontfeature[default][default][dlig=yes,liga=yes,moreligatures=yes]
\definefontfamily[times][rm][Times New Roman]
\definefontfamily[termes[rm][TeX Gyre Termes]
\definefontfeature[default:block][default][blockligatures=yes]
\starttext
{\switchtobodyfont[times] \definedfont[Serif*default] begrifflich
ff fi fl\blank
\definedfont[Serif*default:block]
begrifflich ff fi fl\blank}
{\switchtobodyfont[termes]\definedfont[Serif*default] begrifflich
ff fi fl\blank
\definedfont[Serif*default:block]
begrifflich ff fi fl\blank}
\stoptext
-----------------------------------------------------------------
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
___________________________________________________________________________________