[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-users
Subject:    Computer Modern Fonts and ttf2svg
From:       "Manuel Strehl" <Manuel.Strehl () physik ! uni-regensburg ! de>
Date:       2007-12-28 20:03:23
Message-ID: 4775649B020000FD00003356 () gwsmtp1 ! uni-regensburg ! de
[Download RAW message or body]

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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic