summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-04-18 08:25:50 +0200
committerSven Gothel <[email protected]>2023-04-18 08:25:50 +0200
commit18c405bb970d34cbdeef4af9fa06e612d5edbffb (patch)
tree7e5151791e01a1bb4f20227ad652c622ac8a7cf8 /src/jogl/classes/jogamp
parent73bd9a33835b37b542765198f59a105431569fa7 (diff)
Graph Font.getGlyphShapeBounds(): Use variant w/ 2 temp AffineTransform matching getGlyphBounds()
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java
index f7c10c335..7cf520bf3 100644
--- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java
+++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java
@@ -364,11 +364,12 @@ class TypecastFont implements Font {
}
@Override
- public AABBox getGlyphShapeBounds(final CharSequence string) {
- return getGlyphShapeBounds(null, string);
+ public AABBox getGlyphShapeBounds(final AffineTransform transform, final CharSequence string) {
+ return getGlyphShapeBounds(transform, string, new AffineTransform(), new AffineTransform());
}
+
@Override
- public AABBox getGlyphShapeBounds(final AffineTransform transform, final CharSequence string) {
+ public AABBox getGlyphShapeBounds(final AffineTransform transform, final CharSequence string, final AffineTransform temp1, final AffineTransform temp2) {
if (null == string || 0 == string.length() ) {
return new AABBox();
}
@@ -377,7 +378,7 @@ class TypecastFont implements Font {
public final void visit(final char symbol, final Font.Glyph shape, final AffineTransform t) {
// nop
} };
- return processString(visitor, transform, string);
+ return processString(visitor, transform, string, temp1, temp2);
}
@Override