[NTG-context] Typescript for Helvetica - what's wrong?

ntg-context@ntg.nl ntg-context@ntg.nl
Tue, 30 Mar 2004 17:32:15 +0200


Try this:

\enableregime[il1]
\setupoutput[pdftex]
\setuppapersize[A4][A4]
\setuplayout[leftmargindistance=0cm]
\setupheadertexts[]

\usetypescriptfile [adobekb]

\usetypescript[adobekb][\defaultencoding]

\setupbodyfont[pos,11pt]

\starttext

{\ss This is Helvetica, {\bf bold}, {\it italic}, {\bi bold-italic},
{\tfa bigger} and {\tfx smaller}.}
\stoptext


On Mar 30, 2004, at 4:54 PM, Stefan Wachter wrote:

> \enableregime[il1]
> \setupoutput[pdftex]
> \setuppapersize[A4][A4]
> \setuplayout[leftmargindistance=0cm]
> \setupheadertexts[]
>
> \starttypescript [sans] [helvetica] [texnansi]
>   \definefontsynonym [Helvetica]             [hv]   [encoding=texnansi]
>   \definefontsynonym [Helvetica-Bold]        [hvb]  [encoding=texnansi]
>   \definefontsynonym [Helvetica-BoldOblique] [hvbo] [encoding=texnansi]
>   \definefontsynonym [Helvetica-Oblique]     [hvo]  [encoding=texnansi]
> \stoptypescript
>
> \starttypescript [sans] [helvetica] [name]
>   \definefontsynonym [Sans]            [Helvetica]
>   \definefontsynonym [SansBold]        [Helvetica-Bold]
>   \definefontsynonym [SansItalic]      [Helvetica-Oblique]
>   \definefontsynonym [SansSlanted]     [Helvetica-Oblique]
>   \definefontsynonym [SansBoldItalic]  [Helvetica-BoldOblique]
>   \definefontsynonym [SansBoldSlanted] [Helvetica-BoldOblique]
>   \definefontsynonym [SansCaps]        [Helvetica]
> \stoptypescript
>
> \starttypescript [pdf]
>   \definetypeface [MyHelvetica] [ss] [sans] [helvetica] [default] 
> [encoding=texnansi]
> \stoptypescript
>
> \usetypescript[pdf]
> \setupbodyfont[MyHelvetica]
>
> \starttext
> This is Helvetica, {\bf bold}, {\it italic}, {\bi bold-italic},
> {\tfa bigger} and {\tfx smaller}.
> \stoptext