[NTG-context] blockligatures removing characters

denis.maier at unibe.ch denis.maier at unibe.ch
Mon May 9 09:56:48 CEST 2022


Happens here as well, already on  ConTeXt  ver: 2022.03.12 17:56 LMTX.

By the way, this even happens without special fonts:

\blockligatures[Th]
\definefontfeature[default:blocklig][default][liga=yes,blockligatures=yes]

\setupbodyfont[myfont]

\starttext
        \definedfont[Serif*default:blocklig]
    The This These are missing the `h'
\stoptext



Von: ntg-context <ntg-context-bounces at ntg.nl> Im Auftrag von Ben Moon via ntg-context
Gesendet: Samstag, 7. Mai 2022 17:49
An: Context Mailing List <ntg-context at ntg.nl>
Cc: Ben Moon <ben at themoons.uk>
Betreff: [NTG-context] blockligatures removing characters

Hi List,

I'm using blockligatures to avoid the 'Th' ligature in some fonts but keep others. Recently I've found this removes the 'h' completely, i.e. 'Th' is changed to 'T', 'The' becomes 'Te' etc.

Is there a way to restore the blockligatures functionality? I'm on ConTeXt version 2022.05.02 16:19.

Here is a MWE using Almendra (https://fonts.google.com/specimen/Almendra<https://fonts.google.com/specimen/Almendra?preview.text=Th%20Almost%20before%20we%20knew%20it,%20we%20had%20left%20the%20ground.%20&preview.text_type=custom>) from Google Fonts.

```
\starttypescriptcollection[myfont]

    \starttypescript[myfont]
        \definefontsynonym[Serif][Almendra-Regular][features=default]
    \stoptypescript

    \starttypescript[myfont]
        \definetypeface[\typescriptone][rm][serif][myfont][default][]
    \stoptypescript

\stoptypescriptcollection

\blockligatures[Th]

\definefontfeature[default][default][liga=yes]
\definefontfeature[default:nolig][default][liga=no]
\definefontfeature[default:blocklig][default][liga=yes,blockligatures=yes]

\setupbodyfont[myfont]

\starttext
    The This These have the Th ligature and others (fi)

    \definedfont[Serif*default:nolig]
    The This These have no ligatures (not fi)

    \definedfont[Serif*default:blocklig]
    The This These are missing the `h' (fi)
\stoptext
```

Best,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220509/da9368bb/attachment.htm>


More information about the ntg-context mailing list