Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
Oh, great. I just realized we all failed to see the obvious: Onur, you're trying to create a font metrics XML file from a TrueType font (.ttf) but you're calling the PFMReader to do that. You need to use the TTFReader! PFMReader is for the .pfm files of a Type 1 font. On 31.08.2006 18:16:34 Onur

Re: font not found in 0.92beta from ant

2006-09-10 Thread Jeremias Maerki
It looks like you're migrating from 0.20.5 to 0.92beta. Please make sure you also update the format of your configuration file which contains the font configuration. The configuration format has changed quite a bit. Please read the documentation and look into the sample conf/fop.xconf file for a

Re: PDF7 Problem

2006-09-10 Thread Jeremias Maerki
First, there's no FOP 2.0. You probably meant 0.20.5. Second, I don't know what we can do for you if Adobe changes something in their software. You'd better ask their support. Maybe you find something about this in their changelog if they have one. On 07.09.2006 10:21:38 pavithra atrangada wrote:

Re: formatting tables

2006-09-10 Thread Jeremias Maerki
As Pascal already hinted, you'll have to use background-color=from-table-column() on each table-cell to apply the background color of a table-column to each cell of that column. Note that according to the specification table-column does not generate or return any areas. It holds a set of traits

Re: trouble positionning an image on the top of my document

2006-09-10 Thread Dirk Bromberg
Hi, try to set font-size=0pt at the fo:block where the image is in. Dirk Olivier Mansour schrieb: Hello I have a problem with fop 0.92. I try to set a picture on the top left of the page. It's obvious but I have a little white space on the top of the PDF doc. Here the fo file and the pdf

Re: outputting TIFF-G images

2006-09-10 Thread Jeremias Maerki
There's a configuration value you can set to modify the compression used but it's poorly designed (requiring an integer value) and undocumented. Furthermore, it does not support setting CCITT-G4 compression. Generating monochrome (1bit) images has also not been implemented, yet. To implement all

Re: No element mapping found

2006-09-10 Thread Jeremias Maerki
This may hint at a multi-threading issue we've solved some time ago. Please get the latest source code of FOP from Subversion (FOP Trunk) and see if the situation improves. On 08.09.2006 11:42:46 flyingscot wrote: Hi! I have a strange problem: My java software uses embedded FOP. Sometimes

Re: Wrapping long character strings

2006-09-10 Thread Jeremias Maerki
I'd have to look up whether according to UAX#14/TR14 we would be allowed to break between two * characters in the first place. Not that FOP already implements the full rule set, yet! At any rate, I'd try to insert a zero-width space (#x200B;) after each * character to allow for breaks in between.

fopFactory setFontBaseURL

2006-09-10 Thread Shue-Yen Tsai
Hi: I embed FOP 0.92 to my program. I can't get the font to work. I put the fopFactory.setFontBaseURL(file:///C:/fonts); in the program and put my ttf files, metric files under the folder c:/fonts. I still got error on finding fonts. Do I have to create userconfig.xml in this folder or

Re: fopFactory setFontBaseURL

2006-09-10 Thread Manuel Mall
On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote: Hi: I embed FOP 0.92 to my program. I can't get the font to work. I put the fopFactory.setFontBaseURL(file:///C:/fonts); Sam please try fopFactory.setFontBaseURL(file:///C:/fonts/); and check if that fixes it. Manuel in

Re: NullPointerException while printing

2006-09-10 Thread Jeremias Maerki
That seems to be a bug in ExampleFO2OldStylePrint.java. If you instantiate the Renderer yourself, you also have to set the user agent. See additional line below. Sorry for the trouble. On 06.09.2006 10:52:43 flyingscot wrote: Hello! I have some problems embedding FOP 0.92b with an

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
Thanks. I tried but still not working. Other than the TTF and Metric file what else should be in the folder to make it working? Manuel Mall-2 wrote: On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote: Hi: I embed FOP 0.92 to my program. I can't get the font to work. I put the

Re: Turkish character support

2006-09-10 Thread Onur Senturk
I did try that too. I converted the ttf file to xml but, what do i have to do next? i copied the xml file to the conf directory, but nothing seemed to have changed. On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: Oh, great. I just realized we all failed to see the obvious:Onur, you're trying

Re: fopFactory setFontBaseURL

2006-09-10 Thread Manuel Mall
On Sunday 10 September 2006 19:58, Sam Tsai wrote: Thanks. I tried but still not working. Other than the TTF and Metric file what else should be in the folder to make it working? What is the exact error message(s) FOP is producing? Does that give any clue about what might be wrong? Manuel

Re: trouble positionning an image on the top of my document

2006-09-10 Thread Olivier Mansour
Le 10 sept. 06 à 12:45, Dirk Bromberg a écrit : Hi, try to set font-size=0pt at the fo:block where the image is in. it works thank you ! Dirk Olivier Mansour schrieb: Hello I have a problem with fop 0.92. I try to set a picture on the top left of the page. It's obvious but I have a

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
Manuel: The message is I got from log4J Font 'Arial,normal,400' not found. Substituting with default font. I also attached the Arial.xml metric file. Sam http://www.nabble.com/user-files/235939/Arial.xml Arial.xml Manuel Mall-2 wrote: On Sunday 10 September 2006 19:58, Sam Tsai wrote:

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
I put this line: fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml)); and the config file content is: ?xml version=1.0 encoding=UTF-8? !-- New document created at Sun Sep 10 05:56:26 CDT 2006 -- configuration font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes

Re: fopFactory setFontBaseURL

2006-09-10 Thread Jeremias Maerki
That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta, so you have to use that configuration layout. It has changed since 0.20.5. Please take conf/fop.xconf as a template! See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html On 10.09.2006 14:34:42 Sam Tsai wrote:

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
Thanks a lot. I got it working. You are right. I copied the configuration file came with 0.92beta and modify the font entry. Now it worked well. Sam Jeremias Maerki-2 wrote: That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta, so you have to use that configuration

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
Jeremias: I have an additional question So the setFontURL alone won't do the job. You still need the confiuration file. Is this correct statement? Sam Jeremias Maerki-2 wrote: That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta, so you have to use that configuration

Re: fopFactory setFontBaseURL

2006-09-10 Thread Jeremias Maerki
setFontBaseURL() alone won't configure all fonts. This base URL is only used to resolve relative URLs used in the font configuration. Something is in the works to change the whole font subsystem of FOP. When that comes we may have a system where you can simply specify a number of directories and

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
If you're starting FOP from the command-line, yes. If you embed FOP in a Java application, see: http://xmlgraphics.apache.org/fop/0.92/embedding.html#config-external On 10.09.2006 14:24:18 Onur Senturk wrote: How do i make sure fop uses the configuration file? I'm using these arguments -c

Re: Turkish character support

2006-09-10 Thread Onur Senturk
by the way, which version do you suggest me to use? 0.92beta or 0.20.5 i'm currently using 20.5 On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: If you're starting FOP from the command-line, yes.If you embed FOP in a Java application, see:

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
0.92beta, of course. On 10.09.2006 16:03:07 Onur Senturk wrote: by the way, which version do you suggest me to use? 0.92beta or 0.20.5 i'm currently using 20.5 Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Turkish character support

2006-09-10 Thread Onur Senturk
ok, now i'm trying to do the things you told me, on this version. thanks :) On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: 0.92beta, of course.On 10.09.2006 16:03:07 Onur Senturk wrote: by the way, which version do you suggest me to use? 0.92beta or 0.20.5 i'm currently using 20.5Jeremias

Re: Wrapping long character strings

2006-09-10 Thread Wyatt Tellis
The asterisks are only one example. What about other character strings? Unfortunately I have no control over what data is put in the report, but I have to make sure that all characters are presented to the reader. I can implement the (#x200B;) workaround, but would prefer a FO only solution.

Re: Turkish character support

2006-09-10 Thread Onur Senturk
There is still something wrong. The special characters still appear as #what should i do?On 9/10/06, Onur Senturk [EMAIL PROTECTED] wrote:ok, now i'm trying to do the things you told me, on this version. thanks :) On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: 0.92beta, of course.On

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
As I suspected, your copy/paste garbled the file. I didn't get the right characters. Anyway, with your attached file the base 14 fonts included in FOP don't work but Arial and Verdana work. So, if you generate the font metrics file for one of those fonts and configure it with FOP, it works. As I

Re: Turkish character support

2006-09-10 Thread Onur Senturk
Did you have the opportunity to try it with arial? The thing is that I have to generate the pdf with Times new roman fonts. On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: As I suspected, your copy/paste garbled the file. I didn't get the rightcharacters.Anyway, with your attached file the

Re: Png output and transparent background

2006-09-10 Thread Jeremias Maerki
As an RFE, entering this in bugzilla would have been a valid approach, yes. But I've already done the necessary change in FOP Trunk: http://svn.apache.org/viewvc?view=revrev=441965 It was easy enough. For you this means, you should add the config setting below to your FOP configuration file: cfg

Re: Wrapping long character strings

2006-09-10 Thread Jeremias Maerki
overflow won't help here. wrap-option only controls whether to wrap or not, not how to wrap. XSL-FO uses country, language and script to indirectly specify how line-breaking should be done. script is not supported and country/language are currently only used to select the right hyphenation pattern

Re: Turkish character support

2006-09-10 Thread Onur Senturk
So you mean, I can use the Arial fonts with no problems, right? I'll attach the xml right away. On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: Hmm, that document renders just fine with the Base14 serif font. Alsofonts like Arial or Verdana will come out just fine. Given the fact that you've

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
Yes, it works with the Arial and TimesNewRoman fonts that come with Windows. On 10.09.2006 18:41:56 Onur Senturk wrote: Did you have the opportunity to try it with arial? The thing is that I have to generate the pdf with Times new roman fonts. On 9/10/06, Jeremias Maerki [EMAIL PROTECTED]

Re: Turkish character support

2006-09-10 Thread Onur Senturk
can you do me a favor and send me your configuration file with the fonts? i still couldn't manage to get the pdf with right fonts :( On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: Yes, it works with the Arial and TimesNewRoman fonts that come withWindows.On 10.09.2006 18:41:56 Onur Senturk

Re: outputting TIFF-G images

2006-09-10 Thread Jeremias Maerki
One more thing: The TIFFRenderer currently uses the internal codecs from XML Graphics Commons to encode TIFF images. These do not support writing CCITT-G4 encoded images. We could switch to the ImageWriters I wrote for Batik and which are now available in XML Graphics Commons. They allow an

Re: Turkish character support

2006-09-10 Thread Onur Senturk
this is an example fo document: ?xml version=1.0 encoding=utf-8?fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format xmlns:html= http://www.w3.org/1999/xhtml writing-mode=lr-tb hyphenate=true text-align=start role=htmlfo:layout-master-setfo:simple-page-master page-width=auto page-height=auto

Re: Turkish character support

2006-09-10 Thread Jeremias Maerki
Sent to you off-list. Sanity check: You've added a font-family=TimesNewRoman or something like that to your FO document so FOP chooses the right font, haven't you? On 10.09.2006 18:54:44 Onur Senturk wrote: can you do me a favor and send me your configuration file with the fonts? i still

Re: Turkish character support

2006-09-10 Thread Onur Senturk
I generate my fo file from an html file. I think i missed that part... I'll check about that On 9/10/06, Jeremias Maerki [EMAIL PROTECTED] wrote: Sent to you off-list.Sanity check: You've added a font-family=TimesNewRoman or something like that to your FO document so FOP chooses the right font,

Re: Turkish character support

2006-09-10 Thread Onur Senturk
I finally did it. The reason why i was unable to get the fonts was because the font-family was not mentioned in the fo file. Now its ok. Thanks a lot. On 9/10/06, Onur Senturk [EMAIL PROTECTED] wrote: I generate my fo file from an html file. I think i missed that part... I'll check about that