[NTG-context] How do I get rid of the ct and st ligatures in EBGaramond?

T. Kurt Bond tkurtbond at gmail.com
Wed Dec 2 19:59:36 CET 2020


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 <oinos at gmx.es> wrote:

> 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 at 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 at gmail.com, https://tkurtbond.github.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201202/b5718ea4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ebgaramond-lig.pdf
Type: application/pdf
Size: 7452 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201202/b5718ea4/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ebgaramond-lig-variant-2.pdf
Type: application/pdf
Size: 8088 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201202/b5718ea4/attachment-0003.pdf>


More information about the ntg-context mailing list