From e4bddd1682233257a20eb73e22b068d5d4694860 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 14 Apr 2023 17:42:57 +0200 Subject: Typecast: Expose (new) getGlyphCount(): GlyfTable.getSize() -> (OTFont,Font).getGlyphCount() --- src/jogl/classes/com/jogamp/graph/font/Font.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/classes/com/jogamp') 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(); -- cgit v1.2.3