There is now one Class that contains all of the text rendering properties (that don't effect layout):
org.apache.batik.gvt.text.TextPaintInfo
This one class is now associated with the ACI through the TextAttribute 'GVTAttributedCharacterIterator.PAINT_INFO'.
This also replaces the use of java.awt.color.TextAttribute.FOREGROUND.
Thank you! It works!
Is it right that only the following three attributes of TextPaintInfo are used in this version?
public Paint fillPaint; public Paint strokePaint; public Stroke strokeStroke;
During testing I found another problem. I created a java.awt.BasicStroke and set this object to the strokeStroke attribute of the TextPaintInfo. The width and the cap are okay, but the dash has a little problem. If I view a svg document with the adobe svg-viewer the start of the dash is different than in my program.
SVG document:
<g stroke-dasharray="1, 1" stroke-dashoffset="0.0" ...>
<text ...>
...Program: float[] dash = new float[2]; dash[0] = 1; dash[1] = 1;
float dash_phase = 0.0f;
tpi.strokeStroke = new BasicStroke(width, cap, join, miterlimit, dash[], dash_phase);
Is this a known problem or is this my fault?
Adobe SVG Viewer 3.0 Java 1.3.1 Batik 1.5.1
Mathias Kalb
-- ProDatO Integration Technology GmbH Hauptstrasse 60, 91054 Erlangen http://www.prodato.de
Mathias Kalb, Dipl.-Inf. (FH) mailto:[EMAIL PROTECTED] fon: +49-9131-612877 fax: +49-9131-612881
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
