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 "Foucault, Sebastien" <Se...@hraccess.com> on 2005/01/13 11:23:45 UTC

Alignement problems in table with no borders

Hello,

Here is the problem I have to deal with.
Using FOP 0.20.5 on the following FO file, I got sometimes wrong
alignements. It seems that these wrong alignements depend on the data
present in each cell of the table.

My questions are the following :
Is this problem known ?
How to overcome it ? I notice that the use of the <border-width,
border-style, border-color> tuple on each cell fixes the problem. But I
cannot use it because I need transparent borders (because in the real
situation there's a background image  which makes the use of
border-color="white" unrelevant).

Regards
--
S�bastien FOUCAULT



Re: RE : RE : Alignement problems in table with no borders

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 18.01.2005 10:44:40 Foucault, Sebastien wrote:
> Jeremias,
> 
> I'd like to thank you VERY VERY VERY (...) MUCH for that quick, precise and
> helpful answer ! It seems to work perfectly !

You're welcome.

> I am not a font specialist. 
> - Could you explain me the reason for that wrong behaviour (is it a bug) ? 

It's a bug, yes.

> - What are the potential issues involved by the removal of the "kerning"
> elements in the metrics file (I had to remove them mymelf from the metrics
> XML document using DOM / Xpath functions because the TTFReader.constructFont
> element has no parameter allowing to switch kerning elements generation off
> ) ?

No issues, other than the text generated could be nicer looking from a
typographical point of view. Kerning manipulates the horizontal
positioning of characters, for example it ensures that for "AV" the "V"
is moved closer to the "A" than it would normally be so the text looks
nicer.

> - Why the "no" value on the kerning attribute in userconfig.xml file is not
> enough (I tried it does not work) ?

I don't know. I've never managed to allocate the time to find out. I was
happy enough to have a work-around.



Jeremias Maerki


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


Re: RE : Alignement problems in table with no borders

Posted by Jeremias Maerki <de...@greenmail.ch>.
Try removing all kerning elements from the font metric XML file and
switching kerning to "no" in the userconfig.xml.

On 17.01.2005 18:38:55 Foucault, Sebastien wrote:
> It is impossible to reproduce the alignment problem in basic conditions.
> I refined the diagnostic of this problem, 
> The problem occurs when using font metrics for the Arial font.
> 
> In userconfig.xml :
> 
> <font kerning="yes" metrics-file="font6364.xml">
>    <font-triplet name="Arial" style="normal" weight="normal"/>
> </font>
> 
> The font metrics file & the FO file are attached.


Jeremias Maerki


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