From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14953 Path: main.gmane.org!not-for-mail From: Stefan Wachter Newsgroups: gmane.comp.tex.context Subject: Re: Typescript for Helvetica - what's wrong? Date: Wed, 31 Mar 2004 18:17:29 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: References: <20040331170100.32593@mail.comp.lancs.ac.uk> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1080749915 26961 80.91.224.253 (31 Mar 2004 16:18:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2004 16:18:35 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Mar 31 18:18:22 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B8iQ2-0006VF-00 for ; Wed, 31 Mar 2004 18:18:22 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 8443C10B62; Wed, 31 Mar 2004 18:15:12 +0200 (MEST) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id D7C2B10B32 for ; Wed, 31 Mar 2004 18:13:59 +0200 (MEST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B8iOi-0001Ol-00 for ; Wed, 31 Mar 2004 18:17:00 +0200 Original-Received: from p508b1b63.dip.t-dialin.net ([80.139.27.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Mar 2004 18:17:00 +0200 Original-Received: from stefan.wachter by p508b1b63.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Mar 2004 18:17:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ref.ntg.nl Original-Lines: 84 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508b1b63.dip.t-dialin.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en In-Reply-To: <20040331170100.32593@mail.comp.lancs.ac.uk> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14953 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14953 Adam Lindsay wrote: > Stefan Wachter said this at Tue, 30 Mar 2004 16:54:27 +0200: > > >>I tried to write a typescript to use the Helvetica PDF base 14 fonts. > > > Interesting problem. I haven't dealt with it, but it seems like a worthy > goal. I thought Patrick Grundlach (?) did some work with this, but I'm > not sure. Check the archives. > > >>Yet, the example below uses the (default) Computer Modern Roman fonts. I >>wrote the typescript along the lines of the excellent help document at >>(http://home.salamander.com/~wmcclain/context-help.html). >> >>Thanks for your attention, >>--Stefan >> >>\enableregime[il1] >>\setupoutput[pdftex] >>\setuppapersize[A4][A4] >>\setuplayout[leftmargindistance=0cm] >>\setupheadertexts[] > > > Okay, put the following typescripts into a separate file (type-hv.tex): > > >>\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 > > > ...and replace them in your source file with: > > \usetypescriptfile[type-hv] > > >>\usetypescript[pdf] >>\setupbodyfont[MyHelvetica] > > > \setupbodyfont[MyHelvetica,ss] > > > >>\starttext >>This is Helvetica, {\bf bold}, {\it italic}, {\bi bold-italic}, >>{\tfa bigger} and {\tfx smaller}. >>\stoptext > > > After I got my pdftex.map pointing to pdftex_ndl14.map (the hardest part > of all this), I was able to generate the PDFs with the correct, > unembedded fonts. > > Hope that helps... you were pretty close! > adam Hi Adam, thanks for the help. After extracting the typescript code into a seperate typescript file everything works fine! --Stefan