Hiyas
When I use a code like this:
Set fonts = FontFactory.getRegisteredFonts();
for (Object font : fonts) {
com.lowagie.text.Font fontInfo =
FontFactory.getFont(font.toString(), BaseFont.WINANSI,
BaseFont.NOT_EMBEDDED);
String familyname = fontInfo.getFamilyname();
String postscriptFontName =
fontInfo.getBaseFont().getPostscriptFontName();
System.out.println("familyName=" + familyname + ",
postscriptName=" + postscriptFontName + ", fullInfo=" + font);
}
to enumerate all fonts, iText internally creates a font object for each
font it finds. This is needed to query the information I need I guess.
However.. once I have read all information from a font, is there a way
to release the Font object again (or the BaseFont object) so I can
release its memory back to the VM?
Right now, a typical Windows 7 installation cannot be read completely
with a default 64MB heap, it runs OOM before that. I know that, by
releasing the objects, recreating them needs time, I'm fully aware of
that, btw.
So is there a chance to release the memory again once read?
BEst regards,
Rog
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/