Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-974

NullPointerException in ttf2svg

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.7
    • None
    • None
    • Operating System: All
      Platform: PC

    Description

      I used this commandline:

      java -jar batik-ttf2svg.jar c:\Windows\Fonts\msgothic.ttc -o msgothic.svg

      On Windows 7 x64. That's a TrueType font that comes with Windows by default, and has a pretty large range of unicode characters.

      Full error:
      java.lang.NullPointerException
      at org.apache.batik.svggen.font.Font.read(Font.java:179)
      at org.apache.batik.svggen.font.Font.create(Font.java:197)
      at org.apache.batik.svggen.font.SVGFont.main(SVGFont.java:701)
      at org.apache.batik.apps.ttf2svg.Main.main(Main.java:34)
      null

      That's on Java 1.6. And it's always reproducible. Probably even on a default installation.

      Attachments

        Issue Links

          Activity

            People

              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              martijn@thany.nl Martijn
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: