xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Green <gr...@jaid.ca>
Subject solved anther centering problem.
Date Thu, 07 Apr 2005 03:12:26 GMT
Hi,

I am new for this mailing list although I have been using FOP for about
a year.

Anyway, I had a couple of problems and solved them. 
So, I would like to share with you.

Centering is the first one.
I had stylesheet like this.

<fo:table-cell 
    border-style="solid" border="0.1pt" border-color="#ffffff">
    <fo:block font-size="8pt" color="#000000" 
        font-family="Bell Gothic Bold" 
        font-weight="bold" text-align="center">
            <xsl:value-of select="./total"/>
    </fo:block>
</fo:table-cell>

By chance I found adding invisible border solve the problem.
But still had some problem and found this thread
http://marc.theaimsgroup.com/?l=fop-user&m=110561184109768&w=3 
so, kerning=no in userconfig.xml But again still text was slightly left.

again by chance I changed to like this

<fo:table-cell 
    border-style="solid" border="0.1pt" border-color="#ffffff">
    <fo:block font-size="8pt" color="#000000" 
        font-family="Bell Gothic Bold" 
        font-weight="bold" text-align="center">
            <xsl:value-of select="./value"/></fo:block>
</fo:table-cell>

i.e. no linefeed between value-of and close block.

It worked perfectly.

Looks like FOP counts line feed as one character to calculate centering
position.


Green



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


Mime
View raw message