From 468a75d6b84b0cdcbd860f8a52492725be8771d9 Mon Sep 17 00:00:00 2001 From: Bernhard Haumacher Date: Sun, 10 May 2020 14:08:18 +0200 Subject: Bugfix: Format 14 header of Cmap table is not skipped correctly. --- .../classes/jogamp/graph/font/typecast/ot/table/CmapFormatUnknown.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jogl/classes/jogamp/graph/font/typecast/ot/table/CmapFormatUnknown.java b/src/jogl/classes/jogamp/graph/font/typecast/ot/table/CmapFormatUnknown.java index c09d66c01..cfd314ca6 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/ot/table/CmapFormatUnknown.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/ot/table/CmapFormatUnknown.java @@ -45,12 +45,11 @@ public class CmapFormatUnknown extends CmapFormat { // We don't know how to handle this data, so we'll just skip over it di.skipBytes(_length - 6); } else { - di.readUnsignedShort(); // reserved _length = di.readInt(); _language = di.readInt(); // We don't know how to handle this data, so we'll just skip over it - di.skipBytes(_length - 12); + di.skipBytes(_length - 10); } } -- cgit v1.2.3