summaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-02-12 00:55:23 +0100
committerSven Gothel <[email protected]>2023-02-12 00:55:23 +0100
commite3b0a8ce3de3e9ab7057f129a579dbab7a66ad4a (patch)
tree424c687af876e525a835741cef2fd9f3b4399c7c /src/jogl
parent0e5e38478a6197b2dc65960c55bc831d6b4796a7 (diff)
Typecast: KernSubtable: Remove getKerningTable(..), will be implemented in higher API layer w/ binary-search
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/ot/table/KernSubtable.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/ot/table/KernSubtable.java b/src/jogl/classes/jogamp/graph/font/typecast/ot/table/KernSubtable.java
index 816b9fc74..921687196 100644
--- a/src/jogl/classes/jogamp/graph/font/typecast/ot/table/KernSubtable.java
+++ b/src/jogl/classes/jogamp/graph/font/typecast/ot/table/KernSubtable.java
@@ -47,19 +47,9 @@ public abstract class KernSubtable {
public abstract int getKerningPairCount();
public abstract KerningPair getKerningPair(int i);
-
+
public abstract void clearKerningPairs();
- public short getKerningValue(final int left_glyphid, final int right_glyphid) {
- for (int i = 0; i < getKerningPairCount(); i++) {
- final KerningPair kpair = getKerningPair(i);
- if( kpair.getLeft() == left_glyphid && kpair.getRight() == right_glyphid ) {
- return kpair.getValue();
- }
- }
- return 0;
- }
-
public static KernSubtable read(final DataInput di) throws IOException {
KernSubtable table = null;
final int version = di.readUnsignedShort();