From 7de2ca0a5e1d448e74afab46104f96f419d8da87 Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Thu, 14 Aug 2003 19:16:41 +0000 Subject: move font constants from control.Document to fonts.Font git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196802 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/tools/AreaTreeBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/org/apache/fop/tools/AreaTreeBuilder.java') diff --git a/src/java/org/apache/fop/tools/AreaTreeBuilder.java b/src/java/org/apache/fop/tools/AreaTreeBuilder.java index 16b720db2..0c64bbd1a 100644 --- a/src/java/org/apache/fop/tools/AreaTreeBuilder.java +++ b/src/java/org/apache/fop/tools/AreaTreeBuilder.java @@ -559,7 +559,7 @@ class TreeLoader extends AbstractLogEnabled { Character ch = new Character(getString((Element) obj).charAt(0)); addTraits((Element) obj, ch); - String fname = fontInfo.fontLookup("sans-serif", "normal", Document.NORMAL); + String fname = fontInfo.fontLookup("sans-serif", "normal", Font.NORMAL); FontMetrics metrics = fontInfo.getMetricsFor(fname); currentFontState = new Font(fname, metrics, 12000); @@ -584,7 +584,7 @@ class TreeLoader extends AbstractLogEnabled { list.add(leader); } } else if (obj.getNodeName().equals("word")) { - String fname = fontInfo.fontLookup("sans-serif", "normal", Document.NORMAL); + String fname = fontInfo.fontLookup("sans-serif", "normal", Font.NORMAL); FontMetrics metrics = fontInfo.getMetricsFor(fname); currentFontState = new Font(fname, metrics, 12000); -- cgit v1.2.3