From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19143 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 14:41:40 +0100 Message-ID: <423ADA94.5030208@gmx.de> References: <4237EF69.8090306@gmx.de> <4239EF75.9050004@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000305080608020102030008" X-Trace: sea.gmane.org 1111153237 18553 80.91.229.2 (18 Mar 2005 13:40:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2005 13:40:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 18 14:40:35 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 1DCHi0-0005vX-10 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Mar 2005 14:40:13 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2AE3C127BC; Fri, 18 Mar 2005 14:41:51 +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 22434-03; Fri, 18 Mar 2005 14:41:46 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B917127C0; Fri, 18 Mar 2005 14:41:46 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C51E5127C0 for ; Fri, 18 Mar 2005 14:41:44 +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 22554-01 for ; Fri, 18 Mar 2005 14:41:43 +0100 (CET) Original-Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id C0886127BC for ; Fri, 18 Mar 2005 14:41:43 +0100 (CET) Original-Received: (qmail invoked by alias); 18 Mar 2005 13:41:42 -0000 Original-Received: from p54A23FC6.dip.t-dialin.net (EHLO [192.168.1.33]) [84.162.63.198] by mail.gmx.net (mp027) with SMTP; 18 Mar 2005 14:41:42 +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-Newsgroups: gmane.comp.tex.context Original-To: mailing list for ConTeXt users In-Reply-To: <4239EF75.9050004@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:19143 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19143 This is a multi-part message in MIME format. --------------000305080608020102030008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hi Hans, thanks for the information. I changed my test document accordingly and=20 deleted obsolete parts from the typescript. When I use the "builtInPostscript" or the "reencodedPostscript" as the=20 sole body font then the document is typeset correctly. Yet, if I try to=20 switch the family for example to the reencodedPostscript then the text=20 that follows after the switch does not appear in the created PDF document= . Do you have an idea? --Stefan \enableregime[il1] \setupencoding[default=3Dtexnansi] \setupoutput[pdftex] \pdfoptionpdfminorversion 4 \usetypescriptfile[smallpdf.tex] \definetypeface [builtInPostscript] [rm] [serif] [times] [default]=20 [encoding=3Dec] \definetypeface [builtInPostscript] [ss] [sans] [helvetica] [default]=20 [encoding=3Dec] \definetypeface [builtInPostscript] [tt] [mono] [courier] [default]=20 [encoding=3Dec] %\definetypeface [builtInPostscript] [mm] [math] [times] [default] \usetypescript[reencode][texnansi][texnansi] \definetypeface [reencodedPostscript] [rm] [serif] [times] [default]=20 [encoding=3Dtexnansi] \definetypeface [reencodedPostscript] [ss] [sans] [helvetica] [default]=20 [encoding=3Dtexnansi] \definetypeface [reencodedPostscript] [tt] [mono] [courier] [default]=20 [encoding=3Dtexnansi] %\definetypeface [reencodedPostscript] [mm] [math] [times] [default] \setupbodyfont[builtInPostscript,sans,15pt] \mainlanguage[de] \setupheadertexts[] \def\Show{This is a test. 45\char176 \quotedblbase =E4=F6=FC=DF=C4=D6=DC\= quotedblleft} \def\ShowVariants{\Show\par{\bf\Show}\par{\it\Show}\par{\bi\Show}\par} \starttext\pdfmapfile{+smallpdf.map} {\ss Helvetica\par\ShowVariants} {\rm Times-Roman\par\ShowVariants} {\tt Courier\par\ShowVariants} \reencodedPostscript {\ss Helvetica\par\ShowVariants} {\rm Times-Roman\par\ShowVariants} {\tt Courier\par\ShowVariants} \stoptext --------------000305080608020102030008 Content-Type: application/x-tex; name="smallpdf.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="smallpdf.tex" % Defines font synonymes for the fonts that are used for the postscript family. % These fonts are based on raw fonts that are encoded in their default encoding. % These font synonymes must not be the final ones because they may be mapped % again by the reencode typescript. \starttypescript [sans] [helvetica] [texnansi,ec,8r] \definefontsynonym [Helvetica] [\typefaceencoding-phvr8a] [encoding=\typefaceencoding] \definefontsynonym [Helvetica-Bold] [\typefaceencoding-phvb8a] [encoding=\typefaceencoding] \definefontsynonym [Helvetica-BoldOblique] [\typefaceencoding-phvbo8a][encoding=\typefaceencoding] \definefontsynonym [Helvetica-Oblique] [\typefaceencoding-phvro8a][encoding=\typefaceencoding] \stoptypescript \starttypescript [serif] [times] [texnansi,ec,8r] \definefontsynonym [Times-Roman] [\typefaceencoding-ptmr8a] [encoding=\typefaceencoding] \definefontsynonym [Times-Bold] [\typefaceencoding-ptmb8a] [encoding=\typefaceencoding] \definefontsynonym [Times-BoldItalic] [\typefaceencoding-ptmbi8a][encoding=\typefaceencoding] \definefontsynonym [Times-Italic] [\typefaceencoding-ptmri8a][encoding=\typefaceencoding] \stoptypescript \starttypescript [mono] [courier] [texnansi,ec,8r] \definefontsynonym [Courier] [\typefaceencoding-pcrr8a] [encoding=\typefaceencoding] \definefontsynonym [Courier-Bold] [\typefaceencoding-pcrb8a] [encoding=\typefaceencoding] \definefontsynonym [Courier-BoldOblique] [\typefaceencoding-pcrbo8a][encoding=\typefaceencoding] \definefontsynonym [Courier-Oblique] [\typefaceencoding-pcrro8a][encoding=\typefaceencoding] \stoptypescript % The reencode typescript maps the font synonymes that are used for the postscript % family to fonts that are based on reencoded raw fonts. \starttypescript [reencode] [texnansi,ec,8r] [texnansi,ec,8r] \definefontsynonym [\typescripttwo-phvr8a] [\typescripttwo-\typescriptthree-phvr8a] [encoding=\typescripttwo] \definefontsynonym [\typescripttwo-phvb8a] [\typescripttwo-\typescriptthree-phvb8a] [encoding=\typescripttwo] \definefontsynonym [\typescripttwo-phvbo8a][\typescripttwo-\typescriptthree-phvbo8a][encoding=\typescripttwo] \definefontsynonym [\typescripttwo-phvro8a][\typescripttwo-\typescriptthree-phvro8a][encoding=\typescripttwo] \definefontsynonym [\typescripttwo-ptmr8a] [\typescripttwo-\typescriptthree-ptmr8a] [encoding=\typescripttwo] \definefontsynonym [\typescripttwo-ptmb8a] [\typescripttwo-\typescriptthree-ptmb8a] [encoding=\typescripttwo] \definefontsynonym [\typescripttwo-ptmbi8a][\typescripttwo-\typescriptthree-ptmbi8a][encoding=\typescripttwo] \definefontsynonym [\typescripttwo-ptmri8a][\typescripttwo-\typescriptthree-ptmri8a][encoding=\typescripttwo] \definefontsynonym [\typescripttwo-pcrr8a] [\typescripttwo-\typescriptthree-pcrr8a] [encoding=\typescripttwo] \definefontsynonym [\typescripttwo-pcrb8a] [\typescripttwo-\typescriptthree-pcrb8a] [encoding=\typescripttwo] \definefontsynonym [\typescripttwo-pcrbo8a][\typescripttwo-\typescriptthree-pcrbo8a][encoding=\typescripttwo] \definefontsynonym [\typescripttwo-pcrro8a][\typescripttwo-\typescriptthree-pcrro8a][encoding=\typescripttwo] \stoptypescript --------------000305080608020102030008 Content-Type: text/plain; name="smallpdf.map" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="smallpdf.map" raw-phvr8a Helvetica raw-phvb8a Helvetica-Bold raw-phvbo8a Helvetica-BoldOblique raw-phvro8a Helvetica-Oblique raw-ptmr8a Times-Roman raw-ptmb8a Times-Bold raw-ptmbi8a Times-BoldItalic raw-ptmri8a Times-Italic raw-pcrr8a Courier raw-pcrb8a Courier-Bold raw-pcrbo8a Courier-BoldOblique raw-pcrro8a Courier-Oblique raw-psyr Symbol raw-pzdr ZapfDingbats texnansi-raw-phvb8a Helvetica-Bold " TeXnANSIEncoding ReEncodeFont "