From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47561 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: strange fontswitching error Date: Fri, 20 Feb 2009 15:42:38 +0100 Message-ID: <326847810902200642k79f7b152o4f9db5a27bd9d17a@mail.gmail.com> References: <326847810902190527v1308f85ax3c3b3a3adcf62821@mail.gmail.com> <499DD0C0.1080808@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1234714292==" X-Trace: ger.gmane.org 1235141086 26983 80.91.229.12 (20 Feb 2009 14:44:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2009 14:44:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 20 15:45:59 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 1LaWdb-0007zv-Lr for gctc-ntg-context-518@m.gmane.org; Fri, 20 Feb 2009 15:45:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 895C11FB29; Fri, 20 Feb 2009 15:44:37 +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 17017-03-14; Fri, 20 Feb 2009 15:43:24 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E4E41FB30; Fri, 20 Feb 2009 15:43:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6839D1FB29 for ; Fri, 20 Feb 2009 15:43:18 +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 16715-03 for ; Fri, 20 Feb 2009 15:42:41 +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 388A11FB30 for ; Fri, 20 Feb 2009 15:42:40 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1KEgdKj018224 for ; Fri, 20 Feb 2009 15:42:39 +0100 Original-Received: by ug-out-1314.google.com with SMTP id m2so84957uge.1 for ; Fri, 20 Feb 2009 06:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Vg+t9/LDPw7W2AmpvgLfiqZd+5c2coF/scUqXLHDqFE=; b=mqEUn75Kr4zoKrZrL/Unuapp6yepfEXMw9nHQ4U2TaozkKLblfb1PfX3mUDH5rz0fr kpy168F9ZvUiZnI+exkX1F7AYVCVqUUijB+11Mq94xfGEN1DQ5bp55JJJGqE0ZhMXSNv muoFBzh8TrlNV1XSBWSIAKPaI0kDo2+Z8/FNc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=tTEyaUQWWeR/i/QwTrKUIs9vEIEQ1BPLCwbZo61LO+gQvebZYqr7t4Ej39lXv6cfx/ oduDlIaIitOhwf/Hs6GUvo88MXkIy+tD0V3/Xp6kf4cqjN5G3vuewmpMVnCB6tqCZMRl 8Sy8QqSbg+HAmMM+h6svIanPmQMRu5EMAb6ws= Original-Received: by 10.210.90.20 with SMTP id n20mr676966ebb.162.1235140959002; Fri, 20 Feb 2009 06:42:39 -0800 (PST) In-Reply-To: <499DD0C0.1080808@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=66.249.92.175; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 183003385 - 7530475dd443 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:47561 Archived-At: --===============1234714292== Content-Type: multipart/alternative; boundary=0015174c3f941bdfda04635aaa4f --0015174c3f941bdfda04635aaa4f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Feb 19, 2009 at 10:36 PM, Hans Hagen wrote: > 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 + HFV= 14 >> ) >> - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with >> BFA14 >> + HFV14 ) >> >> After testing different font(switching) combinations... >> >> - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated >> pdf >> fine >> - BFV14 + HFV14 compiles and prints the generated pdf fine >> - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated p= df >> fine >> >> Qu=E9 passa ? >> > > you use undefined typefaces; in mkii we default to an empty fontclass whi= ch > 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 (t= his > time to a default fontclass) At first I didn't understand a thing about your answer, however after digging a bit further and finding out that when replacing 14pt with 14.4 pt ( re: \showbodyfontenvironment table ) it works again. Guess I now understand what "fallbacks"means. :O) For future reference... http://en.wikipedia.org/wiki/Typeface http://en.wikipedia.org/wiki/Fallback_font Alan > % \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,\myFontSizeO= T]}] > % \setuphead[chapter][style=3D{\switchtobodyfont[verdana,\myFontSizeOT]}] > > \setuphead[chapter][style=3D{\switchtobodyfont[arial,\myFontSizeOF]}] > % > \setuphead[chapter][style=3D{\switchtobodyfont[timesnewroman,\myFontSizeO= F]}] > % \setuphead[chapter][style=3D{\switchtobodyfont[verdana,\myFontSizeOF]}] > > \starttext > > \chapter{First Chapter} > > \input knuth > --0015174c3f941bdfda04635aaa4f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Thu, Feb 19, 2009 at 10:36 PM, Hans Hagen <pragma@wxs.nl> wrote:
Alan Stone wrote:
Hi,

BF =3D body font
H= F =3D head font

A =3D arial
T =3D times new roman
V =3D verdan= a

OT =3D 12 =3D 12pt
OF =3D 14 =3D 14pt

See comments in fontswitch.= tex

In attachment...

- fontswitch.tex: minimal example
- t= ps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts
- font= switch.log for BFT14 + HFV14 -> font error ( same with BFA14 + HFV14 ) - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with BFA1= 4
+ HFV14 )

After testing different font(switching) combinations.= ..

- BFA14 or BFT14 + HFVx with x not 14pt compile and print the gen= erated pdf
fine
- BFV14 + HFV14 compiles and prints the generated pdf fine
- BFA= 12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf
fi= ne

Qu=E9 passa ?

you use undefined typefac= es; in mkii we default to an empty fontclass which in turn will trigger def= ault fallbacks (i.e. the main bodyfont has no fontclass) while in mkiv we d= efault 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)
 
At first I didn't understand a thing about your answer, however af= ter digging a bit further and finding out that when replacing 14pt with 14.= 4 pt ( re: \showbodyfontenvironment table ) it works again. Guess I now und= erstand what "fallbacks"means. :O)
 
For future reference...
 
Alan
 
 
% \usetypescriptfile[tps_arial] =         \usetypescript[arial]
\usetypescriptfile[tps= _timesnewroman] \usetypescript[timesnewroman]
\usetypescriptfile[tps_verdana]       \usetypescript[verdana= ]

\def\myFontSizeOT{12pt}
\def\myFontSizeOF{19pt}

% \setup= bodyfont[arial,        \myFontSizeOT]
% \setupbodyfo= nt[timesnewroman,\myFontSizeOT]
\setupbodyfont[verdana,      \myFontSizeOT]

% \setupb= odyfont[arial,        \myFontSizeOF]
% \setupbodyfon= t[timesnewroman,\myFontSizeOF]
% \setupbodyfont[verdana,     &= nbsp;\myFontSizeOF]

% \setuphead[chapter][style=3D{\switchtobodyfont= [arial,\myFontSizeOT]}]
% \setuphead[chapter][style=3D{\switchtobodyfont[timesnewroman,\myFontSizeO= T]}]
% \setuphead[chapter][style=3D{\switchtobodyfont[verdana,\myFontSiz= eOT]}]

\setuphead[chapter][style=3D{\switchtobodyfont[arial,\myFontS= izeOF]}]
% \setuphead[chapter][style=3D{\switchtobodyfont[timesnewroman,\myFontSizeO= F]}]
% \setuphead[chapter][style=3D{\switchtobodyfont[verdana,\myFontSiz= eOF]}]

\starttext

\chapter{First Chapter}

\input knuth=
--0015174c3f941bdfda04635aaa4f-- --===============1234714292== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1234714292==--