From 18c405bb970d34cbdeef4af9fa06e612d5edbffb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 18 Apr 2023 08:25:50 +0200 Subject: Graph Font.getGlyphShapeBounds(): Use variant w/ 2 temp AffineTransform matching getGlyphBounds() --- src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/jogl/classes/jogamp/graph/font') 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 -- cgit v1.2.3