From batik-users-return-14799kimberlythompson@example.net Sun Nov 02 14:37:38 2008 Return-Path: <batik-users-return-14799kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 91236 invoked from network); 2 Nov 2008 14:37:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Nov 2008 14:37:38 -0000 Received: (qmail 38614 invoked by uid 500); 2 Nov 2008 14:37:44 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 38603 invoked by uid 500); 2 Nov 2008 14:37:44 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 38592 invoked by uid 99); 2 Nov 2008 14:37:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 06:37:44 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO moutng.kundenserver.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 14:36:28 +0000 Received: from hago1 (p5B2FDF95.dip.t-dialin.net [83.161.120.155]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1Kwe4i3qod-0001GC; Sun, 02 Nov 2008 15:37:09 +0100 Date: Sun, 02 Nov 2008 15:37:09 +0100 To: kimberlythompson@example.net Subject: 96dpi or 300dpi - no difference From: "Hago Ziegler" <kimberlythompson@example.net> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: <op.ujzxj7u2a8nfnl@hago1> User-Agent: Opera Mail/9.62 (Win32) X-Provags-ID: V01U2FsdGVkX198YDsskGhbiLlUvWz99or/GNgcxY8Ww50PpYZ BP0c2IfQXDymp8YWCfbtfR/NxveyHpyp9A6geBb3QZixEpm/ez QSGSCx0R8fhMrScGRRyVQ== X-Virus-Checked: Checked by ClamAV on apache.org Hi, I want to rasterize a svg-file with 300 dpi. My command-line input looks like this: java -jar batik-rasterizer.jar -dpi 300 -d M:/hinter M:/hint/*.svg But the option -dpi 300 doesn't make any difference. The resulting png is exactly the same when I put --dpi 100 or -dpi 96. The same file-size, no difference. What am I doing wrong? Regards, Hago --------------------------------------------------------------------- To unsubscribe, e-mail: kimberlythompson@example.net For additional commands, e-mail: kimberlythompson@example.net From batik-users-return-14800kimberlythompson@example.net Sun Nov 02 15:42:51 2008 Return-Path: <batik-users-return-14800kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 64497 invoked from network); 2 Nov 2008 15:42:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Nov 2008 15:42:51 -0000 Received: (qmail 62113 invoked by uid 500); 2 Nov 2008 15:42:56 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 62101 invoked by uid 500); 2 Nov 2008 15:42:56 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 62090 invoked by uid 99); 2 Nov 2008 15:42:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 07:42:56 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kimberlythompson@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ey-out-2122.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 15:41:41 +0000 Received: by ey-out-2122.google.com with SMTP id 25so667921eya.27 for <kimberlythompson@example.net>; Sun, 02 Nov 2008 07:41:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=gh41meYuQwe1Plw0CSy8iwP8+KHXxI93PaLoVxcVngU=; b=du0KhE0R/YoAo7nsz4yxaN2VS5/ScyC7d+yOyLCI3ReTJlVyZxsTqLClUxfl4LBadk dvu55Hz0ze5HbZ6Xbxxlpg/sCqEdlsjVCyhXQbxn07hKltO91jcncrgTtxqzUVaJuiBB MwpwV4fYdd6RNLToPmRuJjucn5gz66ZoaB5Ds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=qd8ZcS3ofv1c5K+XZopYeR759WhV1RpUdoYdUs2Ra2r+rskD6wVADshNn8xJbkGZjU U5GP2dNGfBfzjpZyfTF/tqTYQ6hikPu0ARVIkhiD+j3/Nu+pciDbQuAJLa+jBwmc1mNR uTrjR3AZnQS2bHEu4ZBKn5b+a1GgCFo0eIzZI= Received: by 83.161.120.155 with SMTP id y10mr7686122eby.98.1225640511940; Sun, 02 Nov 2008 07:41:51 -0800 (PST) Received: by 83.161.120.155 with HTTP; Sun, 2 Nov 2008 07:41:51 -0800 (PST) Message-ID: <kimberlythompson@example.net> Date: Sun, 2 Nov 2008 16:41:51 +0100 From: "=?ISO-8859-1?Q?Lars_Eirik_R=F8nning?=" <kimberlythompson@example.net> To: kimberlythompson@example.net Subject: SVG and newline MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_51923_22321156.1225640511930" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_51923_22321156.1225640511930 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi.I need to add newline to my svg. all text will be dynamically generated. I have tried to add a textnode which only contains "" as well as another one with "\n". Any easy fix for this? Thanks. ------=_Part_51923_22321156.1225640511930 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi.<div>I need to add newline to my svg.</div><div>all text will be dynamically generated.</div><div>I have tried to add a textnode which only contains &quot;&quot; as well as another one with &quot;\n&quot;.</div><div>Any easy fix for this?</div> <div><br></div><div>Thanks.</div> ------=_Part_51923_22321156.1225640511930-- From batik-users-return-14801kimberlythompson@example.net Sun Nov 02 18:51:00 2008 Return-Path: <batik-users-return-14801kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 37849 invoked from network); 2 Nov 2008 18:51:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Nov 2008 18:51:00 -0000 Received: (qmail 62666 invoked by uid 500); 2 Nov 2008 18:51:06 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 62654 invoked by uid 500); 2 Nov 2008 18:51:06 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 62642 invoked by uid 99); 2 Nov 2008 18:51:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 10:51:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mail.iirc.at) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 18:49:49 +0000 Received: from localhost.localdomain (localhost [83.161.120.155]) by mail.iirc.at (Postfix) with ESMTP id 0EDA733BE38 for <kimberlythompson@example.net>; Sun, 2 Nov 2008 19:49:58 +0100 (CET) Received: from localhost (localhost [83.161.120.155]) by mail.iirc.at (Postfix) with SMTP id 9465F33BABF for <kimberlythompson@example.net>; Sun, 2 Nov 2008 19:49:57 +0100 (CET) Received: from localhost (localhost [83.161.120.155]) by mail.iirc.at (Postfix) with ESMTP id 0F0AF33BE55 for <kimberlythompson@example.net>; Sun, 2 Nov 2008 19:49:57 +0100 (CET) Received: from [83.161.120.155] (77-57-127-84.dclient.hispeed.ch [83.161.120.155]) by mail.iirc.at (Postfix) with ESMTP id 7484233BABF for <kimberlythompson@example.net>; Sun, 2 Nov 2008 19:49:56 +0100 (CET) Message-ID: <kimberlythompson@example.net> Date: Sun, 02 Nov 2008 19:49:56 +0100 From: Andreas Neumann <kimberlythompson@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20080925) MIME-Version: 1.0 To: kimberlythompson@example.net Subject: Re: SVG and newline References: <kimberlythompson@example.net> In-Reply-To: <kimberlythompson@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by iirc.at Virus scanner X-Virus-Checked: Checked by ClamAV on apache.org Hi Lars, \n is ignored in SVG. In SVG 1.1 you can use <tspan dy="1.2em"/> for this purpose. Here is an example: <text x="10" y="50">Line 1 <tspan x="10" dy="1.2em">Line 2</tspan> <tspan x="10" dy="1.2em">Line 3</tspan> <tspan x="10" dy="1.2em">Line 4</tspan> </text> alternatively you can use <textArea/> for this purpose (from SVG 1.2): <textArea x="10" y="50" width="200" height="300"> Line 1<tbreak/> Line 2<tbreak/> Line 3<tbreak/> Line4 </textArea> or let the browser automatically break lines when the width of the textarea is fully used up. I think Batik doesn't yet support the <textArea/> element, but implemented an earlier, more powerful version of text flowing in arbitrary shapes. <textArea/> is already supported in Opera >9.5x Andreas Lars Eirik Rønning wrote: > Hi. > I need to add newline to my svg. > all text will be dynamically generated. > I have tried to add a textnode which only contains "" as well as > another one with "\n". > Any easy fix for this? > > Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: kimberlythompson@example.net For additional commands, e-mail: kimberlythompson@example.net From batik-users-return-14802kimberlythompson@example.net Sun Nov 02 19:55:23 2008 Return-Path: <batik-users-return-14802kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 57171 invoked from network); 2 Nov 2008 19:55:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Nov 2008 19:55:23 -0000 Received: (qmail 8102 invoked by uid 500); 2 Nov 2008 19:55:28 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 8093 invoked by uid 500); 2 Nov 2008 19:55:28 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 8082 invoked by uid 99); 2 Nov 2008 19:55:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 11:55:28 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kimberlythompson@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 19:54:13 +0000 Received: by nf-out-0910.google.com with SMTP id d3so850227nfc.21 for <kimberlythompson@example.net>; Sun, 02 Nov 2008 11:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=VqB5eu/TwJlGoyPonJdrkr3SAUh+1DWENePoh6RIYt0=; b=c5uFO2GdBwM6U7Qxrcv5hs3AGSadV5MMtzrrKZZ6mRwEy8nK4a416QKbOmiLdZHyjl cWVSwpPPJl2mUP/VCyahhK5bJkl50d4t+fM0D//HcCsxUpjnMrFnFFbg22zovuJfzexk 5P/mOITQ1dIidi9w8iyyXXKYldGIHAf0XBDfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=lB1cWXkTqeUlM0logliNTnGbXhTTRl7rJL7tK5Qu6gwF3udjFkAmUeBM95L58Zqv40 wYKGS8qJij/wrwo8tbAVcRfxK+xpwdJwAOyhT5mII/1+DNGNXEj1H6tsc+1IJ1nI9zHj aUH7PTeUfsdjj03gH2ag7ayC+PCYx0zf3vc+g= Received: by 83.161.120.155 with SMTP id m4mr12145673ebb.107.1225655681227; Sun, 02 Nov 2008 11:54:41 -0800 (PST) Received: by 83.161.120.155 with HTTP; Sun, 2 Nov 2008 11:54:41 -0800 (PST) Message-ID: <kimberlythompson@example.net> Date: Sun, 2 Nov 2008 20:54:41 +0100 From: "=?ISO-8859-1?Q?Lars_Eirik_R=F8nning?=" <kimberlythompson@example.net> To: kimberlythompson@example.net Subject: Re: SVG and newline In-Reply-To: <kimberlythompson@example.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_53107_24962275.1225655681220" References: <kimberlythompson@example.net> <kimberlythompson@example.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_53107_24962275.1225655681220 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline thanks.Thats pretty much what i already do now;) On Sun, Nov 2, 2008 at 7:49 PM, Andreas Neumann <kimberlythompson@example.net> wrote= : > Hi Lars, > > \n is ignored in SVG. > > In SVG 1.1 you can use <tspan dy=3D"1.2em"/> for this purpose. > > Here is an example: > > <text x=3D"10" y=3D"50">Line 1 > <tspan x=3D"10" dy=3D"1.2em">Line 2</tspan> > <tspan x=3D"10" dy=3D"1.2em">Line 3</tspan> > <tspan x=3D"10" dy=3D"1.2em">Line 4</tspan> > </text> > > alternatively you can use <textArea/> for this purpose (from SVG 1.2): > > <textArea x=3D"10" y=3D"50" width=3D"200" height=3D"300"> > Line 1<tbreak/> > Line 2<tbreak/> > Line 3<tbreak/> > Line4 > </textArea> > > or let the browser automatically break lines when the width of the textar= ea > is fully used up. > > I think Batik doesn't yet support the <textArea/> element, but implemente= d > an earlier, more powerful version of text flowing in arbitrary shapes. > <textArea/> is already supported in Opera >9.5x > > Andreas > > > Lars Eirik R=F8nning wrote: > >> Hi. >> I need to add newline to my svg. >> all text will be dynamically generated. >> I have tried to add a textnode which only contains "" as well as another >> one with "\n". >> Any easy fix for this? >> >> Thanks. >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: kimberlythompson@example.net > For additional commands, e-mail: kimberlythompson@example.net > > ------=_Part_53107_24962275.1225655681220 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline thanks.<div>Thats pretty much what i already do now;)<br><br><div class=3D"= gmail_quote">On Sun, Nov 2, 2008 at 7:49 PM, Andreas Neumann <span dir=3D"l= tr">&lt;<a href=3D"mailto:kimberlythompson@example.net">kimberlythompson@example.net</a>&gt;<= /span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;">Hi Lars,<br> <br> \n is ignored in SVG.<br> <br> In SVG 1.1 you can use &lt;tspan dy=3D&quot;1.2em&quot;/&gt; for this purpo= se.<br> <br> Here is an example:<br> <br> &lt;text x=3D&quot;10&quot; y=3D&quot;50&quot;&gt;Line 1<br> &lt;tspan x=3D&quot;10&quot; dy=3D&quot;1.2em&quot;&gt;Line 2&lt;/tspan&gt;= <br> &lt;tspan x=3D&quot;10&quot; dy=3D&quot;1.2em&quot;&gt;Line 3&lt;/tspan&gt;= <br> &lt;tspan x=3D&quot;10&quot; dy=3D&quot;1.2em&quot;&gt;Line 4&lt;/tspan&gt;= <br> &lt;/text&gt;<br> <br> alternatively you can use &lt;textArea/&gt; for this purpose (from SVG 1.2)= :<br> <br> &lt;textArea x=3D&quot;10&quot; y=3D&quot;50&quot; width=3D&quot;200&quot; = &nbsp;height=3D&quot;300&quot;&gt;<br> Line 1&lt;tbreak/&gt;<br> Line 2&lt;tbreak/&gt;<br> Line 3&lt;tbreak/&gt;<br> Line4<br> &lt;/textArea&gt;<br> <br> or let the browser automatically break lines when the width of the textarea= is fully used up.<br> <br> I think Batik doesn&#39;t yet support the &lt;textArea/&gt; element, but im= plemented an earlier, more powerful version of text flowing in arbitrary sh= apes. &lt;textArea/&gt; is already supported in Opera &gt;9.5x<br> <br> Andreas<div><div></div><div class=3D"Wj3C7c"><br> <br> Lars Eirik R=F8nning wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> Hi.<br> I need to add newline to my svg.<br> all text will be dynamically generated.<br> I have tried to add a textnode which only contains &quot;&quot; as well as = another one with &quot;\n&quot;.<br> Any easy fix for this?<br> <br> Thanks.<br> </blockquote> <br> <br></div></div> ---------------------------------------------------------------------<br> To unsubscribe, e-mail: <a href=3D"mailto:batik-users-unsubscribe@xmlgraphi= cs.apache.org" target=3D"_blank">kimberlythompson@example.net= .org</a><br> For additional commands, e-mail: <a href=3D"mailto:batik-users-help@xmlgrap= hics.apache.org" target=3D"_blank">kimberlythompson@example.net<= /a><br> <br> </blockquote></div><br></div> ------=_Part_53107_24962275.1225655681220-- From batik-users-return-14803kimberlythompson@example.net Sun Nov 02 22:09:13 2008 Return-Path: <batik-users-return-14803kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 14030 invoked from network); 2 Nov 2008 22:09:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Nov 2008 22:09:13 -0000 Received: (qmail 82757 invoked by uid 500); 2 Nov 2008 22:09:18 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 82742 invoked by uid 500); 2 Nov 2008 22:09:18 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 82731 invoked by uid 99); 2 Nov 2008 22:09:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 14:09:18 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kimberlythompson@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO qw-out-2122.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 22:07:59 +0000 Received: by qw-out-2122.google.com with SMTP id 5so897266qwi.27 for <kimberlythompson@example.net>; Sun, 02 Nov 2008 14:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=uLFlplIp8WcEPo1Omr/3g4gaWJQFC+8lSQbpDxgNDGQ=; b=bkdFq+68MMEWY6qvG1rGvMFGMc7K93RAj+gAbo5dC6B7VsB8FUGuHpD9PDukdJK8gC o3Tx+UgFDGm4KXW9vDkE3JTLuZPbf0OFI64tGjF6ILqUzGKIm6AhmcKez7iYTvL2AIjL z6vLuVLK82DMuDHAQc048hzCncNCVqsDNSQEc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DEvViExtQGfsE5s+d2/PelF/JztNcFQ9P8gXFQmXn8NE58orYGWeQyozzth4Ogn7AY P/v52skA4ZWA51P4DjXVEnp3pHsFglCac2FEZAcv0Hx6HBZ/hVKIDQsPVWp97z7GIKWW s2FWTG8Dc/Mt/C9E2ZkOnq1lylsrGPXo7GP7o= Received: by 83.161.120.155 with SMTP id r3mr2760200qah.267.1225663710298; Sun, 02 Nov 2008 14:08:30 -0800 (PST) Received: by 83.161.120.155 with HTTP; Sun, 2 Nov 2008 14:08:30 -0800 (PST) Message-ID: <kimberlythompson@example.net> Date: Sun, 2 Nov 2008 22:08:30 +0000 From: "=?ISO-8859-1?Q?Helder_Magalh=E3es?=" <kimberlythompson@example.net> To: kimberlythompson@example.net Subject: Re: 96dpi or 300dpi - no difference In-Reply-To: <op.ujzxj7u2a8nfnl@hago1> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <op.ujzxj7u2a8nfnl@hago1> X-Virus-Checked: Checked by ClamAV on apache.org > java -jar batik-rasterizer.jar -dpi 300 -d M:/hinter M:/hint/*.svg > > But the option -dpi 300 doesn't make any difference. > The resulting png is exactly the same when I put --dpi 100 or -dpi 96. Th= e > same file-size, no difference. > > What am I doing wrong? A quick search within the mailing lists [1] brought up a potentially related thread [2]. It seems that you may be using percentage document dimensions (such as width/height set to "100%") and not specifying the canvas dimension to the rasterizer (-w/-h rasterizer options [3]). Is this the case? ;-) By the way, if that wasn't the case (and if further searching doesn't help either), can you attach a reduced test case [4] which shows the symptom? Thanks. > Regards, Hago Hope this helps, Helder Magalh=E3es [1] http://xmlgraphics.apache.org/batik/mailing-lists.html [2] http://www.nabble.com/Svg-to-png-rasterizer-resolution---output-blurry-= to2306600.html#a2306600 [3] http://xmlgraphics.apache.org/batik/tools/rasterizer.html [4] http://webkit.org/quality/reduction.html --------------------------------------------------------------------- To unsubscribe, e-mail: kimberlythompson@example.net For additional commands, e-mail: kimberlythompson@example.net From batik-users-return-14804kimberlythompson@example.net Sun Nov 02 23:54:40 2008 Return-Path: <batik-users-return-14804kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 38654 invoked from network); 2 Nov 2008 23:54:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Nov 2008 23:54:40 -0000 Received: (qmail 42199 invoked by uid 500); 2 Nov 2008 23:54:45 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 42188 invoked by uid 500); 2 Nov 2008 23:54:45 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 42177 invoked by uid 99); 2 Nov 2008 23:54:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 15:54:45 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO moutng.kundenserver.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 23:53:28 +0000 Received: from hago1 (p5B2FF9BF.dip.t-dialin.net [83.161.120.155]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1KwmlF2dhm-0002x0; Mon, 03 Nov 2008 00:53:37 +0100 Date: Mon, 03 Nov 2008 00:53:38 +0100 To: kimberlythompson@example.net Subject: Re: 96dpi or 300dpi - no difference From: "Hago Ziegler" <kimberlythompson@example.net> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 References: <op.ujzxj7u2a8nfnl@hago1> <kimberlythompson@example.net> Content-Transfer-Encoding: 8bit Message-ID: <op.uj0nboq0a8nfnl@hago1> In-Reply-To: <kimberlythompson@example.net> User-Agent: Opera Mail/9.62 (Win32) X-Provags-ID: V01U2FsdGVkX1/m4imbKE5P+xKDw0bv793dpWbzNSGN5Pa8UeY bBMXOJmSJqgpj24yRH8PC+vTO50bcWZWVchkw6+cFC3uNWGx5n 1adqpODjbmeAJjLVou+Gg== X-Virus-Checked: Checked by ClamAV on apache.org Helder Magalhães schrieb: >> The resulting png is exactly the same when I put --dpi 100 or -dpi 96. > It seems that you may be using percentage document > dimensions (such as width/height set to "100%") and not specifying the > canvas dimension to the rasterizer (-w/-h rasterizer options [3]). Is > this the case? ;-) Inside the svg-file the size is defined in pixel values (744 x 700). No viewBox. Since I read that the default dpi-value of the batik rasterizer is 96dpi, I expected a png-image with about 2240 x 2100 px when I set the dpi to 300. Hago --------------------------------------------------------------------- To unsubscribe, e-mail: kimberlythompson@example.net For additional commands, e-mail: kimberlythompson@example.net From batik-users-return-14805kimberlythompson@example.net Mon Nov 03 05:18:24 2008 Return-Path: <batik-users-return-14805kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 60074 invoked from network); 3 Nov 2008 05:18:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Nov 2008 05:18:24 -0000 Received: (qmail 70648 invoked by uid 500); 3 Nov 2008 05:18:29 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 70622 invoked by uid 500); 3 Nov 2008 05:18:29 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 70610 invoked by uid 99); 3 Nov 2008 05:18:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 21:18:29 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mailhub.znyx.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 05:17:13 +0000 Received: from [83.161.120.155] (jeep.znyx.com [83.161.120.155]) by mailhub.znyx.com (8.12.9/8.12.8) with ESMTP id mA34xePR071627 for <kimberlythompson@example.net>; Sun, 2 Nov 2008 20:59:41 -0800 (PST) (envelope-from kimberlythompson@example.net) Message-ID: <kimberlythompson@example.net> Date: Sun, 02 Nov 2008 21:17:54 -0800 From: Alan Deikman <kimberlythompson@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080914) MIME-Version: 1.0 To: kimberlythompson@example.net Subject: Re: Why is Batik so complex? References: <kimberlythompson@example.net> In-Reply-To: <kimberlythompson@example.net> Content-Type: multipart/alternative; boundary="------------070605060603090604080300" X-Virus-Checked: Checked by ClamAV on apache.org --------------070605060603090604080300 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit kimberlythompson@example.net wrote: > > > Please don't get me wrong -- I am sure it *needs* to be this complex > > -- I just want to understand why. > > Does this start to give you a feel for why Batik is a bit > more complex than a really simple graphics tree... This answer was very helpful, but still Batik is more than a little intimidating. Consider SVGGraphicsElement class. It has 7 super-classes (not counting Object), 19 interfaces, and 16 "direct known" sub-classes. To understand what is going on you have to understand Swing, AWT, DOM, DOM Events, Threads, CSS, ECMAScript, XPath, and several other packages. User documentation is almost non-existent, so if you try to read the code you quickly find out there are 81 packages that start with "org.apache.batik," all interlinked and many with naming conventions that must mean something, but there is no key anywhere. For example, the substrings "GVT", "OM", "XBL", "Bridge", -- all unexplained. I realize that many of the questions are obvious to those who grew up with the structure -- but starting from scratch is not for the faint of heart. Mind you I'm not complaining. I like a challenge like this, and I must say it all works incredibly well. When I introduced Batik to my application, it took like 5 lines of code (not counting imports) to construct a JSVGCanvas object and display it successfully. All I could think was wow. However to do anything much more fancy drives you to obscure and difficult problems really fast. (I'll be posting another question later tonight maybe.) I suspect that Batik's wide deployment is going to be slowed by this. Apropos of that; Alexander Kolesnikov's book is very good, but it doesn't get past the basics. A "Mastering Batik" book is needed that documents the internals. Thanks in advance for all you guys that answer questions here. -- Alan Deikman --------------070605060603090604080300 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <a class="moz-txt-link-abbreviated" href="mailto:kimberlythompson@example.net">kimberlythompson@example.net</a> wrote: <blockquote cite="mid:kimberlythompson@example.net" type="cite"><br> <font face="sans-serif" size="2"></font><font size="2"><tt></tt></font><font size="2"><tt></tt></font><font size="2"><tt>&gt; Please don&#8217;t get me wrong &#8211; I am sure it *needs* to be this complex <br> &gt; &#8211; I just want to understand why.</tt></font> <br> <br> <font size="2"><tt>&nbsp; &nbsp;Does this start to give you a feel for why Batik is a bit</tt></font> <br> <font size="2"><tt>more complex than a really simple graphics tree...</tt></font> <br> </blockquote> This answer was very helpful, but still Batik is more than a little intimidating.<br> <br> Consider SVGGraphicsElement class.&nbsp; It has 7 super-classes (not counting Object), 19 interfaces, and 16 "direct known" sub-classes.&nbsp; To understand what is going on you have to understand Swing, AWT, DOM, DOM Events, Threads, CSS, ECMAScript, XPath, and several other packages. User documentation is almost non-existent, so if you try to read the code you quickly find out there are 81 packages that start with "org.apache.batik," all interlinked and many with naming conventions that must mean something, but there is no key anywhere.&nbsp; For example, the substrings "GVT", "OM", "XBL", "Bridge", -- all unexplained.<br> <br> I realize that many of the questions are obvious to those who grew up with the structure -- but starting from scratch is not for the faint of heart.<br> <br> Mind you I'm not complaining.&nbsp; I like a challenge like this, and I must say it all works incredibly well.&nbsp;&nbsp; When I introduced Batik to my application, it took like 5 lines of code (not counting imports) to construct a JSVGCanvas object and display it successfully.&nbsp; All I could think was wow.&nbsp;&nbsp; However to do anything much more fancy drives you to obscure and difficult problems really fast.&nbsp; (I'll be posting another question later tonight maybe.)&nbsp;&nbsp; I suspect that Batik's wide deployment is going to be slowed by this.<br> <br> Apropos of that;&nbsp; Alexander Kolesnikov's book is very good, but it doesn't get past the basics.&nbsp; A "Mastering Batik" book is needed that documents the internals.<br> <br> Thanks in advance for all you guys that answer questions here.<br> <pre class="moz-signature" cols="72">-- Alan Deikman</pre> </body> </html> --------------070605060603090604080300-- From batik-users-return-14806kimberlythompson@example.net Mon Nov 03 05:49:11 2008 Return-Path: <batik-users-return-14806kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 78787 invoked from network); 3 Nov 2008 05:49:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Nov 2008 05:49:10 -0000 Received: (qmail 92947 invoked by uid 500); 3 Nov 2008 05:49:16 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 92932 invoked by uid 500); 3 Nov 2008 05:49:16 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 92921 invoked by uid 99); 3 Nov 2008 05:49:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 21:49:16 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO outbound.icp-qv1-irony-out4.iinet.net.au) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 05:47:59 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuEEAF8fDkl8qg4V/2dsb2JhbACCTSzHJINS X-IronPort-AV: E=Sophos;i="4.33,534,1220198400"; d="scan'208,217";a="272374139" Received: from unknown (HELO tigereye) ([83.161.120.155]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 03 Nov 2008 14:48:36 +0900 From: "John C. Turnbull" <kimberlythompson@example.net> To: <kimberlythompson@example.net> References: <kimberlythompson@example.net> <kimberlythompson@example.net> In-Reply-To: <kimberlythompson@example.net> Subject: RE: Why is Batik so complex? Date: Mon, 3 Nov 2008 16:48:35 +1100 Message-ID: <kimberlythompson@example.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001D_01C93DD4.03B69BF0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ack9c5nwZ3pHR4cITVCZj8FD4ut9jwAA6rBQ Content-Language: en-au X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_001D_01C93DD4.03B69BF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I agree with you Alan. The Batik web site has some explanatory pages but there is a still a distinct lack of documentation that explains the various subsystems from the perspective of someone who wishes to do advanced things with Batik that may include modifying the source itself. It can be a bit baffling to locate the part of the code base that is relevant to the task you have in mind. But I love Batik. It's probably the best Java class library I have come across and I want to get the most out of it. Cheers, John From: Alan Deikman [mailto:kimberlythompson@example.net] Sent: Monday, 3 November 2008 16:18 To: kimberlythompson@example.net Subject: Re: Why is Batik so complex? kimberlythompson@example.net wrote: > Please don't get me wrong - I am sure it *needs* to be this complex > - I just want to understand why. Does this start to give you a feel for why Batik is a bit more complex than a really simple graphics tree... This answer was very helpful, but still Batik is more than a little intimidating. Consider SVGGraphicsElement class. It has 7 super-classes (not counting Object), 19 interfaces, and 16 "direct known" sub-classes. To understand what is going on you have to understand Swing, AWT, DOM, DOM Events, Threads, CSS, ECMAScript, XPath, and several other packages. User documentation is almost non-existent, so if you try to read the code you quickly find out there are 81 packages that start with "org.apache.batik," all interlinked and many with naming conventions that must mean something, but there is no key anywhere. For example, the substrings "GVT", "OM", "XBL", "Bridge", -- all unexplained. I realize that many of the questions are obvious to those who grew up with the structure -- but starting from scratch is not for the faint of heart. Mind you I'm not complaining. I like a challenge like this, and I must say it all works incredibly well. When I introduced Batik to my application, it took like 5 lines of code (not counting imports) to construct a JSVGCanvas object and display it successfully. All I could think was wow. However to do anything much more fancy drives you to obscure and difficult problems really fast. (I'll be posting another question later tonight maybe.) I suspect that Batik's wide deployment is going to be slowed by this. Apropos of that; Alexander Kolesnikov's book is very good, but it doesn't get past the basics. A "Mastering Batik" book is needed that documents the internals. Thanks in advance for all you guys that answer questions here. -- Alan Deikman ------=_NextPart_000_001D_01C93DD4.03B69BF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:x=3D"urn:schemas-microsoft-com:office:excel" = xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" = xmlns:a=3D"urn:schemas-microsoft-com:office:access" = xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" = xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" = xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema" = xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" = xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" = xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" = xmlns:odc=3D"urn:schemas-microsoft-com:office:odc" = xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" = xmlns:html=3D"http://www.w3.org/TR/REC-html40" = xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:D=3D"DAV:" = xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2003/xml" = xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" = xmlns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/directory/" = xmlns:ds=3D"http://www.w3.org/2000/09/xmldsig#" = xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint/dsp" = xmlns:udc=3D"http://schemas.microsoft.com/data/udc" = xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" = xmlns:sub=3D"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/"= xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#" = xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" = xmlns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" = xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" = xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" = xmlns:wf=3D"http://schemas.microsoft.com/sharepoint/soap/workflow/" = xmlns:mver=3D"http://schemas.openxmlformats.org/markup-compatibility/2006= " xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns:mrels=3D"http://schemas.openxmlformats.org/package/2006/relationshi= ps" = xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/services/2006/types"= = xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/services/2006/messag= es" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns:st=3D"&#1;" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif"; color:black;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} pre {mso-style-priority:99; mso-style-link:"HTML Preformatted Char"; margin:0cm; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} tt {mso-style-priority:99; font-family:"Courier New";} span.HTMLPreformattedChar {mso-style-name:"HTML Preformatted Char"; mso-style-priority:99; mso-style-link:"HTML Preformatted"; font-family:Consolas; color:black;} span.EmailStyle20 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body bgcolor=3Dwhite lang=3DEN-AU link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>I agree with you Alan.&nbsp; The Batik web site has some explanatory pages but there is a still a distinct lack of documentation = that explains the various subsystems from the perspective of someone who = wishes to do advanced things with Batik that may include modifying the source = itself. &nbsp;It can be a bit baffling to locate the part of the code base that is = relevant to the task you have in mind.<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>But I love Batik.&nbsp; It&#8217;s probably the best Java = class library I have come across and I want to get the most out of = it.<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Cheers,<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>John<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p>&nbsp;</o:p></span></p> <div style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm = 0cm 4.0pt'> <div> <div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt = 0cm 0cm 0cm'> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.0pt;font-family: "Tahoma","sans-serif";color:windowtext'>From:</span></b><span = lang=3DEN-US style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowt= ext'> Alan Deikman [mailto:kimberlythompson@example.net] <br> <b>Sent:</b> Monday, 3 November 2008 16:18<br> <b>To:</b> kimberlythompson@example.net<br> <b>Subject:</b> Re: Why is Batik so complex?<o:p></o:p></span></p> </div> </div> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal><a = href=3D"mailto:kimberlythompson@example.net">kimberlythompson@example.net</a> wrote: <o:p></o:p></p> <p class=3DMsoNormal><br> <tt><span style=3D'font-size:10.0pt'>&gt; Please don&#8217;t get me = wrong &#8211; I am sure it *needs* to be this complex </span></tt><span = style=3D'font-size: 10.0pt;font-family:"Courier New"'><br> <tt>&gt; &#8211; I just want to understand why.</tt></span> <br> <br> <tt><span style=3D'font-size:10.0pt'>&nbsp; &nbsp;Does this start to = give you a feel for why Batik is a bit</span></tt> <br> <tt><span style=3D'font-size:10.0pt'>more complex than a really simple = graphics tree...</span></tt> <o:p></o:p></p> <p class=3DMsoNormal>This answer was very helpful, but still Batik is = more than a little intimidating.<br> <br> Consider SVGGraphicsElement class.&nbsp; It has 7 super-classes (not = counting Object), 19 interfaces, and 16 &quot;direct known&quot; = sub-classes.&nbsp; To understand what is going on you have to understand Swing, AWT, DOM, DOM = Events, Threads, CSS, ECMAScript, XPath, and several other packages. User = documentation is almost non-existent, so if you try to read the code you quickly find = out there are 81 packages that start with &quot;org.apache.batik,&quot; all interlinked and many with naming conventions that must mean something, = but there is no key anywhere.&nbsp; For example, the substrings = &quot;GVT&quot;, &quot;OM&quot;, &quot;XBL&quot;, &quot;Bridge&quot;, -- all = unexplained.<br> <br> I realize that many of the questions are obvious to those who grew up = with the structure -- but starting from scratch is not for the faint of = heart.<br> <br> Mind you I'm not complaining.&nbsp; I like a challenge like this, and I = must say it all works incredibly well.&nbsp;&nbsp; When I introduced Batik to = my application, it took like 5 lines of code (not counting imports) to = construct a JSVGCanvas object and display it successfully.&nbsp; All I could think = was wow.&nbsp;&nbsp; However to do anything much more fancy drives you to = obscure and difficult problems really fast.&nbsp; (I'll be posting another = question later tonight maybe.)&nbsp;&nbsp; I suspect that Batik's wide deployment = is going to be slowed by this.<br> <br> Apropos of that;&nbsp; Alexander Kolesnikov's book is very good, but it = doesn't get past the basics.&nbsp; A &quot;Mastering Batik&quot; book is needed = that documents the internals.<br> <br> Thanks in advance for all you guys that answer questions here.<br> <br> <o:p></o:p></p> <pre>-- <o:p></o:p></pre><pre>Alan Deikman<o:p></o:p></pre></div> </div> </body> </html> ------=_NextPart_000_001D_01C93DD4.03B69BF0-- From batik-users-return-14807kimberlythompson@example.net Mon Nov 03 08:44:09 2008 Return-Path: <batik-users-return-14807kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 45923 invoked from network); 3 Nov 2008 08:44:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Nov 2008 08:44:09 -0000 Received: (qmail 96703 invoked by uid 500); 3 Nov 2008 08:44:15 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 96691 invoked by uid 500); 3 Nov 2008 08:44:15 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 96680 invoked by uid 99); 3 Nov 2008 08:44:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 00:44:15 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kimberlythompson@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ey-out-2122.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 08:43:00 +0000 Received: by ey-out-2122.google.com with SMTP id 25so736526eya.27 for <kimberlythompson@example.net>; Mon, 03 Nov 2008 00:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=ghHluVbRhYJW9ObqVVslngNLv3nSFIFgo66ANTacDuQ=; b=JpZOXqQPZpLSaoFGJoYbopK0i0WSV5wzUtXj4K167i4xLfcsf/4vRUrEvY45ChI4ze QkVfL4GVPZkELR2PzLLUG+9H33hWdsoBDwaSZS9nCfDHOE+7MKK2nAqisH2EvFzw1bIU OpSC8zQwNTPDEXRa+mb6XLNNbkAXIHnRLWvd4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=w9g26YmUECERH3hGbJSHXvzGqd1iPnuvwIQQe+mvVU0WVvlbHXJySnmWgmjebFhiPJ rVUyVPwOrUkzRC4K9UCe1s6gekYEZRCxP8vb1N+1bkTwvhiVgaxFwKlsH2aQJKrTfzd1 UQotJgdfINXd/FMzv8aF/SSnWh/ONyx0LBG1g= Received: by 83.161.120.155 with SMTP id z13mr8296949ebc.11.1225701821161; Mon, 03 Nov 2008 00:43:41 -0800 (PST) Received: by 83.161.120.155 with HTTP; Mon, 3 Nov 2008 00:43:41 -0800 (PST) Message-ID: <kimberlythompson@example.net> Date: Mon, 3 Nov 2008 09:43:41 +0100 From: "=?ISO-8859-1?Q?Lars_Eirik_R=F8nning?=" <kimberlythompson@example.net> To: kimberlythompson@example.net Subject: Freebsd 7 and batik MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_57082_15851873.1225701821157" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_57082_15851873.1225701821157 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi.We are currently experiencing somee issues with java on freebsd. Ourr application performs nicely under windows , and batik -> pdf is its main task. The application also reads from activemq to receive the meta xml which is needed for processing svg to pdf. My question is this : Has anyone had issues with running either 1.5 diablo or 1.6 jdk under this platform? I would be very grateful for any tips on how to improve speed. A process which takes aprox 1 minute on windows (laptop) takes close to 9 minutes on the freebsd platform. ------=_Part_57082_15851873.1225701821157 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi.<div>We are currently experiencing somee issues with java on freebsd.</div><div>Ourr application performs nicely under windows , and batik -&gt; pdf is its main task.</div><div>The application also reads from activemq to receive the meta xml which is needed for processing svg to pdf.</div> <div><br></div><div>My question is this : Has anyone had issues with running either 1.5 diablo or 1.6 jdk under this platform?</div><div>I would be very grateful for any tips on how to improve speed.</div><div><br></div><div> A process which takes aprox 1 minute on windows (laptop) takes close to 9 minutes on the freebsd platform.</div> ------=_Part_57082_15851873.1225701821157-- From batik-users-return-14808kimberlythompson@example.net Mon Nov 03 11:17:38 2008 Return-Path: <batik-users-return-14808kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 12628 invoked from network); 3 Nov 2008 11:17:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Nov 2008 11:17:38 -0000 Received: (qmail 30953 invoked by uid 500); 3 Nov 2008 11:17:44 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 30939 invoked by uid 500); 3 Nov 2008 11:17:43 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 30928 invoked by uid 99); 3 Nov 2008 11:17:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 03:17:43 -0800 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kimberlythompson@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 11:16:25 +0000 Received: from roc-us-e1000-111.kodak.com (roc-us-e1000-111.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id mA3BF4v14642 for <kimberlythompson@example.net>; Mon, 3 Nov 2008 06:15:04 -0500 (EST) Received: from (unknown [83.161.120.155]) by roc-us-e1000-111.kodak.com with smtp id 068f_a9dfc4a4_a998_11dd_8db3_0019b9df7914; Mon, 03 Nov 2008 11:15:04 +0000 In-Reply-To: <op.uj0nboq0a8nfnl@hago1> To: kimberlythompson@example.net Cc: kimberlythompson@example.net Subject: Re: 96dpi or 300dpi - no difference MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: <kimberlythompson@example.net> From: kimberlythompson@example.net Date: Mon, 3 Nov 2008 06:16:08 -0500 X-MIMETrack: Serialize by Router on KNOTES2/ISBP/EKC(Release 6.5.6FP2|October 17, 2007) at 11/03/2008 06:15:04 AM, Serialize complete at 11/03/2008 06:15:04 AM Content-Type: multipart/alternative; boundary="=_alternative 003DE766852574F6_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 003DE766852574F6_= Content-Type: text/plain; charset="US-ASCII" Hi Hago, "Hago Ziegler" <kimberlythompson@example.net> wrote on 11/02/2008 06:53:38 PM: > >> The resulting png is exactly the same when I put --dpi 100 or -dpi 96. > > Inside the svg-file the size is defined in pixel values (744 x 700). Well DPI stands for 'Dots Per Inch' meaning 'Pixels Per Inch'. Since you give the output size of the document in pixels already there is no sensible way to apply the dpi flag to your pixels to map them to pixel units (since they are already pixel units) If you had used width="744pt" height="700pt" then we would use -dpi to map Pt (points or 1/72nd of an inch) to pixels. > No viewBox. This is essentially always the wrong thing to do (see below). > Since I read that the default dpi-value of the batik rasterizer is 96dpi, > I expected a png-image with about 2240 x 2100 px when I set the dpi to 300. In the above case since the dpi flag is only used to map real world units to userspace (or 'px' units). Even if you added 'pt' to your width/height specification the result would be to make the width and height much larger, but since there is no view box it would render the original content at the same size with a lot of blank space to the right and bottom. The ViewBox establishes what part of the canvas should be mapped to the actually rendered output region. If you had a viewBox then you could either use 'pt' on the width and height to get the effect you want, or you could specify the width and height you wanted. Otherwise your content is 'locked' into rendering 1:1 with pixels unless you somehow manually insert a transform in the rendering. --=_alternative 003DE766852574F6_= Content-Type: text/html; charset="US-ASCII" <br><font size=2 face="sans-serif">Hi Hago,<br> </font> <br><font size=2><tt>&quot;Hago Ziegler&quot; &lt;kimberlythompson@example.net&gt; wrote on 11/02/2008 06:53:38 PM:<br> <br> &gt; &gt;&gt; The resulting png is exactly the same when I put --dpi 100 or -dpi 96.<br> &gt; <br> &gt; Inside the svg-file the size is defined in pixel values (744 x 700).</tt></font> <br> <br><font size=2><tt>&nbsp; Well DPI stands for 'Dots Per Inch' meaning 'Pixels Per Inch'. &nbsp;Since you</tt></font> <br><font size=2><tt>give the output size of the document in pixels already there is no sensible</tt></font> <br><font size=2><tt>way to apply the dpi flag to your pixels to map them to pixel units (since </tt></font> <br><font size=2><tt>they are already pixel units)</tt></font> <br> <br><font size=2><tt>&nbsp; If you had used width=&quot;744pt&quot; height=&quot;700pt&quot; then we would use -dpi to</tt></font> <br><font size=2><tt>map Pt (points or 1/72nd of an inch) to pixels.</tt></font> <br> <br><font size=2><tt>&gt; No viewBox.</tt></font> <br> <br><font size=2><tt>&nbsp; &nbsp;This is essentially always the wrong thing to do (see below). &nbsp;</tt></font> <br> <br><font size=2><tt>&gt; Since I read that the default dpi-value of the batik rasterizer is 96dpi, &nbsp;<br> &gt; I expected a png-image with about 2240 x 2100 px when I set the dpi to 300.<br> </tt></font> <br><font size=2><tt>&nbsp; &nbsp;In the above case since the dpi flag is only used to map real world </tt></font> <br><font size=2><tt>units to userspace (or 'px' units). &nbsp;Even if you added 'pt' to your </tt></font> <br><font size=2><tt>width/height specification the result would be to make the width and height</tt></font> <br><font size=2><tt>much larger, but since there is no view box it would render the original</tt></font> <br><font size=2><tt>content at the same size with a lot of blank space to the right and bottom.</tt></font> <br><font size=2><tt>The ViewBox establishes what part of the canvas should be mapped to the</tt></font> <br><font size=2><tt>actually rendered output region.</tt></font> <br> <br><font size=2><tt>&nbsp; &nbsp;If you had a viewBox then you could either use 'pt' on the width and</tt></font> <br><font size=2><tt>height to get the effect you want, or you could specify the width and height</tt></font> <br><font size=2><tt>you wanted. &nbsp;Otherwise your content is 'locked' into rendering 1:1 with pixels</tt></font> <br><font size=2><tt>unless you somehow manually insert a transform in the rendering.</tt></font> <br> --=_alternative 003DE766852574F6_=-- From batik-users-return-14809kimberlythompson@example.net Mon Nov 03 14:45:18 2008 Return-Path: <batik-users-return-14809kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 99307 invoked from network); 3 Nov 2008 14:45:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Nov 2008 14:45:18 -0000 Received: (qmail 70863 invoked by uid 500); 3 Nov 2008 14:45:20 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 70847 invoked by uid 500); 3 Nov 2008 14:45:20 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 70818 invoked by uid 99); 3 Nov 2008 14:45:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 06:45:20 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO moutng.kundenserver.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 14:44:03 +0000 Received: from hago1 (p5B2FC6F4.dip.t-dialin.net [83.161.120.155]) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis) id 0MKwtQ-1Kx0fa2uOZ-0007cp; Mon, 03 Nov 2008 15:44:42 +0100 Date: Mon, 03 Nov 2008 16:44:44 +0100 To: kimberlythompson@example.net Subject: Re: 96dpi or 300dpi - no difference From: "Hago Ziegler" <kimberlythompson@example.net> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 References: <kimberlythompson@example.net> Content-Transfer-Encoding: 7bit Message-ID: <op.uj1vcuq3a8nfnl@hago1> In-Reply-To: <kimberlythompson@example.net> User-Agent: Opera Mail/9.62 (Win32) X-Provags-ID: V01U2FsdGVkX1/FGTH8Xs+a0zDAG7pBX/t19cEM8xizs7cWctN 5314JWxHcIIQYoxCDTVai85Vnl+beBm8VNWeJs5Kv1s6dKGnBx b9MagADn2uZHZHle1KQBg== X-Virus-Checked: Checked by ClamAV on apache.org Hi, thank you for your understandable help, now everything is much clearer to me :-) Hago --------------------------------------------------------------------- To unsubscribe, e-mail: kimberlythompson@example.net For additional commands, e-mail: kimberlythompson@example.net From batik-users-return-14810kimberlythompson@example.net Mon Nov 03 22:10:32 2008 Return-Path: <batik-users-return-14810kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 97915 invoked from network); 3 Nov 2008 22:10:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Nov 2008 22:10:32 -0000 Received: (qmail 6313 invoked by uid 500); 3 Nov 2008 22:10:39 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 6048 invoked by uid 500); 3 Nov 2008 22:10:38 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 6037 invoked by uid 99); 3 Nov 2008 22:10:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 14:10:38 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO outbound.icp-qv1-irony-out4.iinet.net.au) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 22:09:21 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhoFAA4FD0l8qg4V/2dsb2JhbACCTC3JE4NS X-IronPort-AV: E=Sophos;i="4.33,538,1220198400"; d="scan'208,217";a="272610626" Received: from unknown (HELO tigereye) ([83.161.120.155]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 04 Nov 2008 07:08:58 +0900 From: "John C. Turnbull" <kimberlythompson@example.net> To: <kimberlythompson@example.net> References: <kimberlythompson@example.net> In-Reply-To: <kimberlythompson@example.net> Subject: RE: Text rendering issues - again Date: Tue, 4 Nov 2008 09:08:58 +1100 Message-ID: <kimberlythompson@example.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0096_01C93E5C.F918DF80" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ack6BC4nL7YkG5guRfCANSWOYjZbngD+09Tw Content-Language: en-au X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0096_01C93E5C.F918DF80 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit It seems that achieving LCD sub-pixel antialiasing with Batik may not be possible. An analysis of a trace log from the Batik code by Dmitri Trembovetski of Sun has revealed that LCD antialiasing is not happening because the image buffer in use is not opaque even though I am explicitly setting the rendering hints to achieve it. I guess the reason for this is to enable SVG canvasses to be overlayed one on top of the other and have the underlying graphics "show through" the top layer. Does this sound correct? I mean is this the reason why the image buffer is not opaque? Unfortunately LCD antialiasing only works on opaque surfaces. As an aside, I can get LCD antialiasing to work if I render the glyph vector into an opaque image and then blast that opaque image on to the image buffer but this necessitates having a background colour for the text which clears the rectangle in which the text is bound. Clearly this is not the solution. Any thoughts? Thanks, -JCT From: John C. Turnbull [mailto:kimberlythompson@example.net] Sent: Thursday, 30 October 2008 07:23 To: kimberlythompson@example.net Subject: Text rendering issues - again I thought I had made the necessary modifications to achieve true sub-pixel antialiasing in Batik but after consultation with Stuart Pook I have found that this is not the case. This is proving very problematic. So, what would prevent Batik from rendering text using true sub-pixel antialiasing? I have gone through the entire Batik code base and changed everything that looked relevant but it still doesn't work. I have even gone to the extent of replacing the code in the draw() method of AWTGVTGlyphVector where the text is actually rendered with this: graphics2D.setColor(Color.BLACK); graphics2D.setPaint(new Color(0, 0, 0)); graphics2D.setTransform(new AffineTransform()); graphics2D.setFont(new Font("Segoe UI", Font.PLAIN, 13)); graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF); graphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); graphics2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); graphics2D.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB); graphics2D.setRenderingHint(RenderingHints.KEY_TEXT_LCD_CONTRAST, 120); graphics2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON); graphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY); graphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY); graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); graphics2D.drawString("Some test text", 20, 20); As you can see, I am setting every possible relevant rendering hint to achieve sub-pixel antialiasing and this code fragment produces the desired results when used outside of the Batik context. But within Batik, the text is rendered using standard antialiasing only. It seems that something in either the graphics configuration or component configuration within this Batik method is preventing true sub-pixel antialiasing from happening even though I am explicitly requesting it. What could possibly be causing this? Thanks, -JCT ------=_NextPart_000_0096_01C93E5C.F918DF80 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:x=3D"urn:schemas-microsoft-com:office:excel" = xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" = xmlns:a=3D"urn:schemas-microsoft-com:office:access" = xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" = xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" = xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema" = xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" = xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" = xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" = xmlns:odc=3D"urn:schemas-microsoft-com:office:odc" = xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" = xmlns:html=3D"http://www.w3.org/TR/REC-html40" = xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:D=3D"DAV:" = xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2003/xml" = xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" = xmlns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/directory/" = xmlns:ds=3D"http://www.w3.org/2000/09/xmldsig#" = xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint/dsp" = xmlns:udc=3D"http://schemas.microsoft.com/data/udc" = xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" = xmlns:sub=3D"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/"= xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#" = xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" = xmlns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" = xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" = xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" = xmlns:wf=3D"http://schemas.microsoft.com/sharepoint/soap/workflow/" = xmlns:mver=3D"http://schemas.openxmlformats.org/markup-compatibility/2006= " xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns:mrels=3D"http://schemas.openxmlformats.org/package/2006/relationshi= ps" = xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/services/2006/types"= = xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/services/2006/messag= es" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns:st=3D"&#1;" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:windowtext;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-AU link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><span style=3D'color:#1F497D'>It seems that = achieving LCD sub-pixel antialiasing with Batik may not be possible.<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span style=3D'color:#1F497D'>An analysis of a = trace log from the Batik code by Dmitri Trembovetski of Sun has revealed that LCD = antialiasing is not happening because the image buffer in use is not opaque even = though I am explicitly setting the rendering hints to achieve it.&nbsp; I guess the = reason for this is to enable SVG canvasses to be overlayed one on top of the = other and have the underlying graphics &#8220;show through&#8221; the top = layer.<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span style=3D'color:#1F497D'>Does this sound = correct?&nbsp; I mean is this the reason why the image buffer is not opaque?&nbsp; = Unfortunately LCD antialiasing only works on opaque surfaces.<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span style=3D'color:#1F497D'>As an aside, I can = get LCD antialiasing to work if I render the glyph vector into an opaque image = and then blast that opaque image on to the image buffer but this necessitates = having a background colour for the text which clears the rectangle in which the = text is bound.&nbsp; Clearly this is not the solution.<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span style=3D'color:#1F497D'>Any = thoughts?<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'>Thanks,<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'>-JCT<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p> <div style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm = 0cm 4.0pt'> <div> <div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt = 0cm 0cm 0cm'> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.0pt;font-family: "Tahoma","sans-serif"'>From:</span></b><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:"Tahoma","sans-serif"'> John C. Turnbull [mailto:kimberlythompson@example.net] <br> <b>Sent:</b> Thursday, 30 October 2008 07:23<br> <b>To:</b> kimberlythompson@example.net<br> <b>Subject:</b> Text rendering issues - again<o:p></o:p></span></p> </div> </div> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal>I thought I had made the necessary modifications to = achieve true sub-pixel antialiasing in Batik but after consultation with Stuart = Pook I have found that this is not the case.&nbsp; This is proving very = problematic.<o:p></o:p></p> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal>So, what would prevent Batik from rendering text = using true sub-pixel antialiasing?&nbsp; I have gone through the entire Batik code = base and changed everything that looked relevant but it still doesn&#8217;t work.&nbsp; I have even gone to the extent of replacing the code in the = draw() method of AWTGVTGlyphVector where the text is actually rendered with = this:<o:p></o:p></p> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal>graphics2D.setColor(Color.BLACK);<o:p></o:p></p> <p class=3DMsoNormal>graphics2D.setPaint(new Color(0, 0, = 0));<o:p></o:p></p> <p class=3DMsoNormal>graphics2D.setTransform(new = AffineTransform());<o:p></o:p></p> <p class=3DMsoNormal>graphics2D.setFont(new Font(&quot;Segoe UI&quot;, Font.PLAIN, 13));<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIA= SING, RenderingHints.VALUE_ANTIALIAS_OFF);<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_STROKE_C= ONTROL, RenderingHints.VALUE_STROKE_PURE);<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_RENDERIN= G, RenderingHints.VALUE_RENDER_QUALITY);<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_TEXT_ANT= IALIASING,<o:p></o:p></p> <p class=3DMsoNormal>&nbsp;&nbsp;&nbsp; RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_TEXT_LCD= _CONTRAST, 120);<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_FRACTION= ALMETRICS,<o:p></o:p></p> <p class=3DMsoNormal>&nbsp;&nbsp;&nbsp; RenderingHints.VALUE_FRACTIONALMETRICS_ON);<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_IN= TERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RE= NDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);<o:p></o:p></p> <p = class=3DMsoNormal>graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOL= ATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);<o:p></o:p></p> <p class=3DMsoNormal>graphics2D.drawString(&quot;Some test text&quot;, = 20, 20);<o:p></o:p></p> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal>As you can see, I am setting every possible = relevant rendering hint to achieve sub-pixel antialiasing and this code fragment produces the desired results when used outside of the Batik = context.&nbsp; But within Batik, the text &nbsp;is rendered using standard antialiasing = only.<o:p></o:p></p> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal>It seems that something in either the graphics = configuration or component configuration within this Batik method is preventing true sub-pixel antialiasing from happening even though I am explicitly = requesting it.&nbsp; What could possibly be causing this?<o:p></o:p></p> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal>Thanks,<o:p></o:p></p> <p class=3DMsoNormal><o:p>&nbsp;</o:p></p> <p class=3DMsoNormal>-JCT<o:p></o:p></p> </div> </div> </body> </html> ------=_NextPart_000_0096_01C93E5C.F918DF80-- From batik-users-return-14811kimberlythompson@example.net Mon Nov 03 23:32:56 2008 Return-Path: <batik-users-return-14811kimberlythompson@example.net> Delivered-To: kimberlythompson@example.net Received: (qmail 31903 invoked from network); 3 Nov 2008 23:32:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Nov 2008 23:32:56 -0000 Received: (qmail 13483 invoked by uid 500); 3 Nov 2008 23:33:01 -0000 Delivered-To: kimberlythompson@example.net Received: (qmail 13468 invoked by uid 500); 3 Nov 2008 23:33:01 -0000 Mailing-List: contact kimberlythompson@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kimberlythompson@example.net> List-Unsubscribe: <mailto:kimberlythompson@example.net> List-Post: <mailto:kimberlythompson@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: kimberlythompson@example.net Delivered-To: mailing list kimberlythompson@example.net Received: (qmail 13456 invoked by uid 99); 3 Nov 2008 23:33:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 15:33:01 -0800 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kimberlythompson@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 23:31:44 +0000 Received: from roc-us-e1000-111.kodak.com (roc-us-e1000-111.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id mA3NUNv15289 for <kimberlythompson@example.net>; Mon, 3 Nov 2008 18:30:23 -0500 (EST) Received: from (unknown [83.161.120.155]) by roc-us-e1000-111.kodak.com with smtp id 05f0_631343e0_a9ff_11dd_94f4_0019b9df7914; Mon, 03 Nov 2008 23:30:22 +0000 In-Reply-To: <kimberlythompson@example.net> To: kimberlythompson@example.net Cc: kimberlythompson@example.net Subject: RE: Text rendering issues - again MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: <kimberlythompson@example.net> From: kimberlythompson@example.net Date: Mon, 3 Nov 2008 18:31:43 -0500 X-MIMETrack: Serialize by Router on KNOTES2/ISBP/EKC(Release 6.5.6FP2|October 17, 2007) at 11/03/2008 06:30:23 PM, Serialize complete at 11/03/2008 06:30:23 PM Content-Type: multipart/alternative; boundary="=_alternative 00813FB0852574F6_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 00813FB0852574F6_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hi John, "John C. Turnbull" <kimberlythompson@example.net> wrote on 11/03/2008 05:08:58=20 PM: > It seems that achieving LCD sub-pixel antialiasing with Batik may=20 > not be possible. Oh, come now, don't give up so easily ;) > An analysis of a trace log from the Batik code by Dmitri=20 > Trembovetski of Sun has revealed that LCD antialiasing is not=20 > happening because the image buffer in use is not opaque even though=20 > I am explicitly setting the rendering hints to
{'source': 'Apache Software Foundation Public Mail Archives'}