aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-02-16 01:44:50 +0100
committerSven Gothel <[email protected]>2023-02-16 01:44:50 +0100
commit3d489704360798ff146a6628eec60d52e3607f47 (patch)
tree3872852cd70d360ad8023127ed8258377d1aa05e /src/jogl/classes
parent7db4fe3cd9bbf1deac82e027d0b7dd53fc89971e (diff)
Typecast: Assign _glyphIndex w/ ctor argument (+ code cleanup)
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/ot/table/GlyfDescript.java27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/ot/table/GlyfDescript.java b/src/jogl/classes/jogamp/graph/font/typecast/ot/table/GlyfDescript.java
index 2a8deaeeb..45d06e8cb 100644
--- a/src/jogl/classes/jogamp/graph/font/typecast/ot/table/GlyfDescript.java
+++ b/src/jogl/classes/jogamp/graph/font/typecast/ot/table/GlyfDescript.java
@@ -67,19 +67,20 @@ public abstract class GlyfDescript extends Program implements GlyphDescription {
static final byte yDual = 0x20;
final GlyfTable _parentTable;
- private int _glyphIndex;
+ private final int _glyphIndex;
private final int _numberOfContours;
- private short _xMin;
- private short _yMin;
- private short _xMax;
- private short _yMax;
+ private final short _xMin;
+ private final short _yMin;
+ private final short _xMax;
+ private final short _yMax;
GlyfDescript(
- GlyfTable parentTable,
- int glyphIndex,
- short numberOfContours,
- DataInput di) throws IOException {
+ final GlyfTable parentTable,
+ final int glyphIndex,
+ final short numberOfContours,
+ final DataInput di) throws IOException {
_parentTable = parentTable;
+ _glyphIndex = glyphIndex;
_numberOfContours = numberOfContours;
_xMin = di.readShort();
_yMin = di.readShort();
@@ -91,26 +92,32 @@ public abstract class GlyfDescript extends Program implements GlyphDescription {
return _numberOfContours;
}
+ @Override
public int getGlyphIndex() {
return _glyphIndex;
}
+ @Override
public short getXMaximum() {
return _xMax;
}
+ @Override
public short getXMinimum() {
return _xMin;
}
+ @Override
public short getYMaximum() {
return _yMax;
}
+ @Override
public short getYMinimum() {
return _yMin;
}
-
+
+ @Override
public String toString() {
return " numberOfContours: " + _numberOfContours +
"\n xMin: " + _xMin +