aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/ot/table/HeadTable.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/ot/table/HeadTable.java b/src/jogl/classes/jogamp/graph/font/typecast/ot/table/HeadTable.java
index 85158ea3e..7d00479df 100644
--- a/src/jogl/classes/jogamp/graph/font/typecast/ot/table/HeadTable.java
+++ b/src/jogl/classes/jogamp/graph/font/typecast/ot/table/HeadTable.java
@@ -68,7 +68,7 @@ public class HeadTable implements Table {
private final int _checkSumAdjustment;
private final int _magicNumber;
private final short _flags;
- private final short _unitsPerEm;
+ private final int _unitsPerEm;
private final long _created;
private final long _modified;
private final short _xMin;
@@ -88,7 +88,7 @@ public class HeadTable implements Table {
_checkSumAdjustment = di.readInt();
_magicNumber = di.readInt();
_flags = di.readShort();
- _unitsPerEm = di.readShort();
+ _unitsPerEm = di.readUnsignedShort();
_created = di.readLong();
_modified = di.readLong();
_xMin = di.readShort();
@@ -147,7 +147,7 @@ public class HeadTable implements Table {
return head;
}
- public short getUnitsPerEm() {
+ public int getUnitsPerEm() {
return _unitsPerEm;
}