Font Selection Strategies ?

2008-12-18 Thread Dongsheng Song
*) Can I map font any to a custom font ? http://xmlgraphics.apache.org/fop/trunk/fonts.html#Missing+Fonts *) Can I substitute by char range instead of weights ? http://xmlgraphics.apache.org/fop/trunk/fonts.html#substitution *) I have not found how to define font list:

Re: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Jeremias Maerki
You can fix this by not using a keep or by a more fine-grained use of keeps. Furthermore, I've implemented partial support for integer values on keeps in FOP Trunk. The strengths are not yet respected but contrary to always, an integer value allows FOP to break a section if it would result in an

Re: Font Selection Strategies ?

2008-12-18 Thread Jeremias Maerki
On 18.12.2008 09:20:21 Dongsheng Song wrote: *) Can I map font any to a custom font ? http://xmlgraphics.apache.org/fop/trunk/fonts.html#Missing+Fonts Yes, you can define a font-triplet for any. Example: font embed-url=test\resources\fonts\glb12.ttf font-triplet name=Gladiator style=normal

AW: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Georg Datterl
Hi Jeremias, Did I understand that correctly? I have a block with keep-together=1 and taking 30% of a page. On a half filled page, the block would move to the next page if the following block takes between 21% and 70% of a page and would stay on the first page if the next block is less than

Re: AW: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Jeremias Maerki
I don't understand your example. I'll post one of my own: block keep-together.within-column=always blockI use 30% height/block blockI use 30% height/block blockI use 50% height/block /block In this case all three nested block will remain on the same page and will cause an overflow. block

W: AW: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Georg Datterl
Hi Jeremias, block keep-together.within-column=1 blockI use 30% height/block blockI use 30% height/block blockI use 50% height/block /block In this case, the 50% block is moved to the next page if the layout engine doesn't find a better solution, for example by keeping the first

Log Messages in FOP.

2008-12-18 Thread Binod Garg
HI , I want to put my log level to error in FOP. My problem is that we use the same logger in multiple places. What should I do? Thanks, Binod

Re: W: AW: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Jeremias Maerki
On 18.12.2008 12:10:27 Georg Datterl wrote: Hi Jeremias, block keep-together.within-column=1 blockI use 30% height/block blockI use 30% height/block blockI use 50% height/block /block In this case, the 50% block is moved to the next page if the layout engine doesn't find a

AW: W: AW: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Georg Datterl
Hi Jeremias, I'll try that next year. I have quite a complicated table who should be kept together except if it spans more than a page. Speaking of tables: Given a table with two rows, two columns, cell in first column spans both rows, is there a way to tell FOP: If there's a break between

AW: AW: Usage of Font.getWordWidth()

2008-12-18 Thread Georg Datterl
Hi Jeremias, I now have this code: FopFactory fopFactory = FopFactory.newInstance(); fopFactory.setUserConfig(new File(fonts/fop.xconf)); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); RendererFactory rf = new RendererFactory(); Renderer r = rf.createRenderer(foUserAgent,

AW: AW: Usage of Font.getWordWidth()

2008-12-18 Thread Georg Datterl
f.getWordWidth(a) and f.getWordWidth(k) give the same result (15) although the k's take more space (7 k's = 8 a's). And the reason is: org.apache.fop.fonts.Font.getWidth(int charnum) { return (metric.getWidth(charnum, fontSize) / 1000); } metric.getWidth gives a quite fine

Re: Log Messages in FOP.

2008-12-18 Thread Jeremias Maerki
Well, you don't say what logger you're using. FOP uses Apache Commons Logging [1]. So you have to set up the backing logging implementation (be that Log4J, java.util.logging or whatever) accordingly. FOP uses logging categories under the org.apache.fop category. [1]

Re: AW: W: AW: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Jeremias Maerki
On 18.12.2008 13:17:17 Georg Datterl wrote: Hi Jeremias, I'll try that next year. I have quite a complicated table who should be kept together except if it spans more than a page. Speaking of tables: Given a table with two rows, two columns, cell in first column spans both rows, is there

RE: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Rania Saghira
Well can you give me an example for another way to accomplish this. Problem is that for now we cannot migrate to the FOP Trunk, so we need to find a solution in FOP 0.95. Any help is really appreciated. Regards, Rania -Original Message- From: Jeremias Maerki

Re: AW: AW: Usage of Font.getWordWidth()

2008-12-18 Thread Jeremias Maerki
FOP's internal unit is millipoints. Set fontSize in millipoints and the results will be more useful. On 18.12.2008 13:21:39 Georg Datterl wrote: Hi Jeremias, I now have this code: FopFactory fopFactory = FopFactory.newInstance(); fopFactory.setUserConfig(new File(fonts/fop.xconf));

Re: Keep-together.within-page in FOP 0.95

2008-12-18 Thread Jeremias Maerki
That's difficult if I don't know what your document looks like or is supposed to look like. If your have something like: fo:block keep-together.withing-column=always fo:block fo:blockfirst part/fo:block /fo:block fo:block fo:blocksecond part/fo:block fo:blockblah blah/fo:block

AW: AW: AW: Usage of Font.getWordWidth()

2008-12-18 Thread Georg Datterl
Hi Jeremias, Now the result seems quite correct for Helvetica. But not for my unicode font. I guess, the values from the xml are used but further details next year. I wish everybody on this list Merry Christmas and a Happy New Year! Regards, Georg Datterl -- Kontakt -- Georg

table overflow onto page 2 into specific region

2008-12-18 Thread Chakravarty, Abhishek
Hi Is there a way to ensure in my stylesheet that a table overflows into second page into the area which is prespecified for it only? As in I have the page setup as the header followed by a table followed by footer. But if the table overflows then is it possible to have it onto the second page

RE: FOP XML-XSLT-FOP PDF Issues

2008-12-18 Thread Patterson, Gregory Michael
Right, so currently I'm feeding the xml and an example style sheet in to the FOP and it's working as expected. What I'm asking is, what forms can the Style sheet be in? I already have the xsl sheet like this for other purposes: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

Re: FOP XML-XSLT-FOP PDF Issues

2008-12-18 Thread Andreas Delmelle
On 18 Dec 2008, at 23:45, Patterson, Gregory Michael wrote: Right, so currently I'm feeding the xml and an example style sheet in to the FOP and it's working as expected. What I'm asking is, what forms can the Style sheet be in? I already have the xsl sheet like this for other purposes:

XSL - FOP DOC (Word) - Zoom

2008-12-18 Thread Equatech / Toufic DIAB
Hello, I am generating a RTF Document (.doc) by using FOP and an XSL. The generated document has a default zoom of 100%. Can I change this zoom, and make the document always open with a 150% zoom ? If yes, please tell me what I have to add to my code. Here is a piece of the XSL