[NTG-context] Hanging and Protrusion with Typescript

"H. Özoguz" h.oezoguz at mmnetz.de
Tue Apr 9 21:45:35 CEST 2013


>
> Best look into some type-imp files to see how typescript are defined. 

I looked in the wiki, and my minexample is from the wiki, too. What is a 
"type-imp"?

So I changed the code into:
+++++++++++++++
\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]


\setupalign[hz,hanging]

\setupbodyfont[nimbus,rm,12pt]


\definetypeface [nimbus] [rm] [serif] [nimbus]


\starttext

\input tufte

\stoptext
++++++++++++++++++++


Hanging is now activated, but not with the defined font "AGaramondPro", 
but with Computer Modern, so now the typescript is not accepted. So 
changing the command orders does not help, at least not alone.


Sorry, I did not understand, what you mean with
"what features? maybe add *default or so ... depends on how general 
definitions are".


Which "features" do you mean, and what is the question? I simply copied 
this from the wiki, and hoped that I could use AdobeGaramond now. It 
works, but not together with Hanging.






More information about the ntg-context mailing list