aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/font
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-28 02:41:30 +0200
committerSven Gothel <[email protected]>2023-03-28 02:41:30 +0200
commit114cc7be0f43a6cf2540caa0ed47948d7cade54f (patch)
tree81d3299240789be44c4f82eb1c345e72931e9bd1 /src/jogl/classes/com/jogamp/graph/font
parentf7125f6bb2db418064a170ae42466e13b8f51f70 (diff)
Graph Font.GlyphVisitor*: Pass 'char symbol' to visitor, passing full text-processing information
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/font')
-rw-r--r--src/jogl/classes/com/jogamp/graph/font/Font.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java
index 2fb9b94ab..4399bbad7 100644
--- a/src/jogl/classes/com/jogamp/graph/font/Font.java
+++ b/src/jogl/classes/com/jogamp/graph/font/Font.java
@@ -258,10 +258,11 @@ public interface Font {
public static interface GlyphVisitor {
/**
* Visiting the given {@link Font.Glyph} having an {@link OutlineShape} with it's corresponding {@link AffineTransform}.
+ * @param symbol the character symbol matching the given glyph
* @param glyph {@link Font.Glyph} which contains an {@link OutlineShape} via {@link Font.Glyph#getShape()}.
* @param t may be used immediately as is, otherwise a copy shall be made if stored.
*/
- public void visit(final Glyph glyph, final AffineTransform t);
+ public void visit(final char symbol, final Glyph glyph, final AffineTransform t);
}
/**
@@ -270,9 +271,10 @@ public interface Font {
public static interface GlyphVisitor2 {
/**
* Visiting the given {@link Font.Glyph} having an {@link OutlineShape}.
+ * @param symbol the character symbol matching the given glyph
* @param glyph {@link Font.Glyph} which contains an {@link OutlineShape} via {@link Font.Glyph#getShape()}.
*/
- public void visit(final Glyph glyph);
+ public void visit(final char symbol, final Glyph glyph);
}