Hi, thanks for your help, my font is loaded correctly with the rising of JVM max memory.
Pam. Julien Aymé wrote: > > Hi, > > fop internally loads the font in memory, so if you use a huge font > file, as you do in your example, you may have OutOfMemoryError, since > the file does not fit into the available memory. > Did you try rising your max JVM memory ? > > Try to add the following argument in your launcher, or a higher value > if required. > -Xmx512m > > Regards, > Julien > > 2010/5/12 palmelas <[email protected]>: >> Dear All, >> I'm getting the following error when I'm trying to use a biggest font >> (20Mo) >> in fop 0.95 configuration file : >> >> ava.lang.OutOfMemoryError: Java heap space at >> org.apache.commons.io.output.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:271) >> at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:219) at >> org.apache.fop.fonts.truetype.FontFileReader.init(FontFileReader.java:45) >> at >> org.apache.fop.fonts.truetype.FontFileReader.(FontFileReader.java:74) at >> org.apache.fop.fonts.truetype.TTFFontLoader.read(TTFFontLoader.java:57) >> at >> org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:164) at >> org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:113) at >> org.apache.fop.fonts.LazyFont.load(LazyFont.java:126) at > ... >> >> It is a limit of fop 0.95? >> >> >> if yes, how can i display correctly chinese caracteres on PDF with fop >> 0.95? >> >> Thanks, >> Pam >> ________________________________ >> View this message in context: [fop 0.95] OutOfMemory with big font >> Sent from the FOP - Users mailing list archive at Nabble.com. >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > :-):-):-) -- View this message in context: http://old.nabble.com/-fop-0.95--OutOfMemory-with-big-font-tp28538190p28582095.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
