
Sometime ago, you supplied me this information to embed a font for FOP. I have now moved my implementation to a new machine and FOP complained that it could not find a font. I found the below email and to refresh my memory, tried to go to http://www.oxygenxml.com/doc/articles/AddFontToFOP/addFontToFOP.pdf which no longer exists. So, I do not know where or why to run this script or how to set things up on my new machine. Everything except FOP works. I access FOP from a bat file, not from a scenario. Any hints would be appreciated, Mark -------------------------------------------------- From: "Sorin Ristache" <sorin@oxygenxml.com> Sent: Tuesday, March 03, 2009 12:28 AM To: <oxygen-user@oxygenxml.com> Subject: Re: [oXygen-user] Embedding fonts in Oxygen for FOP
Hello,
You have an old version of the script. The article "How to Add a Font to the Oxygen Built-in FO processor" was updated on the website because the names of the libraries changed in new versions of Oxygen:
http://www.oxygenxml.com/doc/articles/AddFontToFOP/addFontToFOP.pdf
Use the following content for the script ttfConvert.bat:
set LIB=lib set CMD=java -cp "%LIB%\fop.jar;%LIB%\avalon-framework-4.2.0.jar;%LIB%\xercesImpl.jar" set CMD=%CMD% org.apache.fop.fonts.apps.TTFReader set FONT_DIR=C:\Windows\Fonts %CMD% %FONT_DIR%\Arialuni.ttf Arialuni.xml
You have to set the path to the folder [Oxygen-install-folder]\lib on your computer in the variable LIB:
set LIB=lib
Regards, Sorin
Mark Wilson wrote:
I am trying to embed a font containing Czech glyphs. Following Oxygen's instructions to embed a font in FOP for pdf output:
On my Windows Vista system, with Apache FOP 0.95 and Oxygen 10.1, when I run ttfConvert.bat (see below), I get the error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/fonts/apps/TTFReader Caused by: java.lang.ClassNotFoundException: org.apache.fop.fonts.apps.TTFReader. When I look in that directory, there is an html file with that name, but no Java file. I do note at the head of the Oxygen document, it says for the built in FOP, but there is no org.apache... sub directory under oxygen
Can you help? Thanks, Mark
set LIB=lib set CMD=java -cp "%LIB%\fop.jar;%LIB%\avalon-framework-4.2.0.jar set CMD=%CMD%;%LIB%\xml-apis.jar;%LIB%\xercesImpl.jar;%LIB%\xalan.jar set CMD=%CMD%;%LIB%\serializerOxygen.jar" org.apache.fop.fonts.apps.TTFReader set FONT_DIR=C:\Windows\Fonts %CMD% %FONT_DIR%\Tleeur.ttf TLEastEurope.xml
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user