On 02/04/2015 12:24 PM, Kobayashi, Akagi wrote:
HI Hussein,
Thank you for your quick response.
I am generating the PDF output not directly from XMLMIND XML Editor.
The process is integrated as an ant target.
Then I'm sorry but I'm not allowed help you. This mailing list is
strictly about issues regarding the use of our product, XMLmind XML
Editor. FOP is a product of the Apache Software Foundation. See
http://xmlgraphics.apache.org/fop/
The fop I use is 0.95(!) and as far as I can remember, we used the customized
fop.xconf, with the custom layer, to add the more recently added fonts. The
userconfig.xml resides in the config folder. The custom layer xsl in the fo
folder is updated to refer to font family etc to the new font.
However, the modified userconfig.xml is not being picked up. The Fop processor
log complains that the font cannot be found.
Is there any restriction in the ttf or xml file naming? Can it contain '_'?
e.g. Vodafone_Rg?
Any other advice will be most welcome.
Best regards,
Akagi
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Hussein Shafie
Sent: Monday, February 2, 2015 8:43 AM
To: Kobayashi, Akagi
Cc: '[email protected]'
Subject: Re: [XXE] FOP cannot find new fonts
On 02/02/2015 09:12 AM, Kobayashi, Akagi wrote:
I'm adding new fonts to my docbook build, but they are not found by the fop.
I have created metrics files and placed them in the fonts folder. I've
also edited the config ffile for fop, in the same manner that other
fonts in use are. I have removed the fop cache.
Any hint as to how I could find out what's going on - advice on what
could be done - would be greatly appreciated.
That's normal. By default, FOP when embedded in XMLmind XML Editor ignores your
hand-written FOP configuration file.
Two possible solutions to your problem.
1) You are 100% sure about the contents of your FOP configuration file (i.e.
because you have *tested* it outside XXE using the stock fop command-line tool)
and you want to instruct XMLmind XML Editor to use it.
Let's suppose your FOP configuration file is found in:
C:\My Foo\bar\fop.conf
You must pass XMLmind XML Editor the following command line option:
-DXXE_FOP_CONFIG="C:\My Foo\bar\fop.conf"
This is done by using notepad to edit XXE_install_dir/bin/xxe.jstart.
Use notepad to add a line containing:
-DXXE_FOP_CONFIG="C:\My Foo\bar\fop.conf"
after the line containing:
-Xss4m -Xmx512m
More information in
http://www.xmlmind.com/xmleditor/addons_doc.html#fop1_foprocessor
*OR*
2) You prefer to use a FOP configuration file automatically created by
XMLmind XML Editor (highly recommended!). This method also makes the FOP
configuration file easier and safer to modify in the future if needed
to. And of course, you'll not have to tweak any script file by hand.
Please refer to this chapter of our online documentation:
6.13.1. Apache FOP options
http://www.xmlmind.com/xmleditor/_distrib/doc/help/addonOptions.html#fopOptions
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support