[NTG-context] Producing quotesingle glyph

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Mar 20 08:11:39 CET 2011


Am 19.03.2011 um 23:41 schrieb Pontus Lurcock:

> Thanks, Mojca and Khaled!
> 
> Taking trep out of the default features works nicely, but since in
> this case I want quote-replacement as the default and straight
> quotes only occasionally, I ended up with the following solution:
> 
> \definefontfeature[default][liga=yes,kern=yes,tlig=yes,trep=yes,mode=node]

You can add a feature with this:

\definefontfeature[default][default][mode=node]

> \definefontfeature[notrep][liga=yes,kern=yes,tlig=yes,trep=no,mode=node]
> \def\realquotesingle{{\setfontfeature{notrep}'}}


Another option is to disable only a single feature:

\definefontfeature[notrep][trep=no]
\def\realquotesingle{{\addfs{notrep}'}}

Wolfgang



More information about the ntg-context mailing list