diff options
author | Sven Gothel <[email protected]> | 2023-04-18 08:25:50 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-18 08:25:50 +0200 |
commit | 18c405bb970d34cbdeef4af9fa06e612d5edbffb (patch) | |
tree | 7e5151791e01a1bb4f20227ad652c622ac8a7cf8 /src/jogl/classes/com/jogamp/graph | |
parent | 73bd9a33835b37b542765198f59a105431569fa7 (diff) |
Graph Font.getGlyphShapeBounds(): Use variant w/ 2 temp AffineTransform matching getGlyphBounds()
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/Font.java | 7 |
1 files changed, 5 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 96e0cc523..314040adf 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -458,13 +458,16 @@ public interface Font { * <p> * This method is only exposed to validate the produced {@link OutlineShape} against {@link #getGlyphBounds(CharSequence)}. * </p> + * @param transform optional given transform * @param string string text + * @param tmp1 temp {@link AffineTransform} to be reused + * @param tmp2 temp {@link AffineTransform} to be reused * @return the bounding box of the given string in font-units [0..1] - * @see #getGlyphShapeBounds(AffineTransform, CharSequence) + * @see #getGlyphShapeBounds(CharSequence) * @see #getGlyphBounds(CharSequence) * @see #getMetricBounds(CharSequence) */ - AABBox getGlyphShapeBounds(final CharSequence string); + AABBox getGlyphShapeBounds(final AffineTransform transform, final CharSequence string, final AffineTransform tmp1, final AffineTransform tmp2); boolean isPrintableChar(final char c); |