You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by gm...@apache.org on 2003/09/09 20:49:43 UTC

cvs commit: xml-fop/src/org/apache/fop/svg PDFTextPainter.java

gmazza      2003/09/09 11:49:43

  Modified:    src/org/apache/fop/svg Tag: fop-0_20_2-maintain
                        PDFTextPainter.java
  Log:
  Updates due to changes in Batik library.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.5   +11 -4     xml-fop/src/org/apache/fop/svg/Attic/PDFTextPainter.java
  
  Index: PDFTextPainter.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/Attic/PDFTextPainter.java,v
  retrieving revision 1.7.2.4
  retrieving revision 1.7.2.5
  diff -u -r1.7.2.4 -r1.7.2.5
  --- PDFTextPainter.java	25 Feb 2003 15:08:11 -0000	1.7.2.4
  +++ PDFTextPainter.java	9 Sep 2003 18:49:42 -0000	1.7.2.5
  @@ -70,6 +70,7 @@
   import org.apache.batik.gvt.TextPainter;
   import org.apache.batik.gvt.TextNode;
   import org.apache.batik.gvt.text.GVTAttributedCharacterIterator;
  +import org.apache.batik.gvt.text.TextPaintInfo;
   import org.apache.batik.gvt.text.Mark;
   import org.apache.batik.gvt.font.GVTFontFamily;
   import org.apache.batik.gvt.renderer.StrokingTextPainter;
  @@ -191,9 +192,15 @@
           if (size == null) {
               return loc;
           }
  -        Stroke stroke =
  -            (Stroke)aci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.STROKE);
   
  +        TextPaintInfo tpi = (TextPaintInfo) aci.getAttribute(
  +            GVTAttributedCharacterIterator.TextAttribute.PAINT_INFO);
  +        
  +        if (tpi == null) {
  +            return loc;
  +        }        
  +
  +        Stroke stroke = tpi.strokeStroke;
           Float posture = (Float)aci.getAttribute(TextAttribute.POSTURE);
           Float taWeight = (Float)aci.getAttribute(TextAttribute.WEIGHT);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org