On Jan 25, 2007, at 05:28, Daniel Noll wrote:

<snip />
However, it seems like almost the whole stack trace could be avoided if this call cached its results somehow:

 org.apache.fop.fonts.Font.getCharWidth(Font.java:231)

(an array of 65536 elements would be enough, but wouldn't be terribly efficient in terms of memory.)

So the solution may lie in between: make the call once per *used* character.

It's highly unlikely that a document will contain all 64K characters anyway...


Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to