[NTG-context] Antykwa Toruńska and dashes

Taco Hoekwater taco at elvenkind.com
Fri Mar 12 08:24:26 CET 2010


Philipp Gesang wrote:
> Hi again,
> 
> 
> when using Antykwa Toruńska I have problems getting dashes rights.
> Example:
> 
> -0<----------------------------------------------------------------------------
> 
> \usetypescript[antykwa-torunska]
> \setupbodyfont[antykwa]
> 
> \starttext
> asdf -- adsf\par
> asdf --- adsf\par
> asdf--asdf\par
> asdf---asdf\par
> \stoptext
> 
> -0<----------------------------------------------------------------------------
> 
> In output here (MkIV as of yesterday) the double/triple dashes are not
> concatenated to en/em dashes.  Everything works fine with latin modern,
> schola, bonum etc.
> 
> What's wrong?

The reason is that Antykwa Torunska has an actual opentype feature
to do the 'TeX ligatures': tlig. Those same ligatures in the other fonts
are faked by lua code. Here is the solution:

   \definefontfeature[default]  [default]
      [mode=node,script=latn,tlig=yes]
   \usetypescript[antykwa-torunska]
   \setupbodyfont[antykwa]

Best wishes,
Taco



More information about the ntg-context mailing list