Hi Srikrishnan,

 

Here is the command I used for Chinese fonts in Linux

 

# java -cp
/root/Desktop/fop/build/fop.jar:/root/Desktop/fop/lib/avalon-framework-4
.2.0.jar:/root/Desktop/fop/lib/commons-logging-1.0.4.jar:/root/Desktop/f
op/lib/commons-io-1.3.1.jar:/root/Desktop/fop/lib/xmlgraphics-commons-1.
4.jar org.apache.fop.fonts.apps.TTFReader
/usr/share/fonts/simhei/simhei.ttf /usr/share/fonts/simhei/simhei.xml

 

 

Chen

 

From: SriKrishnan [mailto:srikrish...@techset.co.uk] 
Sent: November-04-10 6:11 AM
To: fop-users@xmlgraphics.apache.org
Subject: font configuration in fop

 

Hi All,

 

I want to configure "Goudy" font in my fop. I tried something like below
as per mentioned in the Documentation:

 

D:\xslfo>java -cp
"C:/fop-1.0/build/fop.jar";"C:/fop-1.0/lib/avalon-framework-4.2.0.jar";"
C:/fop-1.0/lib/commans-logging-1.0.4.jar";"C:/fop-1.0/lib/commons-io-1.3
.1.jar" org.apache.fop.fonts.apps.TTFReader -d "C:/
OpenTypeFonts/Goudy.otf" Goudy.xml

 

But I encountered some error message as follows:

 

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory

        at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:119)

Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.LogFactory

        at java.net.URLClassLoader$1.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        ... 1 more

 

Can anybody helpme to understand what about this? And how to solve this?

 

Thanks in Advance,

Srikrishnan

Reply via email to