xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <cam-batik-us...@aka.mcc.id.au>
Subject Re: little help
Date Mon, 07 Jun 2004 10:55:50 GMT
Hi Ananth.

ananth balasubramanyam:
> I am replacing the text of a text element with a new text string and
> am trying to shift the text element, either to the left or the right based
> on the the difference in old and new widths(so as to maintain the
> center alignment). Here is a sample code. I dont
> seem to be visually getting the desired results. Could somebody please
> help me with this. Am i doing something wrong ?

Not addressing your actual problem, but why don't you just set
text-anchor="middle" on your text element so you the centering is done
automatically?

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922

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


Mime
View raw message