git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_TrueTypeInPostScript@1344787 13f79535-47bb-0310-9956-ffa450edef68tags/fop-1_1rc1^2
@@ -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()); | |||
} |
@@ -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) { |
@@ -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"); |
@@ -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()); |