[NTG-context] Hanging and Protrusion with Typescript

Peter Münster pmlists at free.fr
Tue Apr 9 23:54:25 CEST 2013


On Tue, Apr 09 2013, Wolfgang Schuster wrote:

> \starttypescript [serif] [nimbus]
>   \definefontsynonym [Serif]           [file:AGaramondPro-Regular.otf]
>   \definefontsynonym [SerifBold]       [file:AGaramondPro-Bold.otf]
>   \definefontsynonym [SerifItalic]     [file:AGaramondPro-Italic.otf]
>   \definefontsynonym [SerifBoldItalic] [file:AGaramondPro-BoldItalic.otf]
> \stoptypescript
>
> \definefontfeature[default][default][protrusion=quality,expansion=quality]
>
> \definetypeface [nimbus] [rm] [serif] [nimbus] [features=default]
>
> \setupbodyfont[nimbus,rm,12pt]
>
> \setupalign[hz,hanging]
>
> \starttext
> \input tufte
> \stoptext

Or with the marvelous simplefonts module:

\usemodule[simplefonts]
\setmainfont[AGaramondPro][boldfont=AGaramondPro-Bold,
  italicfont=AGaramondPro-Italic, bolditalicfont=AGaramondPro-BoldItalic,
  protrusion=quality, expansion=quality]
\setupalign[hz, hanging]
\starttext
\input tufte
\stoptext

;)

-- 
           Peter


More information about the ntg-context mailing list