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 Arne Lindow <li...@tzi.de> on 2005/05/22 18:42:11 UTC

text-decoration:underline

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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org