From 49459fd44b6fd5bb44ce71beb2b0f5c0bcf06fc1 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Fri, 12 Oct 2001 06:40:13 +0000 Subject: changed api associated with batik to current batik added a half implemented bridge for jpg images git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194499 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/render/svg/SVGRenderer.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/org/apache/fop/render/svg') diff --git a/src/org/apache/fop/render/svg/SVGRenderer.java b/src/org/apache/fop/render/svg/SVGRenderer.java index af616d6d5..23b16c9be 100644 --- a/src/org/apache/fop/render/svg/SVGRenderer.java +++ b/src/org/apache/fop/render/svg/SVGRenderer.java @@ -97,13 +97,6 @@ public class SVGRenderer extends AbstractRenderer { protected float currentGreen = 0; protected float currentBlue = 0; - /** - * The parent component, used to set up the font. - * This is needed as FontSetup needs a live AWT component - * in order to generate valid font measures. - */ - protected Component parent; - /** * options */ @@ -607,9 +600,13 @@ public class SVGRenderer extends AbstractRenderer { throws IOException { DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); svgDocument = impl.createDocument(svgNS, "svg", null); - - svgRoot = svgDocument.getDocumentElement(); - } + ProcessingInstruction pi = + svgDocument.createProcessingInstruction( + "xml", + " version=\"1.0\" encoding=\"ISO-8859-1\""); + svgRoot = svgDocument.getDocumentElement(); + svgDocument.insertBefore(pi, svgRoot); + } public void stopRenderer(OutputStream outputStream) throws IOException { -- cgit v1.2.3