aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/render/awt/FontMetricsMapper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/render/awt/FontMetricsMapper.java')
-rw-r--r--src/org/apache/fop/render/awt/FontMetricsMapper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/apache/fop/render/awt/FontMetricsMapper.java b/src/org/apache/fop/render/awt/FontMetricsMapper.java
index ee7f519d1..76cee666b 100644
--- a/src/org/apache/fop/render/awt/FontMetricsMapper.java
+++ b/src/org/apache/fop/render/awt/FontMetricsMapper.java
@@ -54,7 +54,7 @@ import org.apache.fop.layout.FontState;
// Java
import java.util.Enumeration;
import java.util.Hashtable;
-import java.awt.Component;
+import java.awt.Graphics2D;
import java.awt.Font;
@@ -99,11 +99,11 @@ public class FontMetricsMapper implements org.apache.fop.layout.FontMetric {
* that we can get an instance of
* java.awt.FontMetrics
*/
- public FontMetricsMapper(String family, int style, Component parent) {
+ public FontMetricsMapper(String family, int style, Graphics2D graphics) {
this.family = family;
this.style = style;
if (metric == null)
- metric = new AWTFontMetrics(parent);
+ metric = new AWTFontMetrics(graphics);
}
/**