From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76633 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: =?utf-8?q?=E2=80=9Cbodyfont_=25s_is_defined_=28can_?= =?utf-8?q?better_be_done_global=29=E2=80=9D?= Date: Sun, 3 Jun 2012 22:20:12 +0200 Message-ID: <20120603202012.GA15076@phlegethon> References: <20120602181346.GC22936@phlegethon> <20120603100120.GD22936@phlegethon> <20120603142723.GE22936@phlegethon> <4FCB9EA2.7040904@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1454382277==" X-Trace: dough.gmane.org 1338754727 9616 80.91.229.3 (3 Jun 2012 20:18:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2012 20:18:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 03 22:18:46 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SbHG6-0002kx-DN for gctc-ntg-context-518@m.gmane.org; Sun, 03 Jun 2012 22:18:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C9FA101DD; Sun, 3 Jun 2012 22:18:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WOrlsTI072-C; Sun, 3 Jun 2012 22:18:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9339B101DF; Sun, 3 Jun 2012 22:18:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6EA46101DF for ; Sun, 3 Jun 2012 22:18:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RmSYcpIXE-tl for ; Sun, 3 Jun 2012 22:18:37 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 22D55101DD for ; Sun, 3 Jun 2012 22:18:36 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q53KIZZA025080 for ; Sun, 3 Jun 2012 22:18:36 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id q53KIZGB011566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 3 Jun 2012 22:18:35 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id q53KIZ8K032341 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 3 Jun 2012 22:18:35 +0200 Original-Received: from localhost (dslb-188-104-130-066.pools.arcor-ip.net [188.104.130.66]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id q53KIXFL003052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 3 Jun 2012 22:18:34 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <4FCB9EA2.7040904@wxs.nl> X-Operating-System: Linux phlegethon 3.3.7-1-ARCH X-License: "CC-BY-SA 3.0" User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.100.212; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04HhUiznx - 2e62a83f7935 - 20120603 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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 Xref: news.gmane.org gmane.comp.tex.context:76633 Archived-At: --===============1454382277== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hans! =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > On 3-6-2012 16:27, Philipp Gesang wrote: >=20 > >That=E2=80=99s odd. But this way it seems to do the right thing as > >performance improves drastically (as much as 30%). >=20 > a bodyfont is a collection of related fonts / sizes and when such a > set is defined first inside a group you potentially end up with many > (redundant) definitions .. this is why a bodyfont environment has to > be defined at the outer level (as wolfgang pointed out) >=20 > \tracefontdefinitions Nice forensics tool. With this I can see plainly that, as reported by Wolfgang, \definebodyfontenvironment[42.0pt] results in the dimension=E2=80=99s decimal place to be stripped before font definition. Which makes me wonder whether \switchtobodyfont should do a \normalizebodyfontsize on the #specification before triggering the switch? So that 42.0pt be interpreted as 42pt? Now that I=E2=80=99m aware of it I can as well build that into my macros either ... Regards Philipp >=20 > sometimes gives some insight in efficiency >=20 > Hans >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to= the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAk/LxvwACgkQ02lYlJYWs9LmTwCdGqbCRjgqHDLRFhk4lnr9ynFV 3BUAn34ks1gcQlnqHh6qU+Xg2x8yNcdD =rywV -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi-- --===============1454382277== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1454382277==--