Hello!
I would like some help on my game I am developing.
I have a Button class which currently has many parameter's so an image and text can be displayed for various parts of the home screen and game world, e.g Start and Instructions.
I would like to cut down on the parameters by passing a font size in, cutting down imageWidth, imageHeight etc. I have been hard coding the width and height in the sub-classes to Button however I want to soft code.
I essentially want to return the pixel length and pixel height of a given String with a given font.
Is there any way I can do this in Greenfoot?
Thanks.

