Return-Path: Delivered-To: apmail-xml-batik-dev-archive@xml.apache.org Received: (qmail 84895 invoked by uid 500); 20 Feb 2002 10:25:03 -0000 Mailing-List: contact batik-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: batik-dev@xml.apache.org Delivered-To: mailing list batik-dev@xml.apache.org Received: (qmail 84883 invoked from network); 20 Feb 2002 10:25:03 -0000 Message-ID: <3C74217B.6E0D7AAF@sun.com> Date: Wed, 20 Feb 2002 23:21:48 +0100 From: Vincent Hardy X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: batik-dev@xml.apache.org Subject: Re: additional spaces in text - bug or feature References: <9261644B18D50C4A83D3F85615AE5EA30E4CB6@czprmailw01.cz.togethersoft.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Vladislav, This is happening because the piece of code which writes out the XML makes a tabbified output which does not play well with xml:space="preserve". In effect, it erroneously adds trailing spaces. I could argue this is not a bug as the goal is to have accurate visual rendering and we do have accurate rendering. However, I think we should fix it anyway. How important is this to you? Is that a critical problem? Note that we are using xml:space preserve in case the string you draw has leading or trailing spaces which we want to preserve or multiple spaces inside the string. Cheers, Vincent. Vladislav Protasov wrote: > > Hello, > > Thank you for quick response. > > In the same sample before closing tag 6 spaces added to make closing tag under opening tag, but it really adds this 6 spaces to "Hello Java 2D to SVG" and makes "Hello Java 2D to SVG " > and it possible to select this spaces in SVG viewer. > Is it bug or feature? > --------------- > > > > > > > > > > Hello Java 2D to SVG > > > > > > Thank you, > Vladislav > > -----Original Message----- > From: Vincent Hardy [mailto:vincent.hardy@sun.com] > Sent: Tuesday, February 19, 2002 10:46 AM > To: batik-dev@xml.apache.org > Cc: Vladislav Protasov > Subject: Re: svggen - Float font size? > > Vladislav, > > Thanks for reporting this. You actually found what can be fairly > described as a bug. The generator uses the font.getSize() method > where it should be using the font.getSize2D() method. > > I am going to add a bug in Bugzilla and I'll try to fix it ASAP. > Cheers, > Vincent. > > > Hello, > > > > Is it possible to generate SVG with float font size? > > > > I modified method paint () of TestSVGGen example from http://xml.apache.org/batik/svggen.html > > > > public void paint(Graphics2D g2d) { > > > > Font font=new Font("Arial", Font.PLAIN, 1); > > > > font=font.deriveFont(15.5f); > > > > g2d.setFont(font); > > > > g2d.drawString("Hello Java 2D to SVG", 40, 40); > > > > } > > > > It produces such output: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hello Java 2D to SVG > > > > > > > > > > > > > > > > > > > > > > > > > > Thank you, > > Vladislav > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org > For additional commands, e-mail: batik-dev-help@xml.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org > For additional commands, e-mail: batik-dev-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org For additional commands, e-mail: batik-dev-help@xml.apache.org