Hi;
To list out all fonts, including all their properties, I do the following:
String[] arr = new String[FontFactory.getRegisteredFonts().size()];
for (int ind=0; ind<arr.length; ind++) {
BaseFont bf = FontFactory.getFont(arr[ind]).getBaseFont();
....
This eats up a ton of memory if there are lots of fonts on a system. I assume
this is loading up an internal cache. I call System.gc() every 10 fonts, but it
still will run out of memory on some systems.
Is there a way to flush the font cache?
thanks - dave
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/