aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schweinsberg <[email protected]>2007-01-31 01:19:22 +0000
committerDavid Schweinsberg <[email protected]>2007-01-31 01:19:22 +0000
commit942ba880d960637f1890a41d4630eaf7ea24a70d (patch)
tree4a1cd38dd9cb36fcb90619aefc0af24841099163
parent9d04448e30347a23298aab28008ae7670d16c413 (diff)
Added 'vhea' table to the list of prerequsite table loads.
-rw-r--r--src/net/java/dev/typecast/ot/OTFont.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/net/java/dev/typecast/ot/OTFont.java b/src/net/java/dev/typecast/ot/OTFont.java
index b56fa2b..3168b62 100644
--- a/src/net/java/dev/typecast/ot/OTFont.java
+++ b/src/net/java/dev/typecast/ot/OTFont.java
@@ -67,11 +67,12 @@ import net.java.dev.typecast.ot.table.LocaTable;
import net.java.dev.typecast.ot.table.MaxpTable;
import net.java.dev.typecast.ot.table.NameTable;
import net.java.dev.typecast.ot.table.PostTable;
+import net.java.dev.typecast.ot.table.VheaTable;
import net.java.dev.typecast.ot.table.TableFactory;
/**
* The TrueType font.
- * @version $Id: OTFont.java,v 1.4 2007-01-30 03:51:40 davidsch Exp $
+ * @version $Id: OTFont.java,v 1.5 2007-01-31 01:19:22 davidsch Exp $
* @author <a href="mailto:[email protected]">David Schweinsberg</a>
*/
public class OTFont {
@@ -89,6 +90,7 @@ public class OTFont {
private MaxpTable _maxp;
private NameTable _name;
private PostTable _post;
+ private VheaTable _vhea;
/**
* Constructor
@@ -142,6 +144,10 @@ public class OTFont {
return _post;
}
+ public VheaTable getVheaTable() {
+ return _vhea;
+ }
+
public int getAscent() {
return _hhea.getAscender();
}
@@ -204,6 +210,7 @@ public class OTFont {
_hhea = (HheaTable) readTable(dis, tablesOrigin, Table.hhea);
_maxp = (MaxpTable) readTable(dis, tablesOrigin, Table.maxp);
_loca = (LocaTable) readTable(dis, tablesOrigin, Table.loca);
+ _vhea = (VheaTable) readTable(dis, tablesOrigin, Table.vhea);
int index = 0;
_tables[index++] = _head;
@@ -212,6 +219,9 @@ public class OTFont {
if (_loca != null) {
_tables[index++] = _loca;
}
+ if (_vhea != null) {
+ _tables[index++] = _vhea;
+ }
// Load all other tables
for (int i = 0; i < _tableDirectory.getNumTables(); i++) {
@@ -219,7 +229,8 @@ public class OTFont {
if (entry.getTag() == Table.head
|| entry.getTag() == Table.hhea
|| entry.getTag() == Table.maxp
- || entry.getTag() == Table.loca) {
+ || entry.getTag() == Table.loca
+ || entry.getTag() == Table.vhea) {
continue;
}
dis.reset();