From bc951476c67282d9676f33ee25fb0f697a4dbe45 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 10 Feb 2023 14:04:21 +0100 Subject: Typecase: OTFont: Provide KernTable accessor --- src/jogl/classes/jogamp/graph/font/typecast/ot/OTFont.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/jogamp/graph/font/typecast/ot/OTFont.java b/src/jogl/classes/jogamp/graph/font/typecast/ot/OTFont.java index e83a428ed..344aeb1bb 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/ot/OTFont.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/ot/OTFont.java @@ -61,6 +61,7 @@ import jogamp.graph.font.typecast.ot.table.HdmxTable; import jogamp.graph.font.typecast.ot.table.HeadTable; import jogamp.graph.font.typecast.ot.table.HheaTable; import jogamp.graph.font.typecast.ot.table.HmtxTable; +import jogamp.graph.font.typecast.ot.table.KernTable; import jogamp.graph.font.typecast.ot.table.LocaTable; import jogamp.graph.font.typecast.ot.table.MaxpTable; import jogamp.graph.font.typecast.ot.table.NameTable; @@ -94,6 +95,7 @@ public class OTFont { private NameTable _name; private PostTable _post; private VheaTable _vhea; + private KernTable _kern; /** * Constructor @@ -173,6 +175,10 @@ public class OTFont { return _vhea; } + public KernTable getKernTable() { + return _kern; + } + public int getAscent() { return _hhea.getAscender(); } @@ -281,6 +287,8 @@ public class OTFont { // If this is a TrueType outline, then we'll have at least the // 'glyf' table (along with the 'loca' table) _glyf = (GlyfTable) getTable(Table.glyf); + + _kern = (KernTable) getTable(Table.kern); } @Override -- cgit v1.2.3