Luke Quinane wrote:
> Hi,
> 
> Attached is a simple patch that greatly improved our applications PDF 
> generation speed when using large fonts (in particular Arial Unicode). I 
> found that before the change our application was spending a large amount 
> of time reading bytes from the font files.

It's a good patch, but... doesn't it create problems for other users who 
have OutOfMemory problems? If I apply the patch, they are forced to load 
all fonts into memory. Whereas you can choose to provide the bytes using 
these methods:
createFont(String name, String encoding, boolean embedded, boolean 
cached, byte ttfAfm[], byte pfb[]);
createFont(String name, String encoding, boolean embedded, boolean 
cached, byte ttfAfm[], byte pfb[], boolean noThrow);

Maybe I'll provide a new createFont method with a forceRead parameter.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to