You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Ludwig Reiter <Lu...@intevation.de> on 2007/02/07 16:45:11 UTC

How can I display spaces and newlines with a SVGTextElement?

Hi,

I got a string with spaces, tabs and newlines and used this to create a Text
node,
but unfortunatly spaces, tabs and newlines are not displayed on the screen.
How can I change this?

Regards,
 Ludwig Reiter
-- 
View this message in context: http://www.nabble.com/How-can-I-display-spaces-and-newlines-with-a-SVGTextElement--tf3187759.html#a8847845
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: How can I display spaces and newlines with a SVGTextElement?

Posted by Andreas Neumann <ne...@karto.baug.ethz.ch>.
Hi Ludwig,

SVG 1.1 full only knows hard line breaks with <tspan /> elements and a 
x/dy attribute.

Spaces can be preserved by using the xml:space="preserve" attribute.

Batik, is, however the first SVG viewer that also has flow text. See the 
batik website for more information.

Andreas

Ludwig Reiter wrote:
> Hi,
> 
> I got a string with spaces, tabs and newlines and used this to create a Text
> node,
> but unfortunatly spaces, tabs and newlines are not displayed on the screen.
> How can I change this?
> 
> Regards,
>  Ludwig Reiter


-- 
----------------------------------------------
Andreas Neumann - Institute of Cartography
Swiss Federal Institute of Technology (ETH)
ETH Hoenggerberg
CH-8093  Zurich, Switzerland
Phone: ++41-1-633 3031, Fax: ++41-1-633 1153
e-mail: neumann@karto.baug.ethz.ch
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org