From 3d0f8a7cd720801c6f247c38c95df556a10fff27 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 14 Apr 2023 17:43:55 +0200 Subject: Typecast Font.Glyph: Expose isUndefined(), i.e. name == ".notdef" --- src/jogl/classes/com/jogamp/graph/font/Font.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/jogl/classes/com') diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java index 4829cb0fd..7299d6128 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -179,6 +179,9 @@ public interface Font { /** Return true if the underlying {@link #getShape()} is a whitespace, otherwise false. */ boolean isWhiteSpace(); + /** Return true if the Glyph denotes an undefined {@link #getID()} symbol, i.e. {@link #getName()} == `.notdef`. */ + boolean isUndefined(); + /** * Return the AABBox in font-units, borrowing internal instance. */ -- cgit v1.2.3