[NTG-context] Hanging punctuation

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Jun 23 10:39:49 CEST 2014


Am 22.06.2014 um 20:51 schrieb Tomas Hala <tomas.hala at mendelu.cz>:

> Hello,
> 
> I tried hanging punctuation with Trebuchet font but without any success
> whereas for Latin Modern or Libertine (without simplefonts) it works OK.
> 
> Is the \setupalign feature for hanging punctuation available for 
> simplefonts module? Or did I forget some option?
> 
> Minimal example:
> 
> % CTX from TeXlive 2013
> \usemodule[simplefonts]   
> \setmainfont[Trebuchet MS]
> \setupalign[hz,hyphenated,justified,hanging]
> \starttext 
> \input knuth
> \stoptext

You have to enable the feature for the font before you can use it, to do this add

    \definefontfeature[default][default][expansion=quality,protrusion=quality]

before \setmainfont.

Wolfgang


More information about the ntg-context mailing list