You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Brent L Johnson <br...@bjohnson.net> on 2001/12/06 19:35:49 UTC
TTF NullPointerException
I've got a truetype font I'm trying to convert using the ttf2svg converter and I get the following error:
java.lang.NullPointerException
at org.apache.batik.svggen.font.table.GlyfCompositeDescript.<init>(Unknown Source)
at org.apache.batik.svggen.font.table.GlyfTable.init(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)
null
usage: java org.apache.batik.svggen.font.SVGFont <ttf-path> [-l <range-begin>] [-h <range-end>] [-ascii] [-id <id>] [-o <output-path>] [-testcard]
I'm using the following command to convert it (and I copied one of the wingding ttf fonts and converted it and it worked just fine) - it's just like the example in the docs:
java -jar batik-ttf2svg.jar techno.ttf -l 48 -h 57 -id MySVGFont -o mySVGFont.svg -testcard
Doesn't work for the techno font, but does for webdings. Any idea why one ttf would cause a NPE and the other wouldnt?
Thanks,
- Brent
Re: TTF NullPointerException
Posted by David Schweinsberg <da...@steadystate.co.uk>.
Hi Brent
If you could tell me how to get hold of the techno font, I'll attempt to
reproduce the problem. It would appear to be a problem with a composite
glyph, perhaps referencing a bad simple glyph, but I will need to debug
with the problem font.
Regards,
David Schweinsberg
----- Original Message -----
From: Brent L <ma...@bjohnson.net> Johnson
To: Batik Users <ma...@xml.apache.org>
Sent: Thursday, December 06, 2001 6:35 PM
Subject: TTF NullPointerException
I've got a truetype font I'm trying to convert using the ttf2svg
converter and I get the following error:
java.lang.NullPointerException
at
org.apache.batik.svggen.font.table.GlyfCompositeDescript.<init>(Unknown
Source)
at org.apache.batik.svggen.font.table.GlyfTable.init(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)
null
usage: java org.apache.batik.svggen.font.SVGFont <ttf-path> [-l
<range-begin>] [-h <range-end>] [-ascii] [-id <id>] [-o <output-path>]
[-testcard]
I'm using the following command to convert it (and I copied one of the
wingding ttf fonts and converted it and it worked just fine) - it's just
like the example in the docs:
java -jar batik-ttf2svg.jar techno.ttf -l 48 -h 57 -id MySVGFont -o
mySVGFont.svg -testcard
Doesn't work for the techno font, but does for webdings. Any idea why
one ttf would cause a NPE and the other wouldnt?
Thanks,
- Brent
Re: TTF NullPointerException
Posted by Brent L Johnson <br...@bjohnson.net>.
Sorry for the delay. If anyone is interested in testing this out I can send
the TTF file as an attachment directly. I just didn't want to send a 56KB
attachment to everyone on this mailing list.
Thanks,
- Brent
----- Original Message -----
From: Brent L Johnson
To: Batik Users
Sent: Thursday, December 06, 2001 1:35 PM
Subject: TTF NullPointerException
I've got a truetype font I'm trying to convert using the ttf2svg converter
and I get the following error:
java.lang.NullPointerException
at
org.apache.batik.svggen.font.table.GlyfCompositeDescript.<init>(Unknown
Source)
at org.apache.batik.svggen.font.table.GlyfTable.init(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)
null
usage: java org.apache.batik.svggen.font.SVGFont <ttf-path> [-l
<range-begin>] [-h <range-end>] [-ascii] [-id <id>] [-o <output-path>]
[-testcard]
I'm using the following command to convert it (and I copied one of the
wingding ttf fonts and converted it and it worked just fine) - it's just
like the example in the docs:
java -jar batik-ttf2svg.jar techno.ttf -l 48 -h 57 -id MySVGFont -o
mySVGFont.svg -testcard
Doesn't work for the techno font, but does for webdings. Any idea why one
ttf would cause a NPE and the other wouldnt?
Thanks,
- Brent
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: TTF NullPointerException
Posted by Vincent Hardy <vi...@sun.com>.
Brendt,
Could you give us a little more information about the font (techno)
you are using (e.g., where could we get it to reproduce the problem)?
Thanks!
Vincent.
> Brent L Johnson wrote:
>
> I've got a truetype font I'm trying to convert using the ttf2svg
> converter and I get the following error:
> java.lang.NullPointerException
> at
> org.apache.batik.svggen.font.table.GlyfCompositeDescript.<init>(Unknown
> Source)
> at org.apache.batik.svggen.font.table.GlyfTable.init(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)
> null
> usage: java org.apache.batik.svggen.font.SVGFont <ttf-path> [-l
> <range-begin>] [-h <range-end>] [-ascii] [-id <id>] [-o <output-path>]
> [-testcard]
> I'm using the following command to convert it (and I copied one of the
> wingding ttf fonts and converted it and it worked just fine) - it's
> just like the example in the docs:
>
> java -jar batik-ttf2svg.jar techno.ttf -l 48 -h 57 -id MySVGFont -o
> mySVGFont.svg -testcard
>
> Doesn't work for the techno font, but does for webdings. Any idea why
> one ttf would cause a NPE and the other wouldnt?
>
> Thanks,
>
> - Brent
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org