Re: SVG text misplaced

2012-09-25 Thread Pascal Sancho
Hi, 1st, this discussion should move to fop-dev list now. 2nd, there is definitively some issues that are due to length handled as integer (char width you pointed here, i-p-d changes from page to page because length is rounded when it result in float value (metric to imperial conversion,

Re: SVG text misplaced

2012-09-25 Thread mehdi houshmand
While you may be right Pascal, I'm sure this isn't a good example of a legitimate use-case. But then what do we use? A long? Then what have we really done? Realistically we're just moving the boundaries from which FOP accurately displays text/images etc.. What I'm asking is why would a long be any

Re: SVG text misplaced

2012-09-25 Thread mehdi houshmand
We're digressing from the remit of fop-users, so I've posted to fop-dev. I must confess, my understanding of the layout-engine side of things is limited; I don't think I have a full appreciation of the intricacies and the nuances. Maybe another of the devs will have more constructive feedback,

Re: SVG text misplaced

2012-09-25 Thread Pascal Sancho
The problem is a rounding matter rather than ceiling values. Try this: i-p-d1 = 22cm + 1cm (gives 595275mpt) i-p-d2 = 21cm + 2cm (gives 595274mpt) i-p-d2 - i-p-d1 will give a non-zero value after conversion to mpt (with only 2 terms in formula) For example, that can occur when alternating the