From 929fc058c56781763c79015f4dbbf9e14dc808a2 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 26 Mar 2011 19:26:41 +0100 Subject: 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 --- src/net/java/dev/typecast/ot/table/HdmxTable.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/java') 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; } -- cgit v1.2.3