Hello,

searching the mailing list didn't provide an answer, please excuse, if this was 
handled before.

I tried to convert some TrueType fonts to SVG via ttf2svg (using Batik 1.7). It 
works fine for other TTFs, but when it comes to the Computer Modern fonts from 
CTAN, the program fails with the error appended to this mail.

My question: Is this a problem of the font or of ttf2svg?

Best
Manuel

PS: If someone knows another SVG version of Computer Modern than 
<http://goossens.home.cern.ch/goossens/svgfonts.html>, this would be great! The 
problem is mainly the character encoding there.

The error message:

$ ttf2svg cmr10.ttf
java.io.EOFException
        at java.io.RandomAccessFile.readInt(Unknown Source)
        at org.apache.batik.svggen.font.table.Os2Table.<init>(Unknown Source)
        at org.apache.batik.svggen.font.table.TableFactory.create(Unknown 
Source)
        at org.apache.batik.svggen.font.Font.read(Unknown Source)
        at org.apache.batik.svggen.font.Font.create(Unknown Source)
        at org.apache.batik.svggen.font.SVGFont.main(Unknown Source)
        at org.apache.batik.apps.ttf2svg.Main.main(Unknown Source)
<Xxml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 
1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"; > <svg
 xmlns="http://www.w3.org/2000/svg"; width="100%" height="100%">
<defs >
java.lang.NullPointerException
        at org.apache.batik.svggen.font.SVGFont.writeFontAsSVGFragment(Unknown 
Source)
        at org.apache.batik.svggen.font.SVGFont.main(Unknown Source)
        at org.apache.batik.apps.ttf2svg.Main.main(Unknown Source)
null
usage: java org.apache.batik.svggen.font.SVGFont <ttf-path> [-l <range-begin>] 
[-h <range-end>] [-autorange] [-ascii] [-id <id>] [-o <output-path>] [-
testcard]

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

Reply via email to