aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/svg
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-09-02 14:47:28 +0000
committerKeiron Liddle <keiron@apache.org>2002-09-02 14:47:28 +0000
commitc6f56b85d9e88e1bf38eb2aa33a00d8fd3a75c90 (patch)
treecf3803f92b8b7bf27241733db741f58c174325df /src/org/apache/fop/svg
parentce6f1de88bdc4f5472b8bbb1a36ab0975bb692e6 (diff)
downloadxmlgraphics-fop-c6f56b85d9e88e1bf38eb2aa33a00d8fd3a75c90.tar.gz
xmlgraphics-fop-c6f56b85d9e88e1bf38eb2aa33a00d8fd3a75c90.zip
changed pixel to mm to longer name
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195137 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/svg')
-rw-r--r--src/org/apache/fop/svg/SVGElement.java6
-rw-r--r--src/org/apache/fop/svg/SVGUserAgent.java2
2 files changed, 4 insertions, 4 deletions
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();
}
/**