>>>>> "GS" == Geeta Shukla <[EMAIL PROTECTED]> writes:

GS> Hi, Appended below is a part of the image that I need to draw
GS> using SVG. My problem is that I can't figure out a way to angle
GS> the text. I tried using text on path, but the requirement is
GS> strictly to have the text center aligned to the line.

GS> I know this problem isn't directly related to batik, but any
GS> pointers in achieving the requirement would be of great help.

Hi Geeta,

    Well you have lots of options and I don't know what tools you have
available (like can you construct the text and get it's bbox from the
SVGDOM? or are you just spewing out SVG from a totally non graphical
service somewhere) but the simplist solution to your problem is
probably to use the 'dy' attribute on text.  I think if you just stick
'dy="-.4em"' on your text elements (even if it's on a path, you can
also rotate the text with a simple transform) they will be fairly well
centered (you can play with the 'em' value to improve the centering if
it's off a bit).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to