From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19147 Path: news.gmane.org!not-for-mail From: Stefan Wachter Newsgroups: gmane.comp.tex.context Subject: Re: How to switch between fonts? Date: Fri, 18 Mar 2005 16:16:06 +0100 Message-ID: <423AF0B6.1070002@gmx.de> References: <4237EF69.8090306@gmx.de> <4239EF75.9050004@wxs.nl> <423ADA94.5030208@gmx.de> <423AE1E7.3060903@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010504050006000605060609" X-Trace: sea.gmane.org 1111159757 8333 80.91.229.2 (18 Mar 2005 15:29:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2005 15:29:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 18 16:29:17 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DCJEw-0000ux-18 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Mar 2005 16:18:18 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 008C912930; Fri, 18 Mar 2005 16:19:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23465-04; Fri, 18 Mar 2005 16:19:55 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6689A1290F; Fri, 18 Mar 2005 16:16:10 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E5661290F for ; Fri, 18 Mar 2005 16:16:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23465-03 for ; Fri, 18 Mar 2005 16:16:07 +0100 (CET) Original-Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id A38FF12853 for ; Fri, 18 Mar 2005 16:16:07 +0100 (CET) Original-Received: (qmail invoked by alias); 18 Mar 2005 15:16:07 -0000 Original-Received: from p54A23FC6.dip.t-dialin.net (EHLO [192.168.1.33]) [84.162.63.198] by mail.gmx.net (mp004) with SMTP; 18 Mar 2005 16:16:07 +0100 X-Authenticated: #10144042 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <423AE1E7.3060903@wxs.nl> X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:19147 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19147 This is a multi-part message in MIME format. --------------010504050006000605060609 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit > hard to test without those tfm files (i don't want to clobber my system > by generating them; also, i never use the p* variants) I created the vf and tfm files with the attached script. Maybe you can setup a local directory? Creating these fonts simply needs the following calls (the files are generated in the current directory!): fonts.sh adobe helvetic ec fonts.sh adobe times ec fonts.sh adobe courier ec fonts.sh adobe helvetic texnansi texnansi fonts.sh adobe times texnansi texnansi fonts.sh adobe courier texnansi texnansi The first three calls generate virtual fonts that are base on raw fonts with default encoding and the last three calls generate virtual fonts that are based on texnansi reencoded raw fonts. (After studying texfont I think that generating fonts based on the default encoding of raw fonts is not possible with texfont.) I think the generate vf and tfm files are correct because they can be used without problems as long as no family switching occurs. Is there a specific reason why the p* variants should not be used? I hoped that they are very similar to what is present in the different Acrobat Reader versions. > > looking at your map file: > > there are no pfb files mentioned ... why? I want to use the built in fonts because the size of the PDF documents must be as small as possible. --Stefan --------------010504050006000605060609 Content-Type: application/x-sh; name="font.sh" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="font.sh" # This script generates files in the current working directory. # # 1: directory that contains the afm-files. # 2: font vendor (eg. adobe) # 3: font collection (eg. courier, times, helvetic) # 4: tex encoding (eg. texnansi or ec) # 5: (optional) postscript encoding (eg. 8a). If no postscript encoding is supplied # then the default encoding of the font is used. In that case no reencoding is needed. if [ $# -lt 4 ] ; then echo "Usage: $0 [postscript encoding]" 1>&2 exit 1 fi vfDir=fonts/vf/$2/$3/ tfmDir=fonts/tfm/$2/$3/ mapDir=fonts/map/pdftex/context/ mapFile=$2-$3-$4-$5.map for datei in `find $1/$2/$3 -name "*.afm"` ; do name=`basename $datei .afm` echo processing $name if [ $# -gt 4 ] ; then afm2tfm $name -v $4-$5-$name -t $4.enc -p $5.enc $5-raw-$name >> $mapFile vptovf $4-$5-$name.vpl $4-$5-$name.vf $4-$5-$name.tfm else afm2tfm $name -v $4-$name -t $4.enc raw-$name >> $mapFile vptovf $4-$name.vpl $4-$name.vf $4-$name.tfm fi done more $mapFile mkdir -p $vfDir $tfmDir $mapDir mv *.vf $vfDir mv *.tfm $tfmDir rm *.vpl mv *.map $mapDir --------------010504050006000605060609 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------010504050006000605060609--