Registering fonts with FOP
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 190
- Joined: Wed Apr 20, 2005 5:43 pm
- Location: Victoria, BC, Canada
Registering fonts with FOP
Post by martindholmes »
I'm trying to follow the instructions here:
http://www.oxygenxml.com/doc/ug-editor/ ... n-FOP.html
to add fonts to the built-in FOP, on Linux, but the suggested script fails.
line 3: export: `-cp': not a valid identifier
line 3: export: `lib/fop.jar:lib/avalon-framework-4.2.0.jar:lib/xercesImpl.jar': not a valid identifier
line 4: export: `org.apache.fop.fonts.apps.TTFReader': not a valid identifier
Exception in thread "main" java.lang.NoClassDefFoundError: /usr/share/fonts/truetype/gentium-plus/GentiumPlus-R/ttf
The jar files are all where they're supposed to be. I must be missing something obvious. Can anyone see what it is?
All help appreciated,
Martin
http://www.oxygenxml.com/doc/ug-editor/ ... n-FOP.html
to add fonts to the built-in FOP, on Linux, but the suggested script fails.
line 3: export: `-cp': not a valid identifier
line 3: export: `lib/fop.jar:lib/avalon-framework-4.2.0.jar:lib/xercesImpl.jar': not a valid identifier
line 4: export: `org.apache.fop.fonts.apps.TTFReader': not a valid identifier
Exception in thread "main" java.lang.NoClassDefFoundError: /usr/share/fonts/truetype/gentium-plus/GentiumPlus-R/ttf
The jar files are all where they're supposed to be. I must be missing something obvious. Can anyone see what it is?
All help appreciated,
Martin
-
- Posts: 190
- Joined: Wed Apr 20, 2005 5:43 pm
- Location: Victoria, BC, Canada
Re: Registering fonts with FOP
Post by martindholmes »
I was able to get a little further by adding two more libraries to the classpath, and running a complete literal command instead of using the exports:
java -cp lib/fop.jar:lib/avalon--framework-4.2.0.jar:lib/xercesImpl.jar:lib/commons-logging-1.1.1.jar:lib/commons-io-1.3.1.jar:lib/xmlgraphics-commons-1.5.jar:lib/xml-apis.jar org.apache.fop.fonts.apps.TTFReader /usr/share/fonts/truetype/gentium-plus/GentiumPlus-R.ttf GentiumPlus-R.xml
Two additional libraries are suggested by the documentation here:
http://xmlgraphics.apache.org/fop/1.1/fonts.html
and the last two I figured out based on errors.
Hope this helps someone else.
Cheers,
Martin
java -cp lib/fop.jar:lib/avalon--framework-4.2.0.jar:lib/xercesImpl.jar:lib/commons-logging-1.1.1.jar:lib/commons-io-1.3.1.jar:lib/xmlgraphics-commons-1.5.jar:lib/xml-apis.jar org.apache.fop.fonts.apps.TTFReader /usr/share/fonts/truetype/gentium-plus/GentiumPlus-R.ttf GentiumPlus-R.xml
Two additional libraries are suggested by the documentation here:
http://xmlgraphics.apache.org/fop/1.1/fonts.html
and the last two I figured out based on errors.
Hope this helps someone else.
Cheers,
Martin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Registering fonts with FOP
Post by sorin_ristache »
Hello,
Thank you for reporting the error. We updated the FOP library in the lib directory but not the classpath in the script for generating the font metrics file. I corrected the script in the User Manual, the next Oxygen User Manual version will include the corrected script.
Thank you,
Sorin
Thank you for reporting the error. We updated the FOP library in the lib directory but not the classpath in the script for generating the font metrics file. I corrected the script in the User Manual, the next Oxygen User Manual version will include the corrected script.
Thank you,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service