From: Jeremias Maerki Date: Thu, 28 Jan 2010 17:21:46 +0000 (+0000) Subject: Bugfix: font-family values need to be enclosed in apostrophes in case they contain... X-Git-Tag: fop-1_0~72 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a86f348c9e7a6589e8c71a60ef3f484c98f61d7c;p=xmlgraphics-fop.git 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 --- 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());