aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/fonts/truetype/TTFFile.java2
-rw-r--r--src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java2
-rw-r--r--src/java/org/apache/fop/fonts/truetype/TTFTableName.java2
-rw-r--r--test/java/org/apache/fop/fonts/truetype/TTFTableNameTestCase.java2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fonts/truetype/TTFFile.java b/src/java/org/apache/fop/fonts/truetype/TTFFile.java
index 1ec4120a6..a1d012aa3 100644
--- a/src/java/org/apache/fop/fonts/truetype/TTFFile.java
+++ b/src/java/org/apache/fop/fonts/truetype/TTFFile.java
@@ -1058,7 +1058,7 @@ public class TTFFile {
String tableName = pd[i].read(fontFile);
dirTabs.put(TTFTableName.getValue(tableName), pd[i]);
}
- dirTabs.put(TTFTableName.DIRECTORY_TABLE,
+ dirTabs.put(TTFTableName.TABLE_DIRECTORY,
new TTFDirTabEntry(0L, fontFile.getCurrentPos()));
log.debug("dir tables: " + dirTabs.keySet());
}
diff --git a/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java b/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java
index 5e8fbb379..00cb45f5a 100644
--- a/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java
+++ b/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java
@@ -146,7 +146,7 @@ public class TTFSubSetFile extends TTFFile {
if (hasPrep()) {
writeTableName(TTFTableName.PREP);
}
- newDirTabs.put(TTFTableName.DIRECTORY_TABLE, new TTFDirTabEntry(0, currentPos));
+ newDirTabs.put(TTFTableName.TABLE_DIRECTORY, new TTFDirTabEntry(0, currentPos));
}
private void writeTableName(TTFTableName tableName) {
diff --git a/src/java/org/apache/fop/fonts/truetype/TTFTableName.java b/src/java/org/apache/fop/fonts/truetype/TTFTableName.java
index cf66954b6..e5ad63128 100644
--- a/src/java/org/apache/fop/fonts/truetype/TTFTableName.java
+++ b/src/java/org/apache/fop/fonts/truetype/TTFTableName.java
@@ -27,7 +27,7 @@ package org.apache.fop.fonts.truetype;
public final class TTFTableName {
/** The first table in a TrueType font file containing metadata about other tables. */
- public static final TTFTableName DIRECTORY_TABLE = new TTFTableName("dirTable");
+ public static final TTFTableName TABLE_DIRECTORY = new TTFTableName("tableDirectory");
/** Embedded bitmap data. */
public static final TTFTableName EBDT = new TTFTableName("EBDT");
diff --git a/test/java/org/apache/fop/fonts/truetype/TTFTableNameTestCase.java b/test/java/org/apache/fop/fonts/truetype/TTFTableNameTestCase.java
index 0a2eec544..b9066dc2d 100644
--- a/test/java/org/apache/fop/fonts/truetype/TTFTableNameTestCase.java
+++ b/test/java/org/apache/fop/fonts/truetype/TTFTableNameTestCase.java
@@ -37,7 +37,7 @@ public class TTFTableNameTestCase {
*/
@Test
public void testGetName() throws IllegalAccessException {
- assertEquals("dirTable", TTFTableName.DIRECTORY_TABLE.getName());
+ assertEquals("tableDirectory", TTFTableName.TABLE_DIRECTORY.getName());
assertEquals("EBDT", TTFTableName.EBDT.getName());
assertEquals("EBLC", TTFTableName.EBLC.getName());
assertEquals("EBSC", TTFTableName.EBSC.getName());