xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r904170 - /xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGPainter.java
Date Thu, 28 Jan 2010 17:21:46 GMT
Author: jeremias
Date: Thu Jan 28 17:21:46 2010
New Revision: 904170

URL: http://svn.apache.org/viewvc?rev=904170&view=rev
Log:
Bugfix: font-family values need to be enclosed in apostrophes in case they contain whitespace.

Modified:
    xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGPainter.java

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGPainter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGPainter.java?rev=904170&r1=904169&r2=904170&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGPainter.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGPainter.java Thu Jan 28
17:21:46 2010
@@ -381,7 +381,7 @@
 
     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());



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message