diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-12-15 22:20:48 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-12-15 22:20:48 +0000 |
commit | 811fd3eefbfb06cb945bb3599523b7f3a15f251e (patch) | |
tree | 66bba8948beb68ee1cccb39655ece6d4516cfac7 /src/java/org/apache/fop/fo/extensions/svg/SVGElement.java | |
parent | 0052c3f3bbe504304dabc836fe708fa49b391ed1 (diff) | |
download | xmlgraphics-fop-811fd3eefbfb06cb945bb3599523b7f3a15f251e.tar.gz xmlgraphics-fop-811fd3eefbfb06cb945bb3599523b7f3a15f251e.zip |
NOTE: API changes in a backwards-incompatible way: FOUserAgent.setResolution() -> FOUserAgent.setSourceResolution() and FOUserAgent.setTargetResolution()
Resolution parameter to the user agent is split into:
- a source resolution used to determine the pixel size in SVG images and bitmap without resolution information
- a target resolution used to specify the output resolution of bitmap images generated by bitmap renderers and bitmaps generated by Batik for filter effects.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357081 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/extensions/svg/SVGElement.java')
-rw-r--r-- | src/java/org/apache/fop/fo/extensions/svg/SVGElement.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java b/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java index b9452e22b..c5d15fde7 100644 --- a/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java +++ b/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java @@ -94,7 +94,7 @@ public class SVGElement extends SVGObj { } Element e = ((SVGDocument)doc).getRootElement(); - final float ptmm = getUserAgent().getPixelUnitToMillimeter(); + final float ptmm = getUserAgent().getSourcePixelUnitToMillimeter(); // temporary svg context SVGContext dc = new SVGContext() { public float getPixelToMM() { @@ -153,7 +153,7 @@ public class SVGElement extends SVGObj { SVGDOMImplementation.SVG_NAMESPACE_URI); //} int fontSize = 12; - Point2D p2d = getSize(fontSize, svgRoot, getUserAgent().getPixelUnitToMillimeter()); + Point2D p2d = getSize(fontSize, svgRoot, getUserAgent().getSourcePixelUnitToMillimeter()); ((SVGOMElement)e).setSVGContext(null); return p2d; |