LazyFont NullPointerException

2006-05-29 Thread Raphael Parree
Hi, I get the following error when trying to run an app on Mac X. I have successfully ran this app on Linux and Windows. I did see a posting back in 2003 with the same problem, but no apparent solution. The fonts I use are Verdana and Arial (bold, italic etc). The TTF files originate from a

RE: How to align text and fo:external-graphic within fo:block by bottom

2006-05-29 Thread Pascal Sancho
-Original Message- From: Nguyen, Thang [mailto:[EMAIL PROTECTED] I layout a fo:block like this: fo:blockSome text here ..fo:external-graphic src=url({IMAGEPATH})/./fo:block The result is: the text the image are aligned by the top of the block My question is how to align

FOP 0.92: Font related problem

2006-05-29 Thread Debasish Jana
Hi, There seems to be a problem in FOP 0.92 for some fonts having spaces in font family names in the fop.xconf file. For e.g., if I have Monotype Corsiva in the fop.xconf file and my fontest.fo file, FOP tries to search with Corsiva, cannot find any such name and replaces with the default font.

AW: Metric Files

2006-05-29 Thread Kring, Rainer
Hi Jeremias, how's the quality of font metric files of Type 1 fonts created with FOP 0.20.5? Thanks, Rainer -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 26. Mai 2006 16:41 An: fop-users@xmlgraphics.apache.org Betreff: Re: Metric Files

RE: How to align text and fo:external-graphic within fo:block by bottom

2006-05-29 Thread Nguyen, Thang
Could you show me more, I tried belows but all failed. + fo:blockSome text here ..fo:external-graphic baseline-shift=sub src=url({IMAGEPATH})//fo:block + fo:blockfo:inline baseline-shift=subSome text here ../fo:inlinefo:external-graphic src=url({IMAGEPATH})//fo:block thanks, Thang.

Re: How to prefer FOP native for JAI

2006-05-29 Thread Raino Kolk
I use fop 0.92 and i try to use it in Spring framework. The exact error is: java.lang.NoClassDefFoundError: com/sun/media/jai/codec/FileCacheSeekableStream at org.apache.fop.image.JAIImage.loadImage(JAIImage.java:80) ... It seems that in some reason fop trys to use JAI if i use

RE: How to align text and fo:external-graphic within fo:block by bottom

2006-05-29 Thread Pascal Sancho
This has been checked successfully on FOP 0.92b: fo:block font-size=12pt some text fo:external-graphic src=file:///E:/path/to/image.gif content-width=4mm content-height=4mm scaling=uniform baseline-shift=-2mm/ !-- tried successfully with

Re: AW: Metric Files

2006-05-29 Thread Jeremias Maerki
Good enough to do the job. ;-) What's the reason for the question? On 29.05.2006 11:27:58 Kring, Rainer wrote: Hi Jeremias, how's the quality of font metric files of Type 1 fonts created with FOP 0.20.5? Thanks, Rainer -Ursprüngliche Nachricht- Von: Jeremias Maerki

Re: Problems with image scaling

2006-05-29 Thread Jeremias Maerki
What you want is not implemented, yet. auto currently causes the image to be set to the image's intrinsic size. No checks are done to ensure the image fits in the available area. The code will need to be refined to support this. On 23.05.2006 14:10:26 Ståle Undheim wrote: I have done a little

Re: Keep-Together Problems

2006-05-29 Thread Jeremias Maerki
At the moment, only always is supported for keep values which causes the effect you've seen. So far nobody has implemented any refinements that will cause certain keep conditions to be relaxed if necessary as defined in XSL 1.0, chapter 4.8. The solution would be to implement finer rules to

Re: In Progress Page while processing

2006-05-29 Thread CalvinD
Chris, Thanks for the info. I have read it over and got some logging to work. I can't find the page processed info. Found some old docs about it but not much help. I need to figure out how to determine the page number processed. I will keep trying and post any headway. Calvin -- View this

AW: AW: Metric Files

2006-05-29 Thread Kring, Rainer
After using a font metrics (at least I think the cause is the font metrics) created with FOP's TTFReader out of a True Type Font, I get white spaces above and below the text in PDF-Files. So want I to try it with Type1 fonts. -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL

Re: [bug?] Mangled text with cross references

2006-05-29 Thread Jeremias Maerki
Known issue. page-number-citations are not handled properly in every case. The width for elements representing forward references are only known after the page where the reference lies has been resolved. The new width is then hacked into the area tree representation. The adjustment code is

Re: FOP 0.92: Font related problem

2006-05-29 Thread Jeremias Maerki
As mentioned already a few days ago, font-family parsing is not 100% correct at the moment. You can work around that by using single quotes: font-family='Monotype Corsiva' or don't use spaces in font names. :-) On 29.05.2006 10:26:44 Debasish Jana wrote: Hi, There seems to be a problem in FOP

Re: In Progress Page while processing

2006-05-29 Thread Jeremias Maerki
No, FOP does not have any facility to provide progress information. I've written down my notes on the general topic on the Wiki: http://wiki.apache.org/xmlgraphics-fop/ProcessingFeedback So far, there was no time and not enough motivation to implement anything. On 26.05.2006 13:43:01 Chris

Re: OutOfMemoryError: Java heap space

2006-05-29 Thread David Delbecq
Increase memory allocated to java with -Xmx256m Andre Groeneveld wrote: Hi Daniel, I'm getting the same problem when loading an xml File that is round about 30MB, have you found a solution for your problem yet? -Original Message- From: Daniel Noll [mailto:[EMAIL PROTECTED] Sent: 29

Re: How to prefer FOP native for JAI

2006-05-29 Thread Jeremias Maerki
The reason is org.apache.fop.images.FopFactory which specifies JAI as the first image provider to try for loading GIF images. The code should actually be smart enough to fall back to the next provider if it can't load the image with the first. I will need to investigate why this happens. On

Re: How to prefer FOP native for JAI

2006-05-29 Thread Manuel Mall
On Monday 29 May 2006 20:33, Jeremias Maerki wrote: The reason is org.apache.fop.images.FopFactory which specifies JAI as the first image provider to try for loading GIF images. The code should actually be smart enough to fall back to the next provider if it can't load the image with the

wrong width of region-body in sequence with first page different

2006-05-29 Thread Martin Zak
Hi all, I have a sequence of pages for a book chapter with first page different. First page (it's always odd page) uses the end-region to show the short chapter TOC thus the region-body is narrowed (by the width of region-end). Following pages are alternatively even/odd pages with normal

Re: wrong width of region-body in sequence with first page different

2006-05-29 Thread Jeremias Maerki
This is a known issue documented in the release notes: If two consecutive pages don't have the same available width, the content currently isn't properly fit into the available space on the new page. http://xmlgraphics.apache.org/fop/relnotes.html Technical background:

Re: How to prefer FOP native for JAI

2006-05-29 Thread Jeremias Maerki
As Joerg suggested earlier, this seems to be a class loader problem. We already check for both conditions a) and b). I've just checked and FOP falls back nicely to ImageIO if support for JAI is compiled but JAI is not present during runtime. In my case, loading JAIImage resulted in a

Re: LazyFont NullPointerException

2006-05-29 Thread Jeremias Maerki
Was there a message Failed to read font metrics file... just before the exception? If yes, the NullPointerException is a consequence of that error. Maybe it's just a path which is not correct. On 29.05.2006 08:43:16 Raphael Parree wrote: Hi, I get the following error when trying to run an app

RE: LazyFont NullPointerException

2006-05-29 Thread Raphael Parree
Hi, No there is no such message. I should probably also say that I am still using version 0.20.5 and not the latest from SVN. Tx., Raphael -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: 29 May 2006 16:42 To: fop-users@xmlgraphics.apache.org Subject: Re:

Re: OutOfMemoryError: Java heap space

2006-05-29 Thread Daniel Noll
David Delbecq wrote: Increase memory allocated to java with -Xmx256m That's an invalid solution for two reasons: 1. Customers who use our application often only have about 256MB maximum RAM or less, and setting more than that will cause excessive paging to disk. 2. We're already using

RE: How to align text and fo:external-graphic within fo:block by bottom

2006-05-29 Thread Nguyen, Thang
thanks, I tried successfully with 0.91b. The last time I failed with 0.20.5 :) Thang. -Original Message- From: Pascal Sancho [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 5:26 PM To: fop-users@xmlgraphics.apache.org Subject: RE: How to align text and fo:external-graphic within