Succedeed with the trunk version (downloaded, "anted" and used the same
command line). Hope that will help someone one day !
Jean-François El Fouly a écrit :
Erwan de FERRIERES a écrit :
Hi all,
I'm trying to generate font metrics in order to import them in a
project. Generating start well, but then I've got some errors. I'm
running debian and javai version is 1.6.0_07
Here is the line I type to launch the metric generation :
java -cp
fop.jar:avalon-framework.jar:commons-logging.jar:commons-io.jar
org.apache.fop.fonts.apps.TTFReader FreeMono.ttf -d DEBUG
Then the debug tells me :
TTF Reader for Apache FOP 0.95
Parsing font...
Reading FreeMono.ttf...
sfnt version: OpenType 1.0
Reading 18 dir tables
dir tables: [loca, post, FFTM, glyf, fpgm, hmtx, GPOS, hhea, prep,
GSUB, GDEF, cvt , gasp, name, OS/2, cmap, head, maxp]
unit per em: 1000
Number of glyphs in font: 2709
hhea.Ascender: 900 900
hhea.Descender: -300 -300
Number of horizontal metrics: 4
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/xmlgraphics/fonts/Glyphs
at
org.apache.fop.fonts.truetype.TTFFile.initAnsiWidths(TTFFile.java:444)
at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:493)
at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209)
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164)
Caused by: java.lang.ClassNotFoundException:
org.apache.xmlgraphics.fonts.Glyphs
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 4 more
I've been trying with other fonts, but got the same error.
Thank you for your time and help !
Had the same error and, as I was in a hurry, got back to 0.94 which was
somewhere around to generate the font metrics.
Worked well.
It looks like XML Graphics Commons is now somehow required to run TTF
Reader but I'm afraid the online documentation does not state this clearly.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
- Erwan -
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]