From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6654 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: another example of fonts Date: Thu, 24 Jan 2002 17:58:59 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020124174754.02af4e30@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035397170 12512 80.91.224.250 (23 Oct 2002 18:19:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:19:30 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:6654 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6654 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 | pragma@wxs.nl 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 -------------------------------------------------------------------------