Re: adding fonts to fop applet
John Root wrote: Edward, Actually, this is not that difficult, however it's not well documented. You'll need to set up a configuration file for FOP, convert the fonts that you plan to use for your application, and add the info for the converted fonts to the config file. This procedure is fairly well documented (adding fonts to FOP). Actually you missed the point of this thread. What you've described is how to set up fonts for FOP 0.20.5. But the OP is trying to set up fonts for development version of FOP, which is very different. Sorry to nitpick, just want to be clear for the archives. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding fonts to fop applet
Sorry 'bout that. I thought the issue seemed too simple. Thanks for the clarification. John On 7/14/04 5:02 AM, Chris Bowditch [EMAIL PROTECTED] wrote: John Root wrote: Edward, Actually, this is not that difficult, however it's not well documented. You'll need to set up a configuration file for FOP, convert the fonts that you plan to use for your application, and add the info for the converted fonts to the config file. This procedure is fairly well documented (adding fonts to FOP). Actually you missed the point of this thread. What you've described is how to set up fonts for FOP 0.20.5. But the OP is trying to set up fonts for development version of FOP, which is very different. Sorry to nitpick, just want to be clear for the archives. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding fonts to fop applet
Hi Simon, you mean that you succeed in using a non base14 font for pdf rendering in your application! Will you release the code soon (on the cvs? or your website )? Because honestly, that would really be helpfull! Edward Dialoguez directement et instantanément avec vos amis grâce à Yahoo! Messenger !
Re: adding fonts to fop applet
Edward, Actually, this is not that difficult, however it's not well documented. You'll need to set up a configuration file for FOP, convert the fonts that you plan to use for your application, and add the info for the converted fonts to the config file. This procedure is fairly well documented (adding fonts to FOP). The next step is to set up your application to load the configuration file. Here is a code snippet I used for loading a config file for a custom FOP servlet: public void init() throws ServletException { try { new Options(new File(/path/to/config/file/userconfig.xml)); } catch (Exception ex) { throw new ServletException(ex); } } That's really all there is to it. Good luck, John On 7/9/04 2:00 AM, tango ray [EMAIL PROTECTED] wrote: Thank you. The more I read, the more I m getting lost Edward Add a font in fop app is really hard !!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding fonts to fop applet
On Tue, Jul 13, 2004 at 02:01:26PM +0200, tango ray wrote: you mean that you succeed in using a non base14 font for pdf rendering in your application! Will you release the code soon (on the cvs? or your website )? No. I mean that if you add a font to your configuration file, it is now actually added to the list of fonts that FOP uses. If usage of the font is successful, is another matter, for which I am not very knowledgeable. Regards, Simon -- Simon Pepping home page: http://www.leverkruid.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding fonts to fop applet
On Fri, Jul 09, 2004 at 11:00:08AM +0200, tango ray wrote: Add a font in fop app is really hard !!! Chris warned you, this version of FOP is under heavy development. Support for user configuration and adding fonts is patchy. Well, was, I hope. I have just committed code which enables using a user configuration file and adding fonts from it. Usage: - Command line: point to a configuration file similar to conf/fop.xconf. - From an app: add a configuration object to the FOUseragent object, using the method setUserConfig(userConfig), where userConfig is an avalon user configuration object similar to the configuration object obtained from conf/fop.xconf. - From an app when you supply your own renderer: configure the renderer as an avalon Configurable object: renderer.configure(rendererConfig), where rendererConfig is an avalon renderer configuration object similar to the configuration object obtained from one of the renderer elements in conf/fop.xconf. I have enabled some debugging. Set the loggers called FOP, org.apache.fop.render and org.apache.fop.fonts to debug level. Remember that this version of FOP uses Apache Commons logging. See there for documentation. Example: Fri Jul 9 -- 19:17:51 -- distelvlinder:~/programmeren/fop JAVA_FLAGS=-Dorg.apache.commons.logging.simplelog.log.FOP=debug -Dorg.apache.commons.logging.simplelog.log.org.apache.fop.render=debug -Dorg.apache.commons.logging.simplelog.log.org.apache.fop.fonts=debug fop-run -c configuration-error.xml test-prop1.fo test-prop1.pdf Using class path: /source/xml-fop/build/classes:/home/simon/programmeren/java/classes:/usr/local/javaclasses [DEBUG] FOP - -No user configuration found for MIME type application/pdf Fri Jul 9 -- 19:18:06 -- distelvlinder:~/programmeren/fop JAVA_FLAGS=-Dorg.apache.commons.logging.simplelog.log.FOP=debug -Dorg.apache.commons.logging.simplelog.log.org.apache.fop.render=debug -Dorg.apache.commons.logging.simplelog.log.org.apache.fop.fonts=debug fop-run -c configuration.xml test-prop1.fo test-prop1.pdf Using class path: /source/xml-fop/build/classes:/home/simon/programmeren/java/classes:/usr/local/javaclasses [DEBUG] FOP - -User configuration found for MIME type application/pdf [DEBUG] render - -Adding PDF filter for type content: null [DEBUG] fonts - -Adding font arial.ttf, metric file arial.xml [DEBUG] fonts - -Font triplet Arial, normal, normal [DEBUG] fonts - -Font triplet ArialMT, normal, normal [DEBUG] fonts - -Adding font arialb.ttf, metric file arialb.xml [DEBUG] fonts - -Font triplet Arial, bold, normal [DEBUG] fonts - -Font triplet ArialMT, bold, normal Good luck, Simon -- Simon Pepping home page: http://www.leverkruid.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]