xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valeiko, Michael" <MICHAEL.VALE...@ca.com>
Subject inconsistent spacing with Serif font and AwtRender
Date Thu, 03 Apr 2003 21:15:26 GMT
Hi,

I am using 20.4. with java 1.4.1_02-b06.  Spacing is very inconsistent with the AWTRenderer.
 Sometimes there isn't enough space between words, while other times there is to much.  The
space only appears to be lost with the Serif font and I've included an example.  Either print
or zoom to > 100%. To much space becomes very obvious when underlining text, there are
breaks between words.  Also, while digging around in AwtFontMetrics the width() and getWidths()
appear to be inconsistent for characters <= 32.   
I've looked at AWTRender.renderWordArea() and the spacing seems ok. Can anyone point me in
the right direction?

Thanks
Mike


<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
font-family="serif" font-size="10pt" hyphenate="false" role="html" text-align="start" writing-mode="lr-tb">
  <fo:layout-master-set>     <fo:simple-page-master master-name="all-pages" page-height="11in"
page-width="8.5in">       <fo:region-body column-count="1" column-gap="12pt" margin-bottom=".5in"
margin-left=".5in" margin-right=".5in" margin-top=".5in"/>       <fo:region-before display-align="before"
extent=".5in" region-name="page-header"/>       <fo:region-after display-align="after"
extent=".5in" region-name="page-footer"/>       <fo:region-start extent=".5in"/>
      <fo:region-end extent=".5in"/>     </fo:simple-page-master>   </fo:layout-master-set>
  <fo:page-sequence master-reference="all-pages">     <fo:title/>     <fo:static-content
flow-name="page-header">       <fo:block font-size="small" space-before="0.5in" space-before.conditionality="retain"
text-align="center" white-space-collapse="false"/>     </fo:static-content>     <fo:static-content
flow-name="page-footer">       <fo:block font-size="small" space-after="0.5in" space-after.conditionality="retain"
text-align="center"/>     </fo:static-content>     <fo:flow flow-name="xsl-region-body">
      <fo:block role="body">         <fo:block role="div">           <fo:block
role="p" space-after="0.2em">             <fo:inline font-family="serif">       
       <fo:inline font-size="10pt" keep-together.within-column="always" keep-with-next.within-column="always"
role="font">                         referred as This is referred to a test of referred
to                </fo:inline>             </fo:inline>           </fo:block>
       ?<fo:block role="p" space-after="0.2em">             <fo:inline font-family="sans-serif">
              <fo:inline font-size="10pt" keep-together.within-column="always" keep-with-next.within-column="always"
role="font"/>               referred as This is referred to a test of referred to     
       </fo:inline>           </fo:block>         </fo:block>       </fo:block>
    </fo:flow>   </fo:page-sequence> </fo:root>




Mime
View raw message