https://issues.apache.org/bugzilla/show_bug.cgi?id=46238

           Summary: @font-face causes null pointer exception
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Bridge
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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
    }


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to