diff options
author | Sven Gothel <[email protected]> | 2023-02-10 14:02:44 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-02-10 14:02:44 +0100 |
commit | da08083d2155a439a7ccf2460fca10aca6e59d92 (patch) | |
tree | 7595478f471dc9925e01bb49eae2c531bcea317b /src/jogl/classes/jogamp/graph | |
parent | be0d8cb42fa4c94233a7dd6d89a125ebb7bf2074 (diff) |
Typecast: HeadTable: Use 'int' to hold 'uint16' unitsPerEM value
Diffstat (limited to 'src/jogl/classes/jogamp/graph')
-rw-r--r-- | src/jogl/classes/jogamp/graph/font/typecast/ot/table/HeadTable.java | 6 |
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; } |