aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/dev
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-03-26 19:26:41 +0100
committerSven Gothel <[email protected]>2011-03-26 19:26:41 +0100
commit929fc058c56781763c79015f4dbbf9e14dc808a2 (patch)
tree231e58a5abcbd8186da79848c045b13e3b05f92f /src/net/java/dev
parenta7c95f26e87460b76763f26723bbd9379c9fc4cb (diff)
Font: Make font instances size agnostic (remove all size states), size is only a render time parameter. Add missing bounds/width/height queries to TypecastFont
Diffstat (limited to 'src/net/java/dev')
-rw-r--r--src/net/java/dev/typecast/ot/table/HdmxTable.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/java/dev/typecast/ot/table/HdmxTable.java b/src/net/java/dev/typecast/ot/table/HdmxTable.java
index e47c0a316..68a03c590 100644
--- a/src/net/java/dev/typecast/ot/table/HdmxTable.java
+++ b/src/net/java/dev/typecast/ot/table/HdmxTable.java
@@ -57,6 +57,11 @@ public class HdmxTable implements Table {
public short[] getWidths() {
return _widths;
}
+
+ public short getWidth(int glyphidx) {
+ return _widths[glyphidx];
+ }
+
}
private DirectoryEntry _de;
@@ -80,6 +85,14 @@ public class HdmxTable implements Table {
}
}
+ public int getNumberOfRecords() {
+ return _numRecords;
+ }
+
+ public DeviceRecord getRecord(int i) {
+ return _records[i];
+ }
+
public int getType() {
return hdmx;
}