text-decoration:underline

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

text-decoration:underline

Arne Lindow
Hi,
I have a problem to create a text-element with text-decoration:underline
with SVGGraphics2D. I tried the following:

SVGGraphics2D svg = ...;
...
AttributedString as = new AttributedString("Hello");
as.addAttribute(java.awt.font.TextAttribute.UNDERLINE,TextAttribute.UNDERLINE_ON,
0, attrName.length());
svg.drawString(as.getIterator(),x,12);

But the resulting SVG-document includes one text-element and a seperate
line-element. Do anybody know an easy way to customize the behaviour of
the creation of an textelement with style="text-decoration:underline"?

Thank you very much.

Best Regards
Arne

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]