Hello,

I do the following : I create a Document on the fly (create Elements, adding Attributes, setting childs etc., etc.). If I try to display it in a JSVGCanvas via the setSVGDocument() method I get the following exception :
------ begin ------
org.apache.batik.bridge.BridgeException: null:-1
An I/O error occured while processing the URI '' specified on the element <font-face-uri>
at org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
at org.apache.batik.bridge.SVGFontUtilities.findFontElement(Unknown Source)
at org.apache.batik.bridge.SVGFontUtilities.getFontFamily(Unknown Source)
at org.apache.batik.bridge.SVGTextElementBridge.getAttributeMap(Unknown Source)
at org.apache.batik.bridge.SVGTextElementBridge.fillAttributedStringBuffer(Unknown Source)
at org.apache.batik.bridge.SVGTextElementBridge.buildAttributedString(Unknown Source)
at org.apache.batik.bridge.SVGTextElementBridge.computeLayoutedText(Unknown Source)
at org.apache.batik.bridge.SVGTextElementBridge.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)
------ end -------


The URI in question is created by "fontFaceUriElement.setAttributeNS(null, "xlink:href", defaultFontPath);" where `defaultFontPath ` is the _absolute_ path to an external svg file (containing a font).
If I save the document first and then try to display it via the setURI() method, everything works just fine.
Any ideas?


I downloaded batik (http://xml.apache.org/batik/dist/) just a couple of days ago, so I assume it is the last stable version. I work on Linux and JDK 1.4.2 (SUN)

Tnx,

Tom.

--
Klein bottle for sale... inquire within.


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



Reply via email to