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());
}
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) {
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");
*/
@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());