The auto-detect feature creates the font cache, to save time on
sunsequent calls to FOP, you can disable the cache using the setting:
use-cachefalse/use-cache in your fop.xconf.
I suspect the reason for the high memory consumption is your use of
auto-detect feature. Though I've not replicated
Thanks Chris - simplest solution is often the best:
String fonts[] =
GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
Getting a list of fonts this way does NOT appear to impact memory at all...so
much better!
I don't have the use-cache tag in my config file, so
Why don't you just read the config file which list all the available fonts?
--
View this message in context:
http://apache-fop.1065347.n5.nabble.com/Getting-a-list-of-font-names-without-the-memory-hit-tp38952p38958.html
Sent from the FOP - Users mailing list archive at Nabble.com.
I've done some more digging/testing and noticed that when I get the fonts
map...
FontInfo fontInfo = new FontInfo();configurator.setupFontInfo( documentHandler,
fontInfo );Map fonts = fontInfo.getFonts();
(the above essentially comes straight out of listfonts() and its subcalls)
the
The config file or the cache file?
My config file has no fonts listed for PDF:
renderer mime=application/pdf filterListvalueflate/value
/filterList
fontsauto-detect/ /fonts/renderer
Date: Wed, 31 Jul 2013 04:26:33 -0700
From: djs...@yahoo.com
To: fop-users@xmlgraphics.apache.org
I'm reading org.apache.fop.fonts.FontCache now...red-faced and fingers crossed!
From: thebernmeis...@hotmail.com
To: fop-users@xmlgraphics.apache.org
Subject: RE: Getting a list of font names without the memory hit...
Date: Wed, 31 Jul 2013 21:29:59 +1000
The config file or the cache file?
Now I'm chasing my tail...looking at FontCache has gotten me back to
FontInfo.getFonts()!
Any other ideas please?!
From: thebernmeis...@hotmail.com
To: fop-users@xmlgraphics.apache.org
Subject: RE: Getting a list of font names without the memory hit...
Date: Wed, 31 Jul 2013 21:33:14 +1000
Hi,
I'm making a call to org.apache.fop.tools.fontlist.FontListGenerator.listFonts(
... ) to get a list of font names for my desktop application. To get the font
names, I take the keys from the returned fontFamilies SortedMap; the actual
data is junked.
I hadn't realised just how much memory
(apologies for the double post...somehow my email got tagged to the end of an
unrelated post)
Hi,
I'm making a call to org.apache.fop.tools.fontlist.FontListGenerator.listFonts(
... ) to get a list of font names for my desktop application. To get the font
names, I take the keys from the
Are you using FOP in your Desktop app (meaning you feed and FO file and
output one of the supported formats) or you just want to use some
classes to get the list of fonts in your system?
On 7/30/13 5:42 PM, Bernard Giannetti wrote:
(apologies for the double post...somehow my email got tagged
I'm using FOP inside my desktop app. I use FOP to combine .xml data files and
.xsl template files into PDFs. I wanted to give the user the choice of font to
use for the PDF text and so I am calling FOP code to get that list of fonts.
Date: Tue, 30 Jul 2013 21:41:10 -0500
From:
11 matches
Mail list logo