diff options
author | Sven Gothel <[email protected]> | 2023-02-10 14:04:21 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-02-10 14:04:21 +0100 |
commit | bc951476c67282d9676f33ee25fb0f697a4dbe45 (patch) | |
tree | 8479ff1bac2b5f13a0140cbc5d4a2dc15b8fff66 /src/jogl | |
parent | dc1319bb52558b52a68600f4b1fbe9e290b5c9bd (diff) |
Typecase: OTFont: Provide KernTable accessor
Diffstat (limited to 'src/jogl')
-rw-r--r-- | src/jogl/classes/jogamp/graph/font/typecast/ot/OTFont.java | 8 |
1 files changed, 8 insertions, 0 deletions
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 |