Am 10.04.2013 um 10:00 schrieb "H. Özoguz" <h.oezoguz@mmnetz.de>:

Am 10.04.2013 00:44, schrieb ntg-context-request@ntg.nl:
I corrected your example above:

\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

Wolfgang
Hi Wolfgang,

thank you. But your correction does not work, too. With your code the font AGaramondPro is not used, and no hanging either (even not with the then used Standard-Font). If I remove

[features=default]

then again Garamond is used, but still without hanging. It seems very tricky to define these things correctly, at least for me... :)

I missed a parameter for \definetypeface, replace the defintion above with this one:

\definetypeface [nimbus] [rm] [serif] [nimbus] [default] [features=default]

Wolfgang