You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Schmitt, Christian (ext.)" <Ch...@Dresdner-Bank.com> on 2004/10/12 14:44:05 UTC

[PATCH] PDFTextPainter.java in fop-0_20_2-maintain Branch

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);
         }

Re: [PATCH] PDFTextPainter.java in fop-0_20_2-maintain Branch

Posted by Chris Bowditch <bo...@hotmail.com>.
Schmitt, Christian (ext.) wrote:
 > 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.

Hi Christian,

thanks for submitting your patch. I have created a bugzilla entry and attached 
your patch to it. You can find it here:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=31692

In future I would be grateful if you can follow the procedure for submitting 
patches:

http://xml.apache.org/fop/dev/index.html#patches

Chris