[NTG-context] XeTeX, Adobe Garmond & dash, quotes, etc.

Bart C. Wise bntgcontext at wiseguysweb.com
Fri Nov 21 05:14:57 CET 2008


The code below is used to load the Adobe Garmond fonts.  The problem is that 
quotes (``) produces two single quotes.  Similar with dashes: an en dash 
produces to dashes, an em dash likewise produces three dashes.  What am I 
doing wrong (again)!


\starttypescript[serif][agaramond][ec]
  \definefontsynonym[AGaramondRegular][name:AGaramond-Regular] [encoding=ec]
  \definefontsynonym[AGaramondItalic] [name:AGaramond-Italic][encoding=ec]
  \definefontsynonym[AGaramondBold]   [name:AGaramond-Bold] [encoding=ec]
  \definefontsynonym[AGaramondBoldIt]   [name:AGaramond-BoldItalic] 
[encoding=ec]
\stoptypescript

\starttypescript[serif][agaramond][name]
  \definefontsynonym  [Serif]           [AGaramondRegular]
  \definefontsynonym  [SerifItalic]     [AGaramondItalic]
  \definefontsynonym  [SerifBold]       [AGaramondBold]
  \definefontsynonym  [SerifBoldItalic] [AGaramondBoldIt]
\stoptypescript

\starttypescript[agaramond][ec]
  \definetypeface[agaramond][rm][serif][agaramond][default][encoding=ec]
\stoptypescript

\usetypescript[agaramond][ec]
\setupbodyfont[agaramond, 12pt]

\starttext
``Here's a lousy looking quote.''
Here are a couple of dashes: --
Here are three: ---
\stoptext

Thanks,
Bart


More information about the ntg-context mailing list