Please note that as of FOP 0.95, generating the font metrics files is
not necessary anymore. Only in some very special cases can this step
still help.

I guess we need to make this clearer in our documentation.

On 24.11.2008 21:14:56 Erwan de FERRIERES wrote:
> 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 !
> 
> 
> -- 
> - Erwan -
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to