From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47542 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: strange fontswitching error Date: Thu, 19 Feb 2009 22:36:00 +0100 Message-ID: <499DD0C0.1080808@wxs.nl> References: <326847810902190527v1308f85ax3c3b3a3adcf62821@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1235079423 24681 80.91.229.12 (19 Feb 2009 21:37:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2009 21:37:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 19 22:38:18 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LaGb3-00069O-Jo for gctc-ntg-context-518@m.gmane.org; Thu, 19 Feb 2009 22:38:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 726F01FB30; Thu, 19 Feb 2009 22:36:54 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12166-01; Thu, 19 Feb 2009 22:36:14 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 699281FB64; Thu, 19 Feb 2009 22:36:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 05A7F1FB64 for ; Thu, 19 Feb 2009 22:36:13 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06925-02 for ; Thu, 19 Feb 2009 22:36:03 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id 0B97F1FB30 for ; Thu, 19 Feb 2009 22:36:03 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1JLa1Lq030090 for ; Thu, 19 Feb 2009 22:36:02 +0100 Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 12717-1840426 for ; Thu, 19 Feb 2009 22:36:01 +0100 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <326847810902190527v1308f85ax3c3b3a3adcf62821@mail.gmail.com> X-Originating-IP: 10.100.1.107 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 182621242 - 6fe0247cd1d8 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47542 Archived-At: Alan Stone wrote: > Hi, > = > BF =3D body font > HF =3D head font > = > A =3D arial > T =3D times new roman > V =3D verdana > = > OT =3D 12 =3D 12pt > OF =3D 14 =3D 14pt > = > See comments in fontswitch.tex > = > In attachment... > = > - fontswitch.tex: minimal example > - tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts > - fontswitch.log for BFT14 + HFV14 -> font error ( same with BFA14 + HFV1= 4 ) > - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with BF= A14 > + HFV14 ) > = > After testing different font(switching) combinations... > = > - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated p= df > fine > - BFV14 + HFV14 compiles and prints the generated pdf fine > - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf > fine > = > Qu=E9 passa ? you use undefined typefaces; in mkii we default to an empty fontclass = which in turn will trigger default fallbacks (i.e. the main bodyfont has = no fontclass) while in mkiv we default to the 'modern' fontclass; i'm = still not sure if it will be kept this way but if so, i'll make a = fallback again (this time to a default fontclass) % \usetypescriptfile[tps_arial] \usetypescript[arial] \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman] \usetypescriptfile[tps_verdana] \usetypescript[verdana] \def\myFontSizeOT{12pt} \def\myFontSizeOF{19pt} % \setupbodyfont[arial, \myFontSizeOT] % \setupbodyfont[timesnewroman,\myFontSizeOT] \setupbodyfont[verdana, \myFontSizeOT] % \setupbodyfont[arial, \myFontSizeOF] % \setupbodyfont[timesnewroman,\myFontSizeOF] % \setupbodyfont[verdana, \myFontSizeOF] % \setuphead[chapter][style=3D{\switchtobodyfont[arial,\myFontSizeOT]}] % = \setuphead[chapter][style=3D{\switchtobodyfont[timesnewroman,\myFontSizeOT]= }] % \setuphead[chapter][style=3D{\switchtobodyfont[verdana,\myFontSizeOT]}] \setuphead[chapter][style=3D{\switchtobodyfont[arial,\myFontSizeOF]}] % = \setuphead[chapter][style=3D{\switchtobodyfont[timesnewroman,\myFontSizeOF]= }] % \setuphead[chapter][style=3D{\switchtobodyfont[verdana,\myFontSizeOF]}] \starttext \chapter{First Chapter} \input knuth ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________