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

@font-face causes null pointer exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      The following causes a null pointer exception in FontFace.createFontFace:

      <defs>
      <style type="text/css"><![CDATA[
      @font-face

      { font-family:Arial}

      .fnt

      {font-weight:normal;font-size:42;font-family:Arial}

      ]]></style>
      </defs>

      I'm not sure what the intention is, or if this is valid CSS.

      The following patch allows the SVG to be displayed, but I'm not claiming that it's a proper fix:

      protected FontFace(String familyName)

      { super(familyName); srcs = new ArrayList(); // added }

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              tonys@turnkey.com.au Tony Stevens
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: