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 Marshall Keith J NPRI <Ma...@Npt.NUWC.Navy.Mil> on 2008/02/13 15:53:06 UTC

Changing Style Property - Line Thickness Problem

Batik-Users,

I've run into a problem after attempting to change the color of a text element that references an embedded stylesheet. The problem is that after I change the color the line thickness is lost. For some reason, the text becomes thicker.

During the update I change the color by changing two style properties, for example:   

(((SVGStylable)n).getStyle()).setProperty("stroke", "rgb(122,122,122)", ""); 
(((SVGStylable)n).getStyle()).setProperty("fill", "rgb(122,122,122)", ""); 

The stylesheet value for the text element is: .st9 {fill:#000000;font-family:Arial;font-size:0.666664em}

Does anyone know why the original link thickness is changed?

Thanks for your help.



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