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 Oscar Picasso <os...@yahoo.com> on 2006/02/01 21:28:16 UTC
textLength: bug or feature?
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
Re: textLength: bug or feature?
Posted by Oscar Picasso <os...@yahoo.com>.
Hi Thomas,
I filed a bugzilla bug:
http://issues.apache.org/bugzilla/show_bug.cgi?id=38498
Oscar
thomas.deweese@kodak.com wrote: Hi Oscar,
Oscar Picasso wrote on 02/01/2006 03:28:16 PM:
> I have tried the following with squiggle:
>
> 1- something like:
> one two three four
> ==> the whole text is justified on 200
>
> 2- but if I have:
> three four
> ==> 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 behavior very disturbing
and annoying.
>
> Is it in the specs? Or could it be a bug?
It is a bug. The text doesn't have a character of it's own to
hang it's properties on so the textLength get's "lost". Can you
please file a bugzilla bug on this so it doesn't get lost?
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
---------------------------------
Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
Re: textLength: bug or feature?
Posted by th...@kodak.com.
Hi Oscar,
Oscar Picasso <os...@yahoo.com> wrote on 02/01/2006 03:28:16 PM:
> 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>
> ==> 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 behavior very disturbing
and annoying.
>
> Is it in the specs? Or could it be a bug?
It is a bug. The text doesn't have a character of it's own to
hang it's properties on so the textLength get's "lost". Can you
please file a bugzilla bug on this so it doesn't get lost?
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org