diff options
Diffstat (limited to 'src/org/apache/fop')
-rw-r--r-- | src/org/apache/fop/fo/FOUserAgent.java | 2 | ||||
-rw-r--r-- | src/org/apache/fop/svg/SVGElement.java | 6 | ||||
-rw-r--r-- | src/org/apache/fop/svg/SVGUserAgent.java | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/org/apache/fop/fo/FOUserAgent.java b/src/org/apache/fop/fo/FOUserAgent.java index e5823180f..543b46191 100644 --- a/src/org/apache/fop/fo/FOUserAgent.java +++ b/src/org/apache/fop/fo/FOUserAgent.java @@ -54,7 +54,7 @@ public class FOUserAgent implements LogEnabled { return base; } - public float getPixelToMM() { + public float getPixelUnitToMillimeter() { return 0.35277777777777777778f; } diff --git a/src/org/apache/fop/svg/SVGElement.java b/src/org/apache/fop/svg/SVGElement.java index e505fbab3..e19b6db9d 100644 --- a/src/org/apache/fop/svg/SVGElement.java +++ b/src/org/apache/fop/svg/SVGElement.java @@ -80,7 +80,7 @@ public class SVGElement extends SVGObj { } Element e = ((SVGDocument)doc).getRootElement(); - final float ptmm = userAgent.getPixelToMM(); + final float ptmm = userAgent.getPixelUnitToMillimeter(); SVGContext dc = new SVGContext() { public float getPixelToMM() { return ptmm; @@ -118,8 +118,8 @@ public class SVGElement extends SVGObj { //if(!e.hasAttributeNS(XMLSupport.XMLNS_NAMESPACE_URI, "xmlns")) { e.setAttributeNS(XMLSupport.XMLNS_NAMESPACE_URI, "xmlns", SVGDOMImplementation.SVG_NAMESPACE_URI); //} - - Point2D p2d = getSize(12 /* font size */, svgRoot, userAgent.getPixelToMM()); + int fontSize = 12; + Point2D p2d = getSize(fontSize, svgRoot, userAgent.getPixelUnitToMillimeter()); ((SVGOMElement)e).setSVGContext(null); return p2d; diff --git a/src/org/apache/fop/svg/SVGUserAgent.java b/src/org/apache/fop/svg/SVGUserAgent.java index f855338d4..a3b458588 100644 --- a/src/org/apache/fop/svg/SVGUserAgent.java +++ b/src/org/apache/fop/svg/SVGUserAgent.java @@ -80,7 +80,7 @@ public class SVGUserAgent extends UserAgentAdapter { * Returns a customized the pixel to mm factor. */ public float getPixelUnitToMillimter() { - return userAgent.getPixelToMM(); + return userAgent.getPixelUnitToMillimeter(); } /** |