aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/tools/AreaTreeBuilder.java
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2003-08-14 19:16:41 +0000
committerWilliam Victor Mote <vmote@apache.org>2003-08-14 19:16:41 +0000
commit7de2ca0a5e1d448e74afab46104f96f419d8da87 (patch)
tree6e274aa0d99499a6f46ecbc62e9cf49f178958cd /src/java/org/apache/fop/tools/AreaTreeBuilder.java
parent38c5bcb2744009288b249a306b66afb4aa7e95f8 (diff)
downloadxmlgraphics-fop-7de2ca0a5e1d448e74afab46104f96f419d8da87.tar.gz
xmlgraphics-fop-7de2ca0a5e1d448e74afab46104f96f419d8da87.zip
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
Diffstat (limited to 'src/java/org/apache/fop/tools/AreaTreeBuilder.java')
-rw-r--r--src/java/org/apache/fop/tools/AreaTreeBuilder.java4
1 files changed, 2 insertions, 2 deletions
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);