xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Picasso <oscgoo...@yahoo.com>
Subject textLength: bug or feature?
Date Wed, 01 Feb 2006 20:28:16 GMT
 Hi,

I have tried the following with squiggle:

1- something like:
<text textLength="200" ..>
  one two 
  <tspan>three four</tspan>
</text>

==> the whole text is justified on 200

2- but if I have:
<text textLength="200" ..>
  <tspan>three four</tspan>
</text>

or

<text textLength="200" ..>
  <tspan>one two</tspan>
  <tspan>three four</tspan>
</text>

or
<text textLength="200" ..>
  <tspan>one two</tspan>
    and
  <tspan>three four</tspan>
</text>

or
<text textLength="200" ..>
  <tspan>one two</tspan>
  <tspan>three four</tspan> and five
</text>

==> The textLength attribute is not taken into account.

Actually, in order to have the textLength work the text element must start with a non whitespace
character. I find this behaviour very disturbing and annoying. 

Is it in the specs? Or could it be a bug?


I have used batik built from svn a couple of days ago.

Oscar

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
View raw message