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 je...@apache.org on 2005/11/24 20:53:52 UTC

svn commit: r348792 - in /xmlgraphics/fop/trunk: src/java/org/apache/fop/render/ps/PSRenderer.java status.xml

Author: jeremias
Date: Thu Nov 24 11:53:43 2005
New Revision: 348792

URL: http://svn.apache.org/viewcvs?rev=348792&view=rev
Log:
Bugfix for placement of text inside a text area when borders are present in PostScript output.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java
    xmlgraphics/fop/trunk/status.xml

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java?rev=348792&r1=348791&r2=348792&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java Thu Nov 24 11:53:43 2005
@@ -817,7 +817,7 @@
         Typeface tf = (Typeface) fontInfo.getFonts().get(fontname);
 
         //Determine position
-        int rx = currentIPPosition;
+        int rx = currentIPPosition + area.getBorderAndPaddingWidthStart();
         int bl = currentBPPosition + area.getOffset() + area.getBaselineOffset();
 
         useFont(fontname, fontsize);

Modified: xmlgraphics/fop/trunk/status.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/status.xml?rev=348792&r1=348791&r2=348792&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Thu Nov 24 11:53:43 2005
@@ -28,6 +28,9 @@
   <changes>
     <release version="FOP Trunk">
       <action context="Code" dev="JM" type="update">
+        Bugfix for placement of text inside a text area when borders are present in PostScript output.
+      </action>
+      <action context="Code" dev="JM" type="update">
         Improvements on leader painting in PDF output.
       </action>
       <action context="Code" dev="JM" type="add">



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