aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/apache/fop/svg/SVGElement.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/org/apache/fop/svg/SVGElement.java b/src/org/apache/fop/svg/SVGElement.java
index 9a4d0579d..7f6373536 100644
--- a/src/org/apache/fop/svg/SVGElement.java
+++ b/src/org/apache/fop/svg/SVGElement.java
@@ -96,6 +96,18 @@ public class SVGElement extends SVGObj {
public AffineTransform getCTM() {
return new AffineTransform();
}
+
+ public float getViewportWidth() {
+ return (float)view.getX();
+ }
+
+ public float getViewportHeight() {
+ return (float)view.getY();
+ }
+
+ public float getFontSize(){
+ return 12;
+ }
};
((SVGOMElement)e).setSVGContext(dc);