From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63672 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Vedran_Mileti=C4=87?= Newsgroups: gmane.comp.tex.context Subject: Re: Ugly bug with TikZ in recent ConTeXt MKIV Date: Thu, 18 Nov 2010 17:56:17 +0100 Message-ID: References: <4CE4E853.8020205@wxs.nl> <4CE4F6C1.3060203@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0741475149==" X-Trace: dough.gmane.org 1290099422 23421 80.91.229.12 (18 Nov 2010 16:57:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 16:57:02 +0000 (UTC) Cc: Mojca Miklavec To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 18 17:56:58 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJ7n7-000884-Mp for gctc-ntg-context-518@m.gmane.org; Thu, 18 Nov 2010 17:56:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42208CA851; Thu, 18 Nov 2010 17:56:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xlA-X9hD7tyU; Thu, 18 Nov 2010 17:56:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 320FFCA852; Thu, 18 Nov 2010 17:56:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5BF5DCA852 for ; Thu, 18 Nov 2010 17:56:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1WApVyOVXRqO for ; Thu, 18 Nov 2010 17:56:39 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id C7685CA851 for ; Thu, 18 Nov 2010 17:56:39 +0100 (CET) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAIGuc2F020224 for ; Thu, 18 Nov 2010 17:56:39 +0100 Original-Received: by wwi18 with SMTP id 18so437757wwi.2 for ; Thu, 18 Nov 2010 08:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=yX+S0hvS1/JQt47E1b1rMLdBg64nkuDi1dLNRxcQK9M=; b=xi1SD4f456oyz0a8vpLB4/GAD6SgtyWsx0b0eanE3tUmjjqnj9ksg1mgb7HOB4amPg DMt83z7BTvWsLGJg09N0yMuBOm0uuSuJ73hjPP8AQQ5yiagYYYnsBMc4vpUPLdC5KfP5 vaYbnm6sRqc/vj5yrjkIEDdawHWYgFQcit0nA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=tDsqCa5hqLX7vzNxmQPa0E3uPOXKnGtgKD3qACMBPfYko2uJtQ6Zkr1ZYOV89F1pqZ q2w7EwsunWvwrsasm1b05SOkyHBb8HvR7e7OTnQ01Veykg15ePyzHggO+H6qsqyZ1mje syPTDoUI3Xg/gRluCtBT1LCT45sMDCd4ZRjcI= Original-Received: by 10.227.154.143 with SMTP id o15mr946463wbw.8.1290099398417; Thu, 18 Nov 2010 08:56:38 -0800 (PST) Original-Received: by 10.227.136.200 with HTTP; Thu, 18 Nov 2010 08:56:17 -0800 (PST) In-Reply-To: <4CE4F6C1.3060203@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; 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: 0BDwEUC8z - 19761e988bb6 - 20101118 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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:63672 Archived-At: --===============0741475149== Content-Type: multipart/alternative; boundary=001636832f085e1f9c049556acb3 --001636832f085e1f9c049556acb3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2010/11/18 Hans Hagen > After some tracing and hard thinking Taco and I found interesting spaces > showing up in the output that result from a kludge in tikz: > > Normally one will use \ignorespaces to catch spurious spaces but tikz > invokes \nullfont assuming that its fontdimen 2 is zero. But, in context = it > no longer is (prelude to delayed font loading). > > You can put this in cont-new.mkiv as a temporary hack > > \let\normalnullfont\nullfont > > \def\nullfont > {\fontdimen1\normalnullfont\zeropoint > \fontdimen2\normalnullfont\zeropoint > \fontdimen3\normalnullfont\zeropoint > \fontdimen4\normalnullfont\zeropoint > \fontdimen5\normalnullfont\zeropoint > \fontdimen6\normalnullfont\zeropoint > \fontdimen7\normalnullfont\zeropoint > \normalnullfont} > > Perhaps this should be forwared to Christian Feuersaenger. He is very open to bug reports and will probably be willing to fix it in some way in TikZ. Regards, --=20 Vedran Mileti=C4=87 --001636832f085e1f9c049556acb3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2010/11/18 Hans Hagen <pragma@wxs.nl>
After some tracing and hard thinking Taco and I found interesting spaces sh= owing up in the output that result from a kludge in tikz:

Normally one will use \ignorespaces to catch spurious spaces but tikz invok= es \nullfont assuming that its fontdimen 2 is zero. But, in context it no l= onger is (prelude to delayed font loading).

You can put this in cont-new.mkiv as a temporary hack

\let\normalnullfont\nullfont

\def\nullfont
=C2=A0{\fontdimen1\normalnullfont\zeropoint
=C2=A0 \fontdimen2\normalnullfont\zeropoint
=C2=A0 \fontdimen3\normalnullfont\zeropoint
=C2=A0 \fontdimen4\normalnullfont\zeropoint
=C2=A0 \fontdimen5\normalnullfont\zeropoint
=C2=A0 \fontdimen6\normalnullfont\zeropoint
=C2=A0 \fontdimen7\normalnullfont\zeropoint
=C2=A0 \normalnullfont}


P= erhaps this should be forwared to Christian Feuersaenger. He is very open t= o bug reports and will probably be willing to fix it in some way in TikZ.

Regards,

--
Vedran Mileti=C4=87
--001636832f085e1f9c049556acb3-- --===============0741475149== 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 ___________________________________________________________________________________ --===============0741475149==--