From a86f348c9e7a6589e8c71a60ef3f484c98f61d7c Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 28 Jan 2010 17:21:46 +0000 Subject: [PATCH] Bugfix: font-family values need to be enclosed in apostrophes in case they contain whitespace. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@904170 13f79535-47bb-0310-9956-ffa450edef68 --- src/sandbox/org/apache/fop/render/svg/SVGPainter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox/org/apache/fop/render/svg/SVGPainter.java b/src/sandbox/org/apache/fop/render/svg/SVGPainter.java index aa2e325d9..1466197a6 100644 --- a/src/sandbox/org/apache/fop/render/svg/SVGPainter.java +++ b/src/sandbox/org/apache/fop/render/svg/SVGPainter.java @@ -381,7 +381,7 @@ public class SVGPainter extends AbstractIFPainter implements SVGConstants { private void startTextGroup() throws SAXException { AttributesImpl atts = new AttributesImpl(); - XMLUtil.addAttribute(atts, "font-family", state.getFontFamily()); + XMLUtil.addAttribute(atts, "font-family", "'" + state.getFontFamily() + "'"); XMLUtil.addAttribute(atts, "font-style", state.getFontStyle()); XMLUtil.addAttribute(atts, "font-weight", Integer.toString(state.getFontWeight())); XMLUtil.addAttribute(atts, "font-variant", state.getFontVariant()); -- 2.39.5