On 10/7/2017 9:21 PM, Pablo Rodriguez wrote:
The Brill fonts don’t work either (http://www.brill.com/about/brill-fonts).
\definefontfamily[mainfont][rm][Alegreya] \definefontfamily[otherfont][rm][Brill] \setupbodyfont [mainfont,16pt]
\starttext \startTEXpage[offset=1em] \startbuffer falsch: Auflage Kampffront
richtig: Au\noligature{fl}age Kamp\noligature{ff}ront
\setreplacements[eka] richtig: Auflage Kampffront
f ft fl fk fb ff
f f\/t f\/l f\/k f\/b f\/f \resetreplacements \stopbuffer
\getbuffer
\setupbodyfont[times]\getbuffer
\setupbodyfont[otherfont]\getbuffer \stopTEXpage \stoptext You need to define features before fonts get defined because we share font definitions and their features as much as possible
\startluacode fonts.handlers.otf.addfeature { name = "kernligatures", type = "kern", data = { f = { i = 50, l = 50 }, } } \stopluacode \blockligatures[u:fl:a] Now we can use them \definefontfamily[mainfont][rm][Brill] \definefontfamily[mainfont][tt][Dejavu] \setupbodyfont[mainfont] \definefontfeature[default:b][default][blockligatures=yes] \definefontfeature[default:k][default][blockligatures=yes,kernligatures=yes] \showfontkerns \starttext {\definedfont[Serif*default @ 11pt]auflage}\par {\definedfont[Serif*default:b @ 11pt]auflage}\par {\definedfont[Serif*default:k @ 11pt]auflage}\par \stoptext so, you need to add a kern too because brill assumes ligatures to be applied as usual with tex .. there's always a way out but not always a trivial one and of course all this gets forgotten and/or lost in the flood of solutions 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 -----------------------------------------------------------------