Is there a way to get or calculate the displayed width of a TextSymbol? The TextSymbol.getWidth() method returns 0 because the geometry is a point. Im trying to draw selection markers around the symbol.
Interesting.
Have you tried doing something with getting the font size from the text symbol and finding the length of the String value returned from TextSymbol.getText()?
I wonder if evaluating these two variables would give you a rough guesstimate if the size of the symbol.
If tried that. The markers in the pictures are calculated that way. The width differs greatly for different fonts. The font size corresponds with height not width.
The font size in the pictures is 48. I've also tried to use the Java2D FontMetrics to calculate the width but the results vary from the displayed text.