xmlgraphics-batik-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r1060577 - /xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGFont.java
Date Tue, 18 Jan 2011 20:55:15 GMT
Author: cam
Date: Tue Jan 18 20:55:14 2011
New Revision: 1060577

URL: http://svn.apache.org/viewvc?rev=1060577&view=rev
Log:
Ensure font-size is serialized with "px" units by SVGGraphics2D.  (This will
be the case regardless of 'useCss', even though it is only needed for
'useCss = true'.)

Fixes bug 50100.

Modified:
    xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGFont.java

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGFont.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGFont.java?rev=1060577&r1=1060576&r2=1060577&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGFont.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGFont.java Tue Jan 18 20:55:14
2011
@@ -235,7 +235,7 @@ public class SVGFont extends AbstractSVG
                                          frc.isAntiAliased(),
                                          frc.usesFractionalMetrics());
 
-        String fontSize = "" + doubleString(font.getSize2D());
+        String fontSize = doubleString(font.getSize2D()) + "px";
         String fontWeight = weightToSVG(font);
         String fontStyle = styleToSVG(font);
         String fontFamilyStr = familyToSVG(font);



Mime
View raw message