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: [email protected]
For additional commands, e-mail: [email protected]