From batikohart@example.net Mon Sep 01 18:38:40 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 68853 invoked from network); 1 Sep 2003 18:38:40 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Sep 2003 18:38:40 -0000 Received: (qmail 55504 invoked by uid 500); 1 Sep 2003 18:38:25 -0000 Delivered-To: ohart@example.net Received: (qmail 55469 invoked by uid 500); 1 Sep 2003 18:38:24 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 55455 invoked from network); 1 Sep 2003 18:38:24 -0000 X-Originating-IP: [83.161.120.155] X-Originating-Email: [ohart@example.net] From: "Ian Ross" <ohart@example.net> To: ohart@example.net Bcc: Subject: filter element problem Date: Mon, 01 Sep 2003 18:37:03 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: <ohart@example.net> X-OriginalArrivalTime: 01 Sep 2003 18:37:04.0447 (UTC) FILETIME=[0A3B7CF0:01C370B8] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi I use the following to create a bevel effect for a button. The problem is that the button shows up as a black box on the svg canvas. However when i view the svg file created, on IE, it appears the way i want it to. Can anyone spot any problems? Any help will be greatly appreciated. thanks in advance. Ian In the code below 'root' refers to the svg element and is passed to this method as an argument. Element defs = document.createElementNS(svgNS, "defs"); Element filter = document.createElementNS(svgNS, "filter"); filter.setAttributeNS(null, "id", "Bevel"); filter.setAttributeNS(null, "filterUnits", "objectBoundingBox"); filter.setAttributeNS(null, "x", "-10%"); filter.setAttributeNS(null, "y", "-10%"); filter.setAttributeNS(null, "width", "150%"); filter.setAttributeNS(null, "height", "150%"); Element feGaussianBlur = document.createElementNS(svgNS, "feGaussianBlur"); feGaussianBlur.setAttributeNS(null, "in", "SourceAlpha"); feGaussianBlur.setAttributeNS(null, "stdDeviation", "3"); feGaussianBlur.setAttributeNS(null, "result", "blur"); Element feSpecularLighting = document.createElementNS(svgNS, "feSpecularLighting"); feSpecularLighting.setAttributeNS(null, "in", "blur"); feSpecularLighting.setAttributeNS(null, "surfaceScale", "5"); feSpecularLighting.setAttributeNS(null, "specularConstant", "0.5"); feSpecularLighting.setAttributeNS(null, "specularExponent", "10"); feSpecularLighting.setAttributeNS(null, "result", "specOut"); feSpecularLighting.setAttributeNS(null, "style", "lighting-color:rgb(255,255,255)"); Element fePointLight = document.createElementNS(svgNS, "fePointLight"); fePointLight.setAttributeNS(null, "x", "-5000"); fePointLight.setAttributeNS(null, "y", "-10000"); fePointLight.setAttributeNS(null, "z", "20000"); Element feComposite1 = document.createElementNS(svgNS, "feComposite"); feComposite1.setAttributeNS(null, "in", "specOut"); feComposite1.setAttributeNS(null, "in2", "SourceAlpha"); feComposite1.setAttributeNS(null, "operator", "in"); feComposite1.setAttributeNS(null, "result", "specOut2"); Element feComposite2 = document.createElementNS(svgNS, "feComposite"); feComposite2.setAttributeNS(null, "in", "SourceGraphic"); feComposite2.setAttributeNS(null, "in2", "specOut2"); feComposite2.setAttributeNS(null, "operator", "arithmetic"); feComposite2.setAttributeNS(null, "k1", "0"); feComposite2.setAttributeNS(null, "k2", "1"); feComposite2.setAttributeNS(null, "k3", "1"); feComposite2.setAttributeNS(null, "k4", "0"); feComposite2.setAttributeNS(null, "result", "litPaint"); feSpecularLighting.appendChild(fePointLight); filter.appendChild(feGaussianBlur); filter.appendChild(feSpecularLighting); filter.appendChild(feComposite1); filter.appendChild(feComposite2); defs.appendChild(filter); root.appendChild(defs); Element e = document.createElementNS(svgNS, "rect"); e.setAttributeNS(null, "x", "100"); e.setAttributeNS(null, "y", "150"); e.setAttributeNS(null, "width", "100"); e.setAttributeNS(null, "height", "50"); e.setAttributeNS(xlinkNS, "style", "fill:rgb(0,128,128);stroke:rgb(0,0,0);stroke-width:1;filter:url(#Bevel)"); root.appendChild(e); _________________________________________________________________ Get less junk mail with ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Mon Sep 01 21:25:12 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 17073 invoked from network); 1 Sep 2003 21:25:12 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Sep 2003 21:25:12 -0000 Received: (qmail 20130 invoked by uid 500); 1 Sep 2003 21:24:55 -0000 Delivered-To: ohart@example.net Received: (qmail 20104 invoked by uid 500); 1 Sep 2003 21:24:55 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 20084 invoked from network); 1 Sep 2003 21:24:54 -0000 Message-ID: <ohart@example.net> Date: Mon, 01 Sep 2003 16:07:47 -0500 From: John Greene <ohart@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ohart@example.net Subject: do quadcurves eat alot of memory? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N When I'm displaying (on a JSVGCanvas) an image with 400 or so quadcurves I often get outofmemory errors (I can render 64,000 lines no prob). Just to eliminate or confirm a possibility, does batik render quadcurves in an especially memory-consumptive way? Does it reduce them to massive polylines? Are there a bunch of path-iterators hanging around past their usefulness? --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 10:58:40 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 34978 invoked from network); 2 Sep 2003 10:58:40 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 10:58:40 -0000 Received: (qmail 88711 invoked by uid 500); 2 Sep 2003 10:58:34 -0000 Delivered-To: ohart@example.net Received: (qmail 88635 invoked by uid 500); 2 Sep 2003 10:58:31 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 88592 invoked from network); 2 Sep 2003 10:58:29 -0000 Message-ID: <ohart@example.net> From: "Shan Kajendran" <ohart@example.net> To: "'Batik Users'" <ohart@example.net> Subject: Batik and SVG1.1 Date: Tue, 2 Sep 2003 11:25:54 +0100 Message-ID: <ohart@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <ohart@example.net> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi there Is Batik totally supports SVG 1.1? Shan --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 11:38:45 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 57191 invoked from network); 2 Sep 2003 11:38:45 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 11:38:45 -0000 Received: (qmail 76425 invoked by uid 500); 2 Sep 2003 11:38:26 -0000 Delivered-To: ohart@example.net Received: (qmail 76394 invoked by uid 500); 2 Sep 2003 11:38:26 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 76364 invoked from network); 2 Sep 2003 11:38:25 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 07:38:16 -0400 From: Thomas DeWeese <ohart@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: setSVGDOcument() does not work References: <ohart@example.net> In-Reply-To: <ohart@example.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Tom Diamond wrote: > Hello, > > I do the following : I create a Document on the fly (create Elements, > adding Attributes, setting childs etc., etc.). If I try to display it in > a JSVGCanvas via the setSVGDocument() method I get the following > exception : > [...] > The URI in question is created by > "fontFaceUriElement.setAttributeNS(null, "xlink:href", > defaultFontPath);" This is a FAQ, please read it from the Batik web site. You need to provide the xlink namespace here instead of 'null'. > where `defaultFontPath ` is the _absolute_ path to an > external svg file (containing a font). > If I save the document first and then try to display it via the setURI() > method, everything works just fine. > Any ideas? > > I downloaded batik (http://xml.apache.org/batik/dist/) just a couple of > days ago, so I assume it is the last stable version. I work on Linux and > JDK 1.4.2 (SUN) > > Tnx, > > Tom. > --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 11:39:44 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 57783 invoked from network); 2 Sep 2003 11:39:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 11:39:44 -0000 Received: (qmail 79024 invoked by uid 500); 2 Sep 2003 11:39:01 -0000 Delivered-To: ohart@example.net Received: (qmail 79011 invoked by uid 500); 2 Sep 2003 11:39:01 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Delivered-To: moderator for ohart@example.net Received: (qmail 72744 invoked from network); 1 Sep 2003 20:17:17 -0000 Date: Mon, 1 Sep 2003 16:16:55 -0400 (EDT) From: Jihai Qiu <ohart@example.net> To: ohart@example.net Subject: [Q] text background color and multiple line breaks Message-ID: <ohart@example.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I need to implement the HTML <div> inside <table> into pdf. Because fop does not support it, I have to convert the HTML <div>'s with absolute position into SVG as the frist step. I encountered two problems and would like to ask you. The first is about the text background color, especially when converting <html888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4span> to <svg:flowLine>. I am unable to set background color. Is there any workaround? Can I use script to set it? The second is for the multiple line breaks(<br>'s). The SVG V1.2 spec mentions that "if there are no printing characters between the end of multiple flowline elements the second and greater flowLine elements have no effect as the current line does not contain any text when they are processed". Is there any simple way to implement multiple line breaks. Thank you very much. Jay --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 11:43:38 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 60088 invoked from network); 2 Sep 2003 11:43:37 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 11:43:37 -0000 Received: (qmail 89764 invoked by uid 500); 2 Sep 2003 11:43:31 -0000 Delivered-To: ohart@example.net Received: (qmail 89738 invoked by uid 500); 2 Sep 2003 11:43:31 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 89719 invoked from network); 2 Sep 2003 11:43:30 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 07:39:17 -0400 From: Thomas DeWeese <ohart@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: filter element problem References: <ohart@example.net> In-Reply-To: <ohart@example.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ian Ross wrote: > Hi > I use the following to create a bevel effect for a button. The problem > is that the button shows up as a black box on the svg canvas. However > when i view the svg file created, on IE, it appears the way i want it > to. Can anyone spot any problems? > Any help will be greatly appreciated. thanks in advance. > Ian > > In the code below 'root' refers to the svg element and is passed to this > method as an argument. > e.setAttributeNS(xlinkNS, "style", > "fill:rgb(0,128,128);stroke:rgb(0,0,0);stroke-width:1;filter:url(#Bevel)"); Hi Ian, I think this is a typo, the 'style' attribute is _not_ in the xlink namespace, it is in the 'null' namespace. > root.appendChild(e); > > _________________________________________________________________ > Get less junk mail with ninemsn Premium. Click here > http://ninemsn.com.au/premium/landing.asp > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ohart@example.net > For additional commands, e-mail: ohart@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 11:45:09 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 60889 invoked from network); 2 Sep 2003 11:45:09 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 11:45:09 -0000 Received: (qmail 94220 invoked by uid 500); 2 Sep 2003 11:45:04 -0000 Delivered-To: ohart@example.net Received: (qmail 94207 invoked by uid 500); 2 Sep 2003 11:45:03 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 94193 invoked from network); 2 Sep 2003 11:45:03 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 07:40:49 -0400 From: Thomas DeWeese <ohart@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: anti-alias References: <ohart@example.net> <ohart@example.net> In-Reply-To: <ohart@example.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N David Eppstein wrote: > In article <ohart@example.net>, > "Chris Faulkner" <ohart@example.net> wrote: > > >>I have been using Batik at a very basic level for a while - just rasterising >>SVG images. >> >>I would like to add anti-aliasing to improve the appearance of the text. I >>have seen a little discussion about this in the mail archives but no >>examples of how to do it. There seems to be something in the >>PreferenceManager but I'm not sure - maybe I need a Transcoding Hint ? Could >>someone tell me how to get anti-aliasing, please ? > > > I'm getting text antialiasing with default settings of Batik's > rasterizer under OS X. So maybe this is another of these things that > you can't change in Batik itself or your SVG files, it's built into your > Java version? If you can provide a small sample rendering (to the list if < 10K-20K, or to me if larger) it might help. Sometimes people don't recognise anti-aliasing for what it is. --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 11:49:04 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 62743 invoked from network); 2 Sep 2003 11:49:03 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 11:49:03 -0000 Received: (qmail 924 invoked by uid 500); 2 Sep 2003 11:48:37 -0000 Delivered-To: ohart@example.net Received: (qmail 886 invoked by uid 500); 2 Sep 2003 11:48:37 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 763 invoked from network); 2 Sep 2003 11:48:35 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 07:48:29 -0400 From: Thomas DeWeese <ohart@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: [Q] text background color and multiple line breaks References: <ohart@example.net> In-Reply-To: <ohart@example.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Jihai, Jihai Qiu wrote: > I need to implement the HTML <div> inside <table> into pdf. Because fop > does not support it, I have to convert the HTML <div>'s with absolute > position into SVG as the frist step. > > I encountered two problems and would like to ask you. > > The first is about the text background color, especially when converting > <html888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4span> to <svg:flowLine>. I am unable to set background color. > Is there any workaround? Can I use script to set it? There is no background for SVG text. You can create an svg rectangle that covers the background area for the text (this would be hard for spans :). > The second is for the multiple line breaks(<br>'s). The SVG V1.2 spec > mentions that "if there are no printing characters between the end of > multiple flowline elements the second and greater flowLine elements have > no effect as the current line does not contain any text when they are > processed". Is there any simple way to implement multiple line breaks. You might try using the 'preformatted' attribute. --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 11:50:14 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 63567 invoked from network); 2 Sep 2003 11:50:14 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 11:50:14 -0000 Received: (qmail 4712 invoked by uid 500); 2 Sep 2003 11:49:27 -0000 Delivered-To: ohart@example.net Received: (qmail 4696 invoked by uid 500); 2 Sep 2003 11:49:27 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 4667 invoked from network); 2 Sep 2003 11:49:27 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 07:45:32 -0400 From: Thomas DeWeese <ohart@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: do quadcurves eat alot of memory? References: <ohart@example.net> In-Reply-To: <ohart@example.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N John Greene wrote: > When I'm displaying (on a JSVGCanvas) an image with 400 or so quadcurves > I often get outofmemory errors (I can render > 64,000 lines no prob). > Just to eliminate or confirm a possibility, does batik render quadcurves > in an especially memory-consumptive way? Hi John, We just pass the quadcurves to the JDK for rendering. We do need to do some complex operations on them (like stroking if you use stroking) to calculate bounds etc. Can you provide sample content? It seems to me like we have delt with much larger/complex files than 400 quadcurves but I guess I don't know for certain. Also are you aware that the default heap for Java is ~32-64MB - which isn't a lot these days (although 400 quadcurves should fit :). My suspicion is that you are using features like group opacity/filters etc that use lots of memory - it is not the quad curves. > Does it reduce them to massive polylines? As I said this is done by the JDK so I don't really know, but every quadcurve renderer I am aware of works this way (adaptive subdivision to screen res). > Are there a bunch of path-iterators hanging around past their > usefulness? I don't believe so (just about the only place we create path iterators is for markers). --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 12:09:31 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 73147 invoked from network); 2 Sep 2003 12:09:31 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 12:09:31 -0000 Received: (qmail 48964 invoked by uid 500); 2 Sep 2003 12:08:56 -0000 Delivered-To: ohart@example.net Received: (qmail 48916 invoked by uid 500); 2 Sep 2003 12:08:55 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 48891 invoked from network); 2 Sep 2003 12:08:55 -0000 X-Originating-IP: [83.161.120.155] X-Originating-Email: [ohart@example.net] From: "Ian Ross" <ohart@example.net> To: ohart@example.net Bcc: Subject: Re: filter element problem Date: Tue, 02 Sep 2003 12:06:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: <ohart@example.net> X-OriginalArrivalTime: 02 Sep 2003 12:06:09.0866 (UTC) FILETIME=[98A032A0:01C3714A] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N sorry my mistake. You were right....hahaha.......i was editing one file and compiling another.....as u do. My question about the namespaces for attributes still holds though. Thanks again Thomas. Ian >From: Thomas DeWeese <ohart@example.net> >Reply-To: "Batik Users" <ohart@example.net> >To: Batik Users <ohart@example.net> >Subject: Re: filter element problem >Date: Tue, 02 Sep 2003 07:39:17 -0400 > >Ian Ross wrote: >>Hi >>I use the following to create a bevel effect for a button. The problem is >>that the button shows up as a black box on the svg canvas. However when i >>view the svg file created, on IE, it appears the way i want it to. Can >>anyone spot any problems? >>Any help will be greatly appreciated. thanks in advance. >>Ian >> >>In the code below 'root' refers to the svg element and is passed to this >>method as an argument. > >> e.setAttributeNS(xlinkNS, "style", >>"fill:rgb(0,128,128);stroke:rgb(0,0,0);stroke-width:1;filter:url(#Bevel)"); > >Hi Ian, > > I think this is a typo, the 'style' attribute is _not_ in the >xlink namespace, it is in the 'null' namespace. > >> root.appendChild(e); >> >>_________________________________________________________________ >>Get less junk mail with ninemsn Premium. Click here >>http://ninemsn.com.au/premium/landing.asp >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: ohart@example.net >>For additional commands, e-mail: ohart@example.net >> >> > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: ohart@example.net >For additional commands, e-mail: ohart@example.net > _________________________________________________________________ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 12:10:51 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 73748 invoked from network); 2 Sep 2003 12:10:50 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 12:10:50 -0000 Received: (qmail 54849 invoked by uid 500); 2 Sep 2003 12:10:36 -0000 Delivered-To: ohart@example.net Received: (qmail 54830 invoked by uid 500); 2 Sep 2003 12:10:36 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 54805 invoked from network); 2 Sep 2003 12:10:35 -0000 X-Originating-IP: [83.161.120.155] X-Originating-Email: [ohart@example.net] From: "Ian Ross" <ohart@example.net> To: ohart@example.net Bcc: Subject: Re: filter element problem Date: Tue, 02 Sep 2003 11:52:24 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: <ohart@example.net> X-OriginalArrivalTime: 02 Sep 2003 11:52:24.0789 (UTC) FILETIME=[ACD77050:01C37148] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi Thomas Thanks for the reply. I tried what u said but i still get the black rectangle. Also im confused about one small thing. When you set and attribute do u use the svg namespace or the null namesspace?? Thanks Ian >From: Thomas DeWeese <ohart@example.net> >Reply-To: "Batik Users" <ohart@example.net> >To: Batik Users <ohart@example.net> >Subject: Re: filter element problem >Date: Tue, 02 Sep 2003 07:39:17 -0400 > >Ian Ross wrote: >>Hi >>I use the following to create a bevel effect for a button. The problem is >>that the button shows up as a black box on the svg canvas. However when i >>view the svg file created, on IE, it appears the way i want it to. Can >>anyone spot any problems? >>Any help will be greatly appreciated. thanks in advance. >>Ian >> >>In the code below 'root' refers to the svg element and is passed to this >>method as an argument. > >> e.setAttributeNS(xlinkNS, "style", >>"fill:rgb(0,128,128);stroke:rgb(0,0,0);stroke-width:1;filter:url(#Bevel)"); > >Hi Ian, > > I think this is a typo, the 'style' attribute is _not_ in the >xlink namespace, it is in the 'null' namespace. > >> root.appendChild(e); >> >>_________________________________________________________________ >>Get less junk mail with ninemsn Premium. Click here >>http://ninemsn.com.au/premium/landing.asp >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: ohart@example.net >>For additional commands, e-mail: ohart@example.net >> >> > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: ohart@example.net >For additional commands, e-mail: ohart@example.net > _________________________________________________________________ E-mail just got a whole lot better. New ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 12:21:48 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 77749 invoked from network); 2 Sep 2003 12:21:48 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 12:21:48 -0000 Received: (qmail 78629 invoked by uid 500); 2 Sep 2003 12:21:41 -0000 Delivered-To: ohart@example.net Received: (qmail 78615 invoked by uid 500); 2 Sep 2003 12:21:40 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 78595 invoked from network); 2 Sep 2003 12:21:40 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 08:21:11 -0400 From: Thomas DeWeese <ohart@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: filter element problem References: <ohart@example.net> In-Reply-To: <ohart@example.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ian Ross wrote: > hi Thomas > Thanks for the reply. I tried what u said but i still get the black > rectangle. Also im confused about one small thing. When you set and > attribute do u use the svg namespace or the null namesspace?? Hi Ian, Essentially the only attribute[*] not in the 'null' namespace is the 'href' attribute which is in the xlink namespace (used for image, use, etc..). * the other attribute you will occationally see is the 'base' attribute which is in the xml namespace and is used to set the effective base url of the document for a subtree. >> From: Thomas DeWeese <ohart@example.net> >> Reply-To: "Batik Users" <ohart@example.net> >> To: Batik Users <ohart@example.net> >> Subject: Re: filter element problem >> Date: Tue, 02 Sep 2003 07:39:17 -0400 >> >> Ian Ross wrote: >> >>> Hi >>> I use the following to create a bevel effect for a button. The >>> problem is that the button shows up as a black box on the svg canvas. >>> However when i view the svg file created, on IE, it appears the way i >>> want it to. Can anyone spot any problems? >>> Any help will be greatly appreciated. thanks in advance. >>> Ian >>> >>> In the code below 'root' refers to the svg element and is passed to >>> this method as an argument. >> >> >>> e.setAttributeNS(xlinkNS, "style", >>> "fill:rgb(0,128,128);stroke:rgb(0,0,0);stroke-width:1;filter:url(#Bevel)"); >>> >> >> >> Hi Ian, >> >> I think this is a typo, the 'style' attribute is _not_ in the >> xlink namespace, it is in the 'null' namespace. >> >>> root.appendChild(e); >>> >>> _________________________________________________________________ >>> Get less junk mail with ninemsn Premium. Click here >>> http://ninemsn.com.au/premium/landing.asp >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: ohart@example.net >>> For additional commands, e-mail: ohart@example.net >>> >>> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: ohart@example.net >> For additional commands, e-mail: ohart@example.net >> > > _________________________________________________________________ > E-mail just got a whole lot better. New ninemsn Premium. Click here > http://ninemsn.com.au/premium/landing.asp > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ohart@example.net > For additional commands, e-mail: ohart@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 14:03:39 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 35623 invoked from network); 2 Sep 2003 14:03:39 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 14:03:39 -0000 Received: (qmail 68487 invoked by uid 500); 2 Sep 2003 14:02:50 -0000 Delivered-To: ohart@example.net Received: (qmail 68471 invoked by uid 500); 2 Sep 2003 14:02:49 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 68440 invoked from network); 2 Sep 2003 14:02:49 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 16:02:38 +0200 From: Vincent Hardy <ohart@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: JSVGCanvas in a JScrollPane again.... References: <ohart@example.net> Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body> Hello Zach,<br> <br> JSVGCanvas in a JScrollPane is pretty popular and we see a lot of demand for your work. If you are interested in contributing your work so that it becomes available to everyone getting Batik, please email me (privately so that we do not clutter the mailing list) and I'll explain how we could make the contribution happen,<br> <br> Cheers,<br> Vincent.<br> <br> Zach DelProposto wrote:<br> <blockquote type="cite" cite="ohart@example.net"> <blockquote type="cite"> <pre wrap="">I am in kind-of a bind and would love to help out in any way, if that might speed up the process. ' </pre> </blockquote> <pre wrap=""><!----> I will send it to you wednesday. Feel free to send me a private email to ensure that that is done. </pre> <blockquote type="cite"> <pre wrap="">I could use the current solution, but, when I zoom in, the document gets clipped. I think the clipping is because the canvas is always the document size. Something clips it so it will not draw bigger than the canvas. So when the viewport is bigger than the document's native size, and the document is being displayed at more than 100% normal size, the document gets clipped. The viewable image is never bigger than the document's native size. I have gone through Batik and tried to change the rendering size to no avail. I am starting to think the clipping is coming from one of the java.awt or javax.swing classes. Changing the canvas size, however, causes Batik to rescales the image again. Does your new "scroll pane" address this issue or is this a separate problem? </pre> </blockquote> <pre wrap=""><!----> Currently, the way it works (from memory) is: a) document is scaled to fit (aspect ratio maintained) in window b) user may zoom, pan, or enlarge/reduce window c) if window is enlarged (and, lets say, the document is being magnified 200%), no clipping will occur. however, because the viewbox transform is changed by Batik (via updateRenderingTransform()) the scroll position / translate position is not quite right, and, clipping can occur. The current scroll code has this problem. That's why I need to override and modify the updateRenderingTransform() method. (I only recently figured this out from this list and some of my own investigation). This can be eliminated (no clipping) if after a resize of the window (canvas) the viewbox transform is reset (scaled into the window). Then when a zoom occurs (which is via the rendering transform), no clipping will occur (I'm fairly certain of this). --------------------------------------------------------------------- To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:ohart@example.net">ohart@example.net</a> For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:ohart@example.net">ohart@example.net</a> </pre> </blockquote> <br> </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 15:35:58 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 81486 invoked from network); 2 Sep 2003 15:35:58 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 15:35:58 -0000 Received: (qmail 23332 invoked by uid 500); 2 Sep 2003 15:35:47 -0000 Delivered-To: ohart@example.net Received: (qmail 23312 invoked by uid 500); 2 Sep 2003 15:35:47 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 23290 invoked from network); 2 Sep 2003 15:35:46 -0000 X-Injected-Via-Gmane: http://gmane.org/ To: ohart@example.net From: David Eppstein <ohart@example.net> Subject: Re: anti-alias - attached files (1/1) Date: Tue, 02 Sep 2003 08:35:57 -0700 Organization: Information and Computer Science, UC Irvine Lines: 133 Message-ID: <ohart@example.net> References: <ohart@example.net> <ohart@example.net> <ohart@example.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------wzNcay1OaQeU" X-Complaints-To: ohart@example.net User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X) X-Face: %L;%tM$D+%zkQ$zp8f/vAx*mr6T79jgxh,SC!$,8.r%HBe}KZ)iMb$tB.Z,30 3QLpj-NoP*NzsIC,boYU]bQ]H'<P%JD/,.J>y<#4ga3$21: Sender: news <ohart@example.net> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------wzNcay1OaQeU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <ohart@example.net>, Thomas DeWeese <ohart@example.net> wrote: > >>I would like to add anti-aliasing to improve the appearance of the text. I > >>have seen a little discussion about this in the mail archives but no > >>examples of how to do it. > > > > I'm getting text antialiasing with default settings of Batik's > > rasterizer under OS X. So maybe this is another of these things that > > you can't change in Batik itself or your SVG files, it's built into your > > Java version? > > If you can provide a small sample rendering (to the list if < 10K-20K, or > to me if larger) it might help. Sometimes people don't recognise > anti-aliasing > for what it is. Ok... I've attached the text01 example from the SVG spec, an antialiased png file resulting from batik-rasterizer, and a crop with the pixels blown up to 400% and with an opaque background so you can see the antialiasing more clearly. -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science --------------wzNcay1OaQeU Content-Type: image/svg+xml; name="text01.svg" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="text01.svg" PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBV QkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iIAogICJodHRwOi8vd3d3LnczLm9yZy9H cmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHdpZHRoPSIxMGNtIiBoZWln aHQ9IjNjbSIgdmlld0JveD0iMCAwIDEwMDAgMzAwIgogICAgIHhtbG5zPSJodHRwOi8vd3d3 LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIj4KICA8ZGVzYz5FeGFtcGxlIHRleHQw MSAtICdIZWxsbywgb3V0IHRoZXJlJyBpbiBibHVlPC9kZXNjPgogIDx0ZXh0IHg9IjI1MCIg eT0iMTUwIiAKICAgICAgICBmb250LWZhbWlseT0iVmVyZGFuYSIgZm9udC1zaXplPSI1NSIg ZmlsbD0iYmx1ZSIgPgogICAgSGVsbG8sIG91dCB0aGVyZQogIDwvdGV4dD4KICA8IS0tIFNo b3cgb3V0bGluZSBvZiBjYW52YXMgdXNpbmcgJ3JlY3QnIGVsZW1lbnQgLS0+CiAgPHJlY3Qg eD0iMSIgeT0iMSIgd2lkdGg9Ijk5OCIgaGVpZ2h0PSIyOTgiCiAgICAgICAgZmlsbD0ibm9u ZSIgc3Ryb2tlPSJibHVlIiBzdHJva2Utd2lkdGg9IjIiIC8+Cjwvc3ZnPgo= --------------wzNcay1OaQeU Content-Type: image/png; name="text01.png" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="text01.png" 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 --------------wzNcay1OaQeU Content-Type: image/png; name="text01x4.png" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="text01x4.png" iVBORw0KGgoAAAANSUhEUgAAANIAAABqCAIAAABGYpgNAAAABGdBTUEAALGeYUxB9wAAACBj SFJNAAB6JQAAgIMAAPn/AACA6AAAUggAARVYAAA6lwAAF2/XWh+QAAAACXBIWXMAAA7EAAAO xAGVKw4bAAAE/ElEQVR42u2dz2sTaRyHBw9exaKnChZFD+IfoCeLiNiLQQWp6M2DFERB7UXQ u4IgePGit6JQtF1Z9+AKmZg20W631W27Xa1uW93abkmTav2xXazd2yffLJ0w08mkE30enqPz 5vXNozRv3pk6iwBVx2EJgOyA7ADIDsgOgOyA7ADIDsgOgOyA7OC7zG7BMDExtaRfDJWaxPv3 c/LNm7eyUJiVtbi4Hwzr1+dkY+NDGcW1ZEd2ZEd2ZEd2ZEd2/3/7HWfR+EkWDJWaxOnTrrSv e+LEHVmLi+u1ng0NXTKKa8mO7MiO7MiO7MiO7MpnV5CzhkpN4vz5pLSve/Zsh/yWstu8OS2j uJbsyI7syI7syI7syI7syG45fDWQHdmRHdmRHdmRHdlVI7v29qzcv/+J3L27T+7d2ytv3EhJ ezwi6HLHObt/DFevunLPnl+lXZ/DhzMynX4q+UhBdmRHdmRHdmRX29nZ44eVyu7ChaQMk934 +ISsr5+UpX+XYNbV/SmfPftD1uJHit7e32WYNbEeOPCz/GQgO7IjO7IjO7IjuzhnNye7un6T Q0Mv5eDgSCBfvXot7Y+rQbObnPxbei1NU5Mrx8b+knaZ7Hx27hyQdpy1a3tlrWQ3MjImvdZn x46MfPFiVObzBXn37mPpNc6mTSlJdmRHdmRHdmRHdvHNbtWqBVmpH0X96Ce769cfSXttc/M9 Gebjzpo176TjzEo/2+ZxyO7SJVfacRKJH2XQNZmampalb1lxfcrf6kV2ZEd2ZEd2ZEd2K5md 43yR9sftxsY+uWvX00Dar5zr6nIyaHYHD2alvTaT6Zf26/x5H9jx9+37Rdrxu7v7ZJyzs+ts x3nwICvDHOfcunVUlq5/nyQ7siM7siM7siO7uGWXl/Z4YKWOAly8mJRBs2toGJeO89UY7ced ZLJHxjm7jRtfS8dZkP39QzLMe3fqlCvtPK9d+0mSHdmRHdmRHdmRXdyyKx7zjOKxikFv4flo KJ3nv/LQoaw8cqRbNjcv36amJ3Jw8LmMW3be61P87+OdIcx719rqSvtaLS2dkuzIjuzIjuzI juzim91K3Z7ttV25ZcuotNcODz+XixHjNbdqZhd0ffxsd/vB64hue3tSkh3ZkR3ZkR3ZkR3Z +d0uPn78kbTXtrb+IP28PUH/jB/isF189Gha2nHa2h7KMP+0Nmx4K+12ffntaLIjO7IjO7Ij O7Iju6Xxvm24+LV3R0eXDDo3u/Xa0pKSeUOcs7t5My3tOPX1AzJn8DOmfUxl6ZpPy/KP4SE7 siM7siM7siM7slsa+5jH1avnpdfxzO3bh+W5c648eTIlt217KcP8Ouc4ZDczk5fep1Y/ysuX XdnZ+VgmEkW9xjl27J4sPyuyIzuyIzuyIzuyW9nsitOK4pjnmTOuLD0qeEcGHfPKFVeGu1un +NEkkUhKr9u5/aznunU9MoprvbC3X9kjq8HXZF7eupWS/mdCdmRHdmRHdmRHdtXIzn7dm8vN LKnXr34Lg91anJ7Oybm5DzLM+Ha5s9kBabeaXbdf2sdnfzYEfV27VnYN7aOoo7g2KPax2m1t 3fL27Yy8f79H2i305R2hIDuyIzuyIzuyI7tqZAffD5U6yro8yI7syA7IDsiO7ODbgeyA7IDs AMgOyA6A7IDsAMgOyA6A7IDsgOwAyA7IDoDsgOwAyA7IDoDsgOyA7AAi5T9IEU4VDRrTvgAA AABJRU5ErkJggg== --------------wzNcay1OaQeU Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net --------------wzNcay1OaQeU-- From batikohart@example.net Tue Sep 02 16:42:55 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 13805 invoked from network); 2 Sep 2003 16:42:54 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 16:42:54 -0000 Received: (qmail 6729 invoked by uid 500); 2 Sep 2003 16:42:41 -0000 Delivered-To: ohart@example.net Received: (qmail 6707 invoked by uid 500); 2 Sep 2003 16:42:40 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 6666 invoked from network); 2 Sep 2003 16:42:40 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 12:42:14 -0400 From: Thomas DeWeese <ohart@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: anti-alias - attached files (1/1) References: <ohart@example.net> <ohart@example.net> <ohart@example.net> <ohart@example.net> In-Reply-To: <ohart@example.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N David Eppstein wrote: > In article <ohart@example.net>, > Thomas DeWeese <ohart@example.net> wrote: > > >>>>I would like to add anti-aliasing to improve the appearance of the text. I >>>>have seen a little discussion about this in the mail archives but no >>>>examples of how to do it. >>> >>>I'm getting text antialiasing with default settings of Batik's >>>rasterizer under OS X. So maybe this is another of these things that >>>you can't change in Batik itself or your SVG files, it's built into your >>>Java version? >> >> If you can provide a small sample rendering (to the list if < 10K-20K, or >>to me if larger) it might help. Sometimes people don't recognise >>anti-aliasing >>for what it is. > > > Ok... I've attached the text01 example from the SVG spec, an antialiased > png file resulting from batik-rasterizer, and a crop with the pixels > blown up to 400% and with an opaque background so you can see the > antialiasing more clearly. Hi David, Thanks for doing that it may help Chris understand what AA looks like, however my comment was really directed at Chris (I was just following up to your note because it was the last in the thread - sorry for the confusion). So Chris do you see the little 'fuzzy bits' around your letters? --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 17:21:43 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 31817 invoked from network); 2 Sep 2003 17:21:43 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 17:21:43 -0000 Received: (qmail 93119 invoked by uid 500); 2 Sep 2003 17:21:29 -0000 Delivered-To: ohart@example.net Received: (qmail 93105 invoked by uid 500); 2 Sep 2003 17:21:29 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 93089 invoked from network); 2 Sep 2003 17:21:29 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 13:21:14 -0400 From: Thomas DeWeese <ohart@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: Woes concerning the Crimson parser, Batik, Webstart, and ClassLoaders References: <001301c36e46$83ff2b50$19c909c0@k9> In-Reply-To: <001301c36e46$83ff2b50$19c909c0@k9> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mark Claassen wrote: > This is more of an FYI than a request for assistance. But this caused > me a lot of grief and I wanted to post the issue here in case anyone > else has the same problem. Also, I am not sure who to report this bug > to (webstart folks, xml folks, apache ...) Hi Mark, I don't think I can fix your problem, but I suspect the problem is really a WebStart problem. It sounds to me like some sort of race condition in them setting the Thread Context on the thread used to load your application (reading the docs for getContextClassLoader the behaviour should be that your new thread uses your application class loader). When you report it to them I would suggest bypassing the SAXSVGDocumentFactory and try calling: XMLReader parser = XMLReaderFactory.createXMLReader(parserClassName); Anyway, good luck. > First, the setup: > > if (factory == null) { > Class c = Class.forName("dsi.ext.overlay.client.OverlayParser"); > Object o = c.newInstance(); > factory = new > SAXSVGDocumentFactory("dsi.ext.overlay.client.OverlayParser"); > } > .... > public void run() { > document = factory.createSVGDocument(uri); > } > This throws the ClassNotFoundException for the OverlayParser. The same > OverlayParser that was just loaded and created. > > Here is the OverlayParser declaration: > public class OverlayParser extends SAXParser implements XMLReader > > The tricky bit is that we are distributing our app with Webstart. The > error was really spuratic though. We would try it, and it would fail, > we would do something as trivial as turning on the webstart console, and > it might work. Then it would fail again,... > > Even worse, it would sometimes fail within the same VM instance. We > have a client server app, and we would logout and log back in and it > would fail when it was working before. > > What was happening was that Webstart uses needs its own ClassLoader to > do its thing. The parser factory stuff uses a class called NewInstance > to create the parsers (org.xml.sax.helpers.NewInstance.java). My class > that contained the code to create the factory (above) was loaded by the > webstart class loader. Therefore Class.forName uses this ClassLoader. > NewInstance would use the system class loader. So even loading and > creating the OverlayParser class in my init() method was not enough. > > NewInstance gets the ClassLoader by > static class ClassLoaderFinderConcrete extends ClassLoaderFinder { > ClassLoader getContextClassLoader() { > return Thread.currentThread().getContextClassLoader(); > } > } > > Since the Thread class is a system class, it can be (or, perhaps, must > be) loaded by the System ClassLoader. So when I created a thread to > load the document, the getContextClassLoader call returned the system > class loader, which had no clue where my OverlayParser was. Again, I > have no idea why this error occurred spuratically. > > The solution was to get the class loader when I created by factory and > then call setContextClassLoader with this class loader after I created > my thread that loaded the document. > > This does not seem like something people should have to know about, but > I have no idea what to do with this information or who to write about > the bug. (But the Batik users group is filled with smart people, so I > will try here first :) > > Mark > > --------------------- > "Nonviolence is the answer to the crucial political and moral questions > of our time; the need for man to overcome oppression and violence > without resorting to oppression and violence. " > -- Martin Luther King Jr. > > Mark Claassen > Donnell Systems, Inc. > 300 S. St. Louis Blvd. Ste. 203 > South Bend, IN 46617 > E-mail: mailto:ohart@example.net > Voice: 833-276-4528 > Fax: 833-276-4528 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ohart@example.net > For additional commands, e-mail: ohart@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 17:39:05 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 38397 invoked from network); 2 Sep 2003 17:39:05 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 17:39:05 -0000 Received: (qmail 30009 invoked by uid 500); 2 Sep 2003 17:38:50 -0000 Delivered-To: ohart@example.net Received: (qmail 29994 invoked by uid 500); 2 Sep 2003 17:38:50 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 29910 invoked from network); 2 Sep 2003 17:38:49 -0000 From: "Chris Faulkner" <ohart@example.net> To: "Batik Users" <ohart@example.net> Subject: RE: anti-alias - attached files (1/1) Date: Tue, 2 Sep 2003 18:37:12 +0100 Message-ID: <ohart@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <ohart@example.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes I do see the fuzziness around the letters. Thanks to both of you for helping on this. Chris -----Original Message----- From: Thomas DeWeese [mailto:ohart@example.net] Sent: 02 September 2003 17:42 To: Batik Users Subject: Re: anti-alias - attached files (1/1) David Eppstein wrote: > In article <ohart@example.net>, > Thomas DeWeese <ohart@example.net> wrote: > > >>>>I would like to add anti-aliasing to improve the appearance of the text. I >>>>have seen a little discussion about this in the mail archives but no >>>>examples of how to do it. >>> >>>I'm getting text antialiasing with default settings of Batik's >>>rasterizer under OS X. So maybe this is another of these things that >>>you can't change in Batik itself or your SVG files, it's built into your >>>Java version? >> >> If you can provide a small sample rendering (to the list if < 10K-20K, or >>to me if larger) it might help. Sometimes people don't recognise >>anti-aliasing >>for what it is. > > > Ok... I've attached the text01 example from the SVG spec, an antialiased > png file resulting from batik-rasterizer, and a crop with the pixels > blown up to 400% and with an opaque background so you can see the > antialiasing more clearly. Hi David, Thanks for doing that it may help Chris understand what AA looks like, however my comment was really directed at Chris (I was just following up to your note because it was the last in the thread - sorry for the confusion). So Chris do you see the little 'fuzzy bits' around your letters? --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 18:02:08 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 46341 invoked from network); 2 Sep 2003 18:02:08 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 18:02:08 -0000 Received: (qmail 79845 invoked by uid 500); 2 Sep 2003 18:01:53 -0000 Delivered-To: ohart@example.net Received: (qmail 79827 invoked by uid 500); 2 Sep 2003 18:01:53 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 79807 invoked from network); 2 Sep 2003 18:01:53 -0000 Message-ID: <015401c37178$76c2adb0$71307f42@DRAGONFLY> From: "Denis Bohm" <ohart@example.net> To: "Batik Users" <ohart@example.net> References: <ohart@example.net> <ohart@example.net> <ohart@example.net> <ohart@example.net> <ohart@example.net> Subject: access control exception from rhino, but not java? Date: Tue, 2 Sep 2003 10:34:26 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm using the Batik JSVGCanvas in a JApplet. I also have a Java class that creates a multicast socket, joins a group, and sends some data. When I run it directly from JApplet it works fine. When I try to run it from an SVG script I get the access control exception shown below. Any idea why this would be happening? java.security.AccessControlException: access denied (java.net.SocketPermission 83.161.120.155 connect,accept,resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkMulticast(Unknown Source) at java.net.MulticastSocket.joinGroup(Unknown Source) at com.hp.hpl.epc.data.MulticastSender.<init>(MulticastSender.java:54) at com.hp.hpl.epc.data.MulticastSender.<init>(MulticastSender.java:62) at com.hp.hpl.epc.data.MulticastSender.main(MulticastSender.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:230) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c2.call(Inline <script> http://www.fireflydesign.com/hpdemo/demo.svg:-1:6) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c5.call(<SVG>:1) at org.mozilla.javascript.gen.c5.exec(<SVG>) at org.apache.batik.script.rhino.RhinoInterpreter.evaluate(RhinoInterpreter.jav a:356) at org.apache.batik.bridge.ScriptingEnvironment$EvaluateRunnable.run(ScriptingE nvironment.java:637) at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:204) at java.lang.Thread.run(Unknown Source) --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Tue Sep 02 23:30:24 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 93666 invoked from network); 2 Sep 2003 23:30:24 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Sep 2003 23:30:24 -0000 Received: (qmail 65209 invoked by uid 500); 2 Sep 2003 23:29:58 -0000 Delivered-To: ohart@example.net Received: (qmail 65147 invoked by uid 500); 2 Sep 2003 23:29:56 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 65036 invoked from network); 2 Sep 2003 23:29:52 -0000 Message-ID: <ohart@example.net> Date: Tue, 02 Sep 2003 11:36:05 -0500 From: John Greene <ohart@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users <ohart@example.net> Subject: Re: do quadcurves eat alot of memory? References: <ohart@example.net> <ohart@example.net> In-Reply-To: <ohart@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I am specifying a stroke and fill color but I have not specified any opacity or filters. Perhaps something's on by default. I've decided to go with polygons anyway. I didn't know that about the java heap. Wow, that's small. It would explain alot. I was just living with it. Silly. I'm gonna increase it today. Thomas DeWeese wrote: > John Greene wrote: > >> When I'm displaying (on a JSVGCanvas) an image with 400 or so >> quadcurves I often get outofmemory errors (I can render >> 64,000 lines no prob). >> Just to eliminate or confirm a possibility, does batik render >> quadcurves in an especially memory-consumptive way? > > > Hi John, > > We just pass the quadcurves to the JDK for rendering. We do need to > do some complex operations on them (like stroking if you use stroking) to > calculate bounds etc. > > Can you provide sample content? It seems to me like we have delt with > much larger/complex files than 400 quadcurves but I guess I don't know > for > certain. Also are you aware that the default heap for Java is ~32-64MB - > which isn't a lot these days (although 400 quadcurves should fit :). > My suspicion is that you are using features like group opacity/filters > etc > that use lots of memory - it is not the quad curves. > > > Does it reduce them to massive polylines? > > As I said this is done by the JDK so I don't really know, but every > quadcurve renderer I am aware of works this way (adaptive subdivision to > screen res). > > > Are there a bunch of path-iterators hanging around past their > > usefulness? > > I don't believe so (just about the only place we create path > iterators is > for markers). > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ohart@example.net > For additional commands, e-mail: ohart@example.net > > > --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Wed Sep 03 00:22:38 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 12190 invoked from network); 3 Sep 2003 00:22:38 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Sep 2003 00:22:38 -0000 Received: (qmail 97080 invoked by uid 500); 3 Sep 2003 00:22:15 -0000 Delivered-To: ohart@example.net Received: (qmail 97062 invoked by uid 500); 3 Sep 2003 00:22:15 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 97047 invoked from network); 3 Sep 2003 00:22:15 -0000 From: "Chris Faulkner" <ohart@example.net> To: "Batik Users" <ohart@example.net> Subject: RE: anti-alias - attached files (1/1) Date: Tue, 2 Sep 2003 17:30:29 +0100 Message-ID: <ohart@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <ohart@example.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks for your help with this. I went back to my original data and my images are anti-aliased. I guess I was expecting a bit more "blur". The Adobe SVG viewer seems to do more filtering in its "High Quality" mode but the Batik output is much better. Chris -----Original Message----- From: news [mailto:ohart@example.net]On Behalf Of David Eppstein Sent: 02 September 2003 16:36 To: ohart@example.net Subject: Re: anti-alias - attached files (1/1) In article <ohart@example.net>, Thomas DeWeese <ohart@example.net> wrote: > >>I would like to add anti-aliasing to improve the appearance of the text. I > >>have seen a little discussion about this in the mail archives but no > >>examples of how to do it. > > > > I'm getting text antialiasing with default settings of Batik's > > rasterizer under OS X. So maybe this is another of these things that > > you can't change in Batik itself or your SVG files, it's built into your > > Java version? > > If you can provide a small sample rendering (to the list if < 10K-20K, or > to me if larger) it might help. Sometimes people don't recognise > anti-aliasing > for what it is. Ok... I've attached the text01 example from the SVG spec, an antialiased png file resulting from batik-rasterizer, and a crop with the pixels blown up to 400% and with an opaque background so you can see the antialiasing more clearly. -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science --------------------------------------------------------------------- To unsubscribe, e-mail: ohart@example.net For additional commands, e-mail: ohart@example.net From batikohart@example.net Wed Sep 03 01:07:57 2003 Return-Path: <batikohart@example.net> Delivered-To: ohart@example.net Received: (qmail 26760 invoked from network); 3 Sep 2003 01:07:57 -0000 Received: from daedalus.apache.org (HELO apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Sep 2003 01:07:57 -0000 Received: (qmail 87678 invoked by uid 500); 3 Sep 2003 01:07:30 -0000 Delivered-To: ohart@example.net Received: (qmail 87660 invoked by uid 500); 3 Sep 2003 01:07:29 -0000 Mailing-List: contact ohart@example.net; run by ezmlm Precedence: bulk list-help: <mailto:ohart@example.net> list-unsubscribe: <mailto:ohart@example.net> list-post: <mailto:ohart@example.net> Reply-To: "Batik Users" <ohart@example.net> Delivered-To: mailing list ohart@example.net Received: (qmail 87637 invoked from network); 3 Sep 2003 01:07:29 -0000 Date: Tue, 2 Sep 2003 21:06:45 -0400 (EDT) From: Jihai Qiu <ohart@example.net> To: Batik Users <ohart@example.net> Subject: Re: [Q] text background color and multiple line breaks In-Reply-To: <ohart@example.net> Message-ID: <ohart@example.net> References: <ohart@example.net> <ohart@example.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thank you Thomas, Is it possible to use some
{'source': 'Apache Software Foundation Public Mail Archives'}