Interesting.
Here is a an example that sort of works, Variant 1:
\definefontfamily[english] [rm] [ebgaramond] [features={default, dlig=no}]
\setupbodyfont[english,10pt]
\starttext
Variant 1:
Does this look like EBGaramond?
fi fl ffi ffl ct st
\stoptext
However, it turns of *all* the ligatures.
Here is an example that works as expected, Variant 2:
\definefontfeature[english][dlig=no]
\definefontfamily[ebgaramond] [rm] [EB Garamond]
[features={default,english}]
\setupbodyfont[ebgaramond,10pt]
\starttext
Variant 2:
Does this look like EBGaramond?
fi fl ffi ffl ct st
\stoptext
It turns off just the ct and st ligatures.
I've attached the generated PDF files for both variants.
On Wed, Dec 2, 2020 at 1:23 PM Pablo Rodriguez
On 12/2/20 6:56 PM, T. Kurt Bond wrote:
Ah, ok.
Here is a minimal NONWORKING example: the resulting PDF shows the ct and st ligatures. What commands should I use to turn them off?
Hi Kurt,
here you have the sample that should work:
%~ \definefontfamily[ebgaramond] [rm] [ebgaramond]
%~ [features={default,dlig=no}]
\definefontfeature[english][dlig=no]
\definefontfamily[ebgaramond] [rm] [EB Garamond]
[features={default,english}]
\setupbodyfont[ebgaramond,10pt]
\starttext
ct st
\stoptext
BTW, on my system the default doesn’t get discretionary ligatures.
Your sample didn’t work because the identifier for \definefontfamily (english) was different from the one used in \setupbodyfont. (If they don’t match, it cannot work.)
Another cleaner approach is to define font features to invoke them in \definefontfamily. This method seems cleaner to me.
I hope it helps,
Pablo -- http://www.ousia.tk
___________________________________________________________________________________ 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
___________________________________________________________________________________
-- T. Kurt Bond, tkurtbond@gmail.com, https://tkurtbond.github.io