G'day, mates.  I'm using Apache FOP 1.1rc1 on Windows 7 with Java
1.7.0_07 64-bit and have a spacing problem.

I have a block that says "Page x of x".  The text has been translated to
Arabic and the numeric values are replaced with the fo calculated values
<fo:page-number/> and <fo:page-number-citation ref-id="last-page"/>.
Writing mode has been set right-to-left and the font is Arial Unicode
MS.

The problem is that the rendered page shows the numbers overlapping the
text.  It is as if the spaces are ignored when the numbers are placed
within the text.  I've tried using the word-spacing attribute on
fo:block but the spaces are rendered unevenly, most of the space occurs
to the left of the number.

I've also noticed that any attempt to place a border around the number
itself, such as using fo:inline with a colored border around the
fo:page-number, results in a very thin line being displayed to the left
of the number.  This indicates something wrong with the way it's
calculated.

Attached are the fo.xml file and the resulting pdf.

I'd appreciate any workarounds for this problem or assistance
identifying this as a bug in the rendering engine.  Thank you!

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:saxon="http://saxon.sf.net/";
         xmlns:fo="http://www.w3.org/1999/XSL/Format";
         font-size="9pt"
         font-family="ARIALUNI">
   <fo:layout-master-set>
      <fo:simple-page-master master-name="report"
                             margin-top=".25in"
                             margin-bottom=".25in"
                             margin-right=".25in"
                             margin-left=".25in"
                             page-height="11in"
                             page-width="8.5in"
                             writing-mode="rl">
         <fo:region-body margin-top="1.1in" margin-bottom=".25in"/>
         <fo:region-before extent="1.1in"/>
         <fo:region-after extent=".25in"/>
      </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-reference="report" writing-mode="rl">
      <fo:title font-family="ARIALUNI">Title</fo:title>
      <fo:static-content flow-name="xsl-region-before" font-family="ARIALUNI">
         <fo:table table-layout="fixed" width="100%" font-family="ARIALUNI">
            <fo:table-column column-width="proportional-column-width(75)"/>
            <fo:table-column column-width="proportional-column-width(25)"/>
            <fo:table-body>
               <fo:table-row>
                  <fo:table-cell>
                     <fo:block relative-position="static"/>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block font-family="ARIALUNI"
                               font-size="10pt"
                               font-style="normal"
                               font-weight="normal">الصفحة <fo:page-number/> من <fo:page-number-citation ref-id="last-page"/>
                     </fo:block>
                  </fo:table-cell>
               </fo:table-row>
            </fo:table-body>
         </fo:table>
      </fo:static-content>
      <fo:flow flow-name="xsl-region-body" font-family="ARIALUNI">
         <fo:block id="last-page" font-family="ARIALUNI"/>
      </fo:flow>
   </fo:page-sequence>
</fo:root>

Attachment: out.pdf
Description: out.pdf

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to