[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-dev
Subject:    Re: DO NOT REPLY [Bug 35918]  -    [PATCH] Shapes are slightly shifted
From:       Thomas DeWeese <Thomas.DeWeese () Kodak ! com>
Date:       2005-08-31 23:36:12
Message-ID: 43163EEC.8050302 () Kodak ! com
[Download RAW message or body]

Jeremias Maerki wrote:
> Thanks for the hint. Sounds like rewriting PDFNumber.doubleOut using
> DecimalFormat makes sense. May I ask what you used before switching to
> DecimalFormat?

    Double.toString(double d),

    I just took a look, whats with the PDFNumber.doubleOut function????
It rounds numbers n+0.05 > x > n-0.05 to n (where n is an integer)?
That seems really hacky ;)

    Also I can almost assure you that NumberFormat will be _much_
faster than the current code.

> On 31.08.2005 14:32:01 Thomas DeWeese wrote:
> 
>>>I did a few things on PDFGraphics2D to improve the situation:
>>>http://svn.apache.org/viewcvs?rev=240344&view=rev
>>
>>    BTW Batik saw a significant performance increase when we went
>>to using a DecimalFormat object to write our strings.
> 
> 
> 
> 
> Jeremias Maerki
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic