XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Uday RaoSubject: 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.

Postnext
Alberto MassariSubject: Re: Using a font in FOP
Author: Alberto Massari
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.

Hope this helps,
Alberto

Postnext
Uday RaoSubject: Re: Using a font in FOP
Author: Uday Rao
Date: 27 Sep 2006 10:41 PM
Thank you, that worked.

Postnext
Jammy PacSubject: 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.

Thanks,
Jammy

Postnext
Alberto MassariSubject: Re: Using a font in FOP
Author: Alberto Massari
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

Hope this helps,
Alberto

Postnext
Victor HastingsSubject: 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

Postnext
Alberto MassariSubject: Re: Using a font in FOP
Author: Alberto Massari
Date: 04 Jan 2008 05:28 AM
Hi Victor,
you have to manually create the userconfig.xml; have a look at the thread at http://www.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=1626 for the instructions on how to build one.

Hope this helps,
Alberto

Postnext
Victor HastingsSubject: Re: Using a font in FOP
Author: Victor Hastings
Date: 05 Jan 2008 02:05 PM
Sorry, I'm still confused. SS created a Plugins\FOP folder, but there is no FOP_Dir\conf folder in there, and I can't find one on my system.

I didn't install FOP separately; I just let SS do it for me. Do I need to install FOP from scratch?

Posttop
Alberto MassariSubject: Re: Using a font in FOP
Author: Alberto Massari
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.

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.