Hi Markus,

you're on the right track; just two or three small corrections, and you should be in business:

On Mar 25, 2009, at 8:21 PM, Markus Hubig wrote:

My map file looks like this (texnansi-adobe-avenir.map):

texnansi-AVENI17 Avenir-Heavy 4             < AVENI17.ttf texnansi.enc
texnansi-AVENI18 Avenir-HeavyOblique 4 < AVENI18.ttf texnansi.enc
texnansi-AVENI23 Avenir-Oblique 4           < AVENI23.ttf texnansi.enc
texnansi-AVENI24 Avenir-Roman 4            < AVENI24.ttf texnansi.enc

I'm not sure if you can have a space after the <

\starttypescript [map] [avenir] [textansi]
 \loadmapfile [texnansi-adobe-avenir.map]

\starttypescript [sans] [avenir] [texnansi]
  \definefontsynonym [Avenir-Heavy]             [texnansi-AVENI17]
  \definefontsynonym [Avenir-HeavyOblique] [texnansi-AVENI18]
  \definefontsynonym [Avenir-Oblique]           [texnansi-AVENI23]
  \definefontsynonym [Avenir-Roman]            [texnansi-AVENI24]

\starttypescript [sans] [avenir] [name]
  \definefontsynonym [Sans]               [Avenir-Roman]
  \definefontsynonym [SansItalic]        [Avenir-Oblique]
  \definefontsynonym [SansBold]        [Avenir-Heavy]
  \definefontsynonym [SansBoldItalic] [Avenir-HeavyOblique]

\starttypescript [Avenir]
  \definetypeface [Avenir] [rm] [sans] [avenir] [default]

Two things here: you're defining a sans font, so change [rm] into [ss]. And for mkii (old-fashioned pdftex), I think you'll need to add the encoding to the typescript:

\starttypescript [Avenir] [texnansi]
\definetypeface [Avenir] [ss] [sans] [avenir] [default] [encoding=texnansi]

When I try to use my typescript in my environment file like this:


Yes, you have defined a sans font, but you're not setting sans as your bodyfont. ConTeXt defaults to serif (i.e. rm), and since your typescript doesn't define a rm font, it defaults to latin modern. So simply write:



If your question is of interest to others as well, please add an entry to the 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net

Reply via email to