Subject:Using a font in FOP Author:Uday Rao Date:26 Sep 2006 11:36 PM
Regardless of the font I use in the FO stylesheet, I get the warning that it is an unknown font and it defaulted to "any" using the FOP post-processor. How do I add a font to FOP under StylusStudio? I reviewed the FOP website and it pointed to a configuration XML file that I could not find within StylusStudio. thanks.
Subject:Re: Using a font in FOP Author:(Deleted User) Date:27 Sep 2006 09:32 AM
Hi,
in order to make Stylus read the configuration file for FOP you need
to place it in the <Stylus Folder>\bin\Plugins\Fop directory, with
the name userconfig.xml.
Subject:Re: Using a font in FOP Author:Jammy Pac Date:22 Feb 2007 12:03 PM
Hi SSDN,
This seems to work only for style sheets. It doesn't seem to work for post-processing on XQuery. How can I configure a font for FO post-processing with an XQuery.
Subject:Re: Using a font in FOP Author:(Deleted User) Date:23 Feb 2007 03:43 AM
Hi Jammy,
we recently found out that the configuration file of Apache FOP is ignored by the XQuery processors; you will have to change your scenario to use a custom post-processor, specifying this command line:
java.exe -cp "C:\Program Files\Stylus Studio 2007 XML Enterprise Suite\bin\Plugins\Fop\fop.jar" org.apache.fop.apps.Fop -c "C:\Program Files\Stylus Studio 2007 XML Enterprise Suite\bin\Plugins\Fop\userconfig.xml" -fo %1 %2
Subject:Re: Using a font in FOP Author:Victor Hastings Date:03 Jan 2008 08:17 PM
I'm having this same "unknown font" error when using Apache FOP. I tried the workaround you suggested above (yes, I changed '2007' to '2008'), but still get an error because userconfig.xml doers not exist:
Post processing starting...
[INFO] Using com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[INFO] Using com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[ERROR] Could not load user configuration file:/C:/Program Files/Stylus Studio 2008 XML Enterprise Suite/bin/Plugins/Fop/userconfig.xml - error: C:\Program Files\Stylus Studio 2008 XML Enterprise Suite\bin\Plugins\Fop\userconfig.xml (The system cannot find the file specified)
[ERROR] using default values
[INFO] FOP 0.20.5rc3a
[INFO] Using com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] property - "text-transform" is not implemented yet.
[ERROR] property - "text-transform" is not implemented yet.
[ERROR] property - "text-transform" is not implemented yet.
[INFO] [1]
[ERROR] unknown font Times New Roman,normal,normal so defaulted font to any
Subject:Re: Using a font in FOP Author:(Deleted User) Date:07 Jan 2008 04:18 AM
Hi Victor,
simply create a userconfig.xml following those instructions and place it in the bin\Plugins\FOP folder of Stylus; Stylus will pick it up and pass it to FOP.