2 Replies Latest reply on Jun 7, 2008 5:28 AM by 843851

    font index file's content

      In FontFactory's reference, "dvb.fontindex" has been brought in. For implementing of FontFactory, I just make a test program to parse the file "dvb.fontindex". The file's content is like this:
      <?xml version="1.0"?>
      <!DOCTYPE fontdirectory PUBLIC "-//DVB//DTD Font Directory 1.0//EN"
      But I got the following exception.
      *** Nested Exception:
      java.io.FileNotFoundException: http://www.dvb.org/mhp/dtd/fontdirectory-1-0.dtd
           at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
           at java.net.URL.openStream(Unknown Source)
           at net.n3.nanoxml.StdXMLReader.openStream(Unknown Source)
           at net.n3.nanoxml.StdXMLParser.processDocType(Unknown Source)
           at net.n3.nanoxml.StdXMLParser.processSpecialTag(Unknown Source)
           at net.n3.nanoxml.StdXMLParser.scanSomeTag(Unknown Source)
           at net.n3.nanoxml.StdXMLParser.scanData(Unknown Source)
           at net.n3.nanoxml.StdXMLParser.parse(Unknown Source)
      From the message, it seems that error occured by "http://www.dvb.org/mhp/dtd/fontdirectory-1-0.dtd" 's unexistence.
      Is the dtd file really deleted from MHP specification?

      Appreciate for your help.
        • 1. Re: font index file's content
          But the exception comes from the nanoXML code. Why are you parsing this file?

          The correct use is to create it, leave in the root dir and then use the FontFactory to create a new font, no need to parse anything nor connect to any web.

          • 2. Re: font index file's content
            Thanks for replying.
            The problem has been resolved.
            The problem occured during implementation of FonFactory.
            When testint for font index file's parsing, the problem occured.
            I override the StdXmlReader, add the publicID to it, then the problem had been resolved.