Hi,
while updating our project I found this one bug where the
color for SVG text elements wasn't set correctly.
The patch below should fix that.

Cheers,
Christian

P.S.: Please CC: me on replies, since I don't usually read this list.

Index: PDFTextPainter.java
===================================================================
RCS file:
/home/cvspublic/xml-fop/src/org/apache/fop/svg/Attic/PDFTextPainter.java,v
retrieving revision 1.7.2.5
diff -u -r1.7.2.5 PDFTextPainter.java
--- PDFTextPainter.java 9 Sep 2003 18:49:42 -0000       1.7.2.5
+++ PDFTextPainter.java 12 Oct 2004 12:35:42 -0000
@@ -187,7 +187,6 @@
         //Set up font
         List gvtFonts =
 
(List)aci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.GVT_FONT
_FAMILIES);
-        Paint forg = (Paint)aci.getAttribute(TextAttribute.FOREGROUND);
         Float size = (Float)aci.getAttribute(TextAttribute.SIZE);
         if (size == null) {
             return loc;
@@ -204,6 +203,7 @@
         Float posture = (Float)aci.getAttribute(TextAttribute.POSTURE);
         Float taWeight = (Float)aci.getAttribute(TextAttribute.WEIGHT);

+        Paint forg = tpi.fillPaint;
         if (forg instanceof Color) {
             g2d.setColor((Color)forg);
         }

Reply via email to