]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix: font-family values need to be enclosed in apostrophes in case they contain...
authorJeremias Maerki <jeremias@apache.org>
Thu, 28 Jan 2010 17:21:46 +0000 (17:21 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 28 Jan 2010 17:21:46 +0000 (17:21 +0000)
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

index aa2e325d9fea65fac8188cf837606f5a6ba67e89..1466197a6040b1f9bccb9bc4c986ce0d2cda0c70 100644 (file)
@@ -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());