diff options
author | Keiron Liddle <keiron@apache.org> | 2001-10-12 06:40:13 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-10-12 06:40:13 +0000 |
commit | 49459fd44b6fd5bb44ce71beb2b0f5c0bcf06fc1 (patch) | |
tree | dcad463e87b7f8f7c211211da76485cdad0e8e90 /src/org/apache/fop/render/svg | |
parent | cd8fe5f0219eedfa1a634e5c5e5c99efaa395f6a (diff) | |
download | xmlgraphics-fop-49459fd44b6fd5bb44ce71beb2b0f5c0bcf06fc1.tar.gz xmlgraphics-fop-49459fd44b6fd5bb44ce71beb2b0f5c0bcf06fc1.zip |
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
Diffstat (limited to 'src/org/apache/fop/render/svg')
-rw-r--r-- | src/org/apache/fop/render/svg/SVGRenderer.java | 17 |
1 files changed, 7 insertions, 10 deletions
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 @@ -98,13 +98,6 @@ public class SVGRenderer extends AbstractRenderer { 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 */ protected Hashtable 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 { |