You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Manuel Strehl <ma...@stud.uni-regensburg.de> on 2005/12/21 22:45:44 UTC
Trying to use TTFReader
Hi.
I was trying to use the TTFReader to render a TTF font to a metric file.
I used the command provided in the documentary (Win XP, Java1.5.0, FOP
0.20 and 0.90, command: "
java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
lib\xercesImpl.jar;lib\xalan.jar
org.apache.fop.fonts.apps.TTFReader [options]
C:\myfonts\cmr10.ttf ttfcm.xml
") and changed the filenames to the ones of my actual FOP files. But
anytime I try to convert a font I get this error message:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:155)
I played around a bit with the option flag, but that didn't change
anything. Can anybody tell me, what's my mistake?
Best Regards
Manuel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Trying to use TTFReader
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Our fault. We missed a little detail on the page that documents fonts
for 0.90. You need to add an entry for "lib\commons-logging-1.0.4.jar"
(and "lib\commons-io-1.1.jar") on the command-line because that's where
"org/apache/commons/logging/LogFactory" is found.
The following works for me on JDK 1.4 and 1.5:
java -cp build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.1.jar org.apache.fop.fonts.apps.TTFReader FUTURAB.TTF futurab.xml
"xml-apis.jar", "xercesImpl.jar" and "xalan.jar" are only necessary on
JDK 1.3.x.
I hope that helps. I'll update the documentation.
On 21.12.2005 22:45:44 Manuel Strehl wrote:
> Hi.
>
> I was trying to use the TTFReader to render a TTF font to a metric file.
> I used the command provided in the documentary (Win XP, Java1.5.0, FOP
> 0.20 and 0.90, command: "
>
> java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
> lib\xercesImpl.jar;lib\xalan.jar
> org.apache.fop.fonts.apps.TTFReader [options]
> C:\myfonts\cmr10.ttf ttfcm.xml
>
> ") and changed the filenames to the ones of my actual FOP files. But
> anytime I try to convert a font I get this error message:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>
> at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:155)
>
>
> I played around a bit with the option flag, but that didn't change
> anything. Can anybody tell me, what's my mistake?
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Trying to use TTFReader
Posted by Teus Benschop <te...@teusbenschop.nl>.
I've got the same problem, using fop 0.20.5.
From within the fop root directory, I issue this command:
/home/joe/jre1.5.0_04/bin/java -cp
"build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;lib\xercesImpl.jar;lib\xalan.jar"
org.apache.fop.fonts.apps.TTFReader
/usr/share/fonts/bitstream-vera/Vera.ttf metrics.xml
It gives this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/fop/fonts/apps/TTFReader
Is there any solution to this problem?
Thank you,
Teus.
J.Pietschmann wrote:
> Manuel Strehl wrote:
>> I was trying to use the TTFReader to render a TTF font to a metric
>> file. I used the command provided in the documentary (Win XP,
>> Java1.5.0, FOP 0.20 and 0.90, command: "
>>
>> java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
>> lib\xercesImpl.jar;lib\xalan.jar
>> org.apache.fop.fonts.apps.TTFReader [options]
>> C:\myfonts\cmr10.ttf ttfcm.xml
>
> It seems the command line is missing a class path entry for the
> commons logging jar. You should find the jar in the lib directory.
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Trying to use TTFReader
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Manuel Strehl wrote:
> I was trying to use the TTFReader to render a TTF font to a metric file.
> I used the command provided in the documentary (Win XP, Java1.5.0, FOP
> 0.20 and 0.90, command: "
>
> java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
> lib\xercesImpl.jar;lib\xalan.jar
> org.apache.fop.fonts.apps.TTFReader [options]
> C:\myfonts\cmr10.ttf ttfcm.xml
It seems the command line is missing a class path entry for the
commons logging jar. You should find the jar in the lib directory.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org