You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by David Gerdt <Dg...@bju.edu> on 2008/06/13 16:43:27 UTC

PCL font spacing

Hello all.
 
I'm using FOP to generate PCL on an AIX box. I'm running into some weird spacing surrounding several inline areas that I have. The attached PDFs (generated as PCL and then converted to PDFs--they accurately represent the actual printed copies) show the differences when the same fragment is rendered on my local Windows machine and on the AIX machine. I have tried trunk and 95beta on both systems with the same results. I knew that the font metrics would be slightly different between systems, but I don't understand the random spacing. Is this a JVM thing?
 
On AIX:
TDB2:/home/users/dgerdt:>java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20060421 (SR5) (JIT enabled: jitc))
 
 
On Win:
C:\fop\fop-0.95beta>java -version
java version "1.4.2_17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_17-b06)
Java HotSpot(TM) Client VM (build 1.4.2_17-b06, mixed mode)
 
The complete FO is below:
 
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:pcl="http://xmlgraphics.apache.org/fop/extensions/pcl">
 <fo:layout-master-set>
  <fo:simple-page-master margin-bottom="5mm" margin-top="12mm" margin-right="5mm" margin-left="10mm" page-height="11in" page-width="8.5in" master-name="family">
   <fo:region-body/>
  </fo:simple-page-master>
 </fo:layout-master-set>
 <fo:page-sequence force-page-count="no-force" initial-page-number="1" font-size="10pt" master-reference="family">
  <fo:flow flow-name="xsl-region-body">
   <fo:block margin-top="5mm">* Enter each student's name next to the test level used.</fo:block>
   <fo:block>* Mark the student's current <fo:inline text-decoration="underline">grade level</fo:inline> and how many months of that level were finished as of the testing date.</fo:block>
   <fo:block>* Complete and <fo:inline font-weight="bold" font-style="italic">sign</fo:inline> the VERIFICATION SECTION at the end of this form.</fo:block>
   <fo:block>* <fo:inline font-style="italic">You may copy these pages as needed, but please <fo:inline text-decoration="underline" font-weight="bold">do not</fo:inline> cut them apart!</fo:inline></fo:block>
  </fo:flow>
 </fo:page-sequence>
</fo:root>
 
Any help? 
 
Thanks!