aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryehh <yehh@google.com>2012-08-07 01:44:34 +0000
committeryehh <yehh@google.com>2012-08-07 01:44:34 +0000
commit1b9aa2deae7ab08bdc7ab8e8fe487b97c317c9da (patch)
treecde5939b6777c38991274e0fd96e8d1d06894eae
parentdd2a14d91735aa29ca84939e8c84eaef7d88e6c7 (diff)
downloadsfntly-1b9aa2deae7ab08bdc7ab8e8fe487b97c317c9da.tar.gz
Fixed incorrect retrieval of xMin, yMin, xMax, and yMax fields in head table
CL @ http://codereview.appspot.com/6442095/
-rw-r--r--java/src/com/google/typography/font/sfntly/table/core/FontHeaderTable.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/google/typography/font/sfntly/table/core/FontHeaderTable.java b/java/src/com/google/typography/font/sfntly/table/core/FontHeaderTable.java
index f1e3409..51808e6 100644
--- a/java/src/com/google/typography/font/sfntly/table/core/FontHeaderTable.java
+++ b/java/src/com/google/typography/font/sfntly/table/core/FontHeaderTable.java
@@ -234,7 +234,7 @@ public final class FontHeaderTable extends Table {
* @return the x min
*/
public int xMin() {
- return this.data.readUShort(Offset.xMin.offset);
+ return this.data.readShort(Offset.xMin.offset);
}
/**
@@ -243,7 +243,7 @@ public final class FontHeaderTable extends Table {
* @return the y min
*/
public int yMin() {
- return this.data.readUShort(Offset.yMin.offset);
+ return this.data.readShort(Offset.yMin.offset);
}
/**
@@ -252,7 +252,7 @@ public final class FontHeaderTable extends Table {
* @return the xmax
*/
public int xMax() {
- return this.data.readUShort(Offset.xMax.offset);
+ return this.data.readShort(Offset.xMax.offset);
}
/**
@@ -261,7 +261,7 @@ public final class FontHeaderTable extends Table {
* @return the ymax
*/
public int yMax() {
- return this.data.readUShort(Offset.yMax.offset);
+ return this.data.readShort(Offset.yMax.offset);
}
/**