diff options
author | Sven Gothel <[email protected]> | 2023-03-28 02:39:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-28 02:39:49 +0200 |
commit | f7125f6bb2db418064a170ae42466e13b8f51f70 (patch) | |
tree | 324e849e3fe4fc8d7089665d407b12aaf55b5432 /src | |
parent | 143b67f063d4a3a0f51806355bca23ef4dc0dc3b (diff) |
Graph Font.Glyph: Add getFont() (the owner)
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/Font.java | 3 | ||||
-rw-r--r-- | src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java index d9f59d132..2fb9b94ab 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -166,6 +166,9 @@ public interface Font { // http://scripts.sil.org/cms/scripts/page.php?item_id=IWS-Chapter08#ba57949e public static final int ID_UNKNOWN = 0; + /** Return the {@link Font} owning this {@link Glyph}. */ + Font getFont(); + /** Return this glyph's ID */ int getID(); diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java index d62314e8d..6747cca82 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java @@ -128,6 +128,11 @@ public final class TypecastGlyph implements Font.Glyph { } @Override + public Font getFont() { + return font; + } + + @Override public final int getID() { return id; } @Override |