Hi,

I just installed the univers and it makes a nice example of typescripts.

First i copied the floppy with afm/pfb/pfm onto my disk (scratch path).

There I ran

   texfont --ven=linotype --col=univers --enc=texnansi --make --install

this copies the files to the right place and generated tfm's. Also, a test 
file is generated that shoul dprocess out of the box

   texnansi-linotype-univers.tex

Next comes making a typescript, say typeface.tex:

% we auto load the map file

\starttypescript [map] [texnansi]

   \loadmapfile[texnansi-linotype-univers.map]

\stoptypescript

% from the test file we cut and paste and edit; watch the three sets

\starttypescript [sans] [univers,univers-light,univers-black] [name]

   \definefontsynonym [Sans]            [Univers]
   \definefontsynonym [SansBold]        [Univers-Bold]
   \definefontsynonym [SansSlanted]     [Univers-Oblique]
   \definefontsynonym [SansBoldSlanted] [Univers-BoldOblique]

\stoptypescript

\starttypescript [sans] [univers-light] [name]

   \definefontsynonym [Sans]            [Univers-Light]
   \definefontsynonym [SansSlanted]     [Univers-LightOblique]

\stoptypescript

\starttypescript [sans] [univers-black] [name]

   \definefontsynonym [Sans]            [Univers-Black]
   \definefontsynonym [SansSlanted]     [Univers-BlackOblique]
   \definefontsynonym [SansBold]        [Univers-Black]
   \definefontsynonym [SansBoldSlanted] [Univers-BlackOblique]

\stoptypescript

% next we create a file name mapper

\starttypescript [sans] [univers,univers-black,univers-light] [texnansi]

   \definefontsynonym [Univers]              [texnansi-LT50138] 
[encoding=texnansi]
   \definefontsynonym [Univers-Bold]         [texnansi-LT50140] 
[encoding=texnansi]
   \definefontsynonym [Univers-Oblique]      [texnansi-LT50139] 
[encoding=texnansi]
   \definefontsynonym [Univers-BoldOblique]  [texnansi-LT50141] 
[encoding=texnansi]

   \definefontsynonym [Univers-Light]        [texnansi-LT50136] 
[encoding=texnansi]
   \definefontsynonym [Univers-LightOblique] [texnansi-LT50137] 
[encoding=texnansi]

   \definefontsynonym [Univers-Black]        [texnansi-LT50142] 
[encoding=texnansi]
   \definefontsynonym [Univers-BlackOblique] [texnansi-LT50143] 
[encoding=texnansi]

\stoptypescript

Now we can make a test file:

% output=pdftex

\usetypescriptfile[typeface]

\definetypeface [normal] [ss] [sans] [univers]       [default] [texnansi]
\definetypeface [light]  [ss] [sans] [univers-light] [default] [texnansi]
\definetypeface [black]  [ss] [sans] [univers-black] [default] [texnansi]

\starttext

\startbuffer
So this {\sl is an} example {\bf of an} linotype {\bs univers} typeface.
\stopbuffer

\setupbodyfont[normal,10pt] \getbuffer \par
\setupbodyfont[light, 10pt] \getbuffer \par
\setupbodyfont[black, 10pt] \getbuffer \par

\stoptext

Again, this should run without further efforts. As you can see, we use the 
original filenames prefixed by texnansi-. If needed one can also generate 
the caps alternatives, but i wonder if univers is suited for that.

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------

Reply via email to