
Where are these xml files supposed to go? If I put them in the directory specified in the PDF on the site, they are not found. If I hard code them in the fopConfiguration.xml, they are found. But I'd prefer not to hard code the location.

Hello, The font metrics files must be specified in the configuration file specified in Options -> Preferences -> XML -> XSLT/FO/XQuery -> FO Processors. Apache FOP requires that. You can read about this in the "How to Add a Font to the <oXygen/> Built-in FOP" article on the website: http://www.oxygenxml.com/doc/addFontToFOP.pdf FOP embeds the font data in the PDF file so the font metrics file stored in the same location as the result PDF has no effect as it is not accessed after the PDF is generated. Any path specified in the FOP configuration file is relative to this configuration file, so you can use that to avoid hard coding absolute paths in this file. Regards, Sorin Timothy Reaves wrote:
Where are these xml files supposed to go? If I put them in the directory specified in the PDF on the site, they are not found. If I hard code them in the fopConfiguration.xml, they are found. But I'd prefer not to hard code the location.

Ya.... see, the thing is, I've actually read that document as I stated below. And there is some out-of-date information in it. On Jul 31, 2006, at 2:46 AM, Sorin Ristache wrote:
Hello,
The font metrics files must be specified in the configuration file specified in Options -> Preferences -> XML -> XSLT/FO/XQuery -> FO Processors. Apache FOP requires that. You can read about this in the "How to Add a Font to the <oXygen/> Built-in FOP" article on the website:
http://www.oxygenxml.com/doc/addFontToFOP.pdf
FOP embeds the font data in the PDF file so the font metrics file stored in the same location as the result PDF has no effect as it is not accessed after the PDF is generated. Any path specified in the FOP configuration file is relative to this configuration file, so you can use that to avoid hard coding absolute paths in this file.
Regards, Sorin
Timothy Reaves wrote:
Where are these xml files supposed to go? If I put them in the directory specified in the PDF on the site, they are not found. If I hard code them in the fopConfiguration.xml, they are found. But I'd prefer not to hard code the location.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Might it be possible that the PDF is still outdated? I am not able to generate a font metrics file. When trying to run ttfConvert.bat as printed in the PDF I downloaded today, I always end up with error messages. Substituting avalon-framework-4.1.3.jar for avalon-framework.jar and xalan.jar for xalanOxygen.zip didn't help. (Running oXygen 7.2 on Windows XP SP 2)
We corrected the PDF article and we updated it on the website. Thank you for letting us know.
Thanks in advance. Stefan Cramme

Hello, Yes lib/avalon-framework.jar must be replaced with lib/avalon-framework-4.1.3.jar and lib/xalanOxygen.zip must be replaced with lib/xalan.jar. I think these are the only changes in order to update the article to the latest version of oXygen. What error messages do you get after applying these 2 changes ? Best regards, Sorin Stefan Cramme wrote:
Might it be possible that the PDF is still outdated? I am not able to generate a font metrics file. When trying to run ttfConvert.bat as printed in the PDF I downloaded today, I always end up with error messages. Substituting avalon-framework-4.1.3.jar for avalon-framework.jar and xalan.jar for xalanOxygen.zip didn't help.
(Running oXygen 7.2 on Windows XP SP 2)
We corrected the PDF article and we updated it on the website. Thank you for letting us know.
Thanks in advance. Stefan Cramme _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (3)
-
Sorin Ristache
-
Stefan Cramme
-
Timothy Reaves