I should have looked more closely at your code. You instantiate the PDFRenderer yourself, probably for the same reason that you set the ElementMappings yourself. I'd really like to know the reason why you think you need to do that. Why did Service discovery not work for you?
Anyway, the problem is as follows: After instantiating the renderer yourself, you don't configure it (calling its configure(Configuration) method). That's why it doesn't have any font configuration. If you use setRendererOverride, you have to do everything (!) yourself. I'd suggest you figure out how you can use the normal Service discovery and switch back to the normal usage patterns as explained on the FOP website. On 15.02.2007 12:23:03 Virginijus Kandrotas wrote: > > > yes exactly I can not run your example using my embedded code as I already > posted. It seems that in embedded code configuration file is not read or > not set to fo userAgent. I'm getting in log this warning “WARN [FontInfo] > Font 'Arial,normal,400' not found. Substituting with 'any,normal,400'.”. > > On command line it works without problem. > > regards, > > Virginijus Kandrotas > > > > Jeremias Maerki-2 wrote: > > > > Does that mean you can't run my example? You get an error about > > "Times-Roman" with pdfa-example.fo? If yes, that's really weird. > > > > I simply did this on the command-line: > > fop -c fop.xconf -fo pdfa-example.fo -pdfa1b pdfa-example.pdf > > > > Have you tried it from the command-line? > > > > On 14.02.2007 16:59:53 Virginijus Kandrotas wrote: > >> > >> > >> > >> I just try to run your example (pdfa-example.fo), have no extra > >> references > >> to the fonts defined. > >> > >> regards, > >> > >> Virginijus Kandrotas Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
