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 Kai Hackemesser <ka...@gmx.de> on 2007/07/11 13:20:05 UTC

Print looks ugly

Hello, there,

I have following problem. In a FOP transformation the displayed result 
is distorted. Take a look at the attached png (printout from FOP, 
scanned in again). The letters are in wrong distance to each other and 
the font itself is wrong. It looks like Arial, but following the xsl it 
should be Courier:

    <fo:table text-align="left" width="10cm" table-layout="fixed">
    <fo:table-column column-width="10cm"/>
        <fo:table-body>
            <fo:table-row>
                <fo:table-cell>
                    <fo:block xsl:use-attribute-sets="head-line" 
space-before.optimum="21.0pt">
                        <xsl:text>AERODROME INFORMATION</xsl:text>
                    </fo:block>
                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table>

..

<xsl:attribute-set name="head-line">
    <xsl:attribute name="font-size">7.3pt</xsl:attribute>
    <xsl:attribute name="font-family">Courier</xsl:attribute>
    <xsl:attribute name="line-height">7.3pt</xsl:attribute>
    <xsl:attribute name="space-before.optimum">1.5pt</xsl:attribute>
    <xsl:attribute name="space-after.optimum">1.5pt</xsl:attribute>
    <xsl:attribute name="keep-together">always</xsl:attribute>
</xsl:attribute-set>

I'm using FOP 0.9. Any idea what is causing this?

Ciao!
Kai