diff options
author | Sven Gothel <[email protected]> | 2023-04-14 17:42:57 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-14 17:42:57 +0200 |
commit | e4bddd1682233257a20eb73e22b068d5d4694860 (patch) | |
tree | b441834342426601c966d1f7dc8cfd44202b4674 /src/jogl/classes/com | |
parent | be865f7fdb672ce41110231ba71903671942268b (diff) |
Typecast: Expose (new) getGlyphCount(): GlyfTable.getSize() -> (OTFont,Font).getGlyphCount()
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/Font.java | 5 |
1 files changed, 5 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 3d7e9f6a1..4829cb0fd 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -319,8 +319,13 @@ public interface Font { Metrics getMetrics(); + /** Return the {@link Glyph} ID mapped to given `symbol`, usually UTF16 unicode. Returned ID can be used to retrieve the {@link Glyph} via {@link #getGlyph(int)}. */ int getGlyphID(final char symbol); + /** Return number of {@link Glyph} IDs available, i.e. retrievable via {@link #getGlyph(int)} [0..count). */ + int getGlyphCount(); + + /** Return the {@link Glyph} using given ID, see {@link #getGlyphCount()}. */ Glyph getGlyph(final int glyph_id); int getNumGlyphs(); |