TextRenderer getSpaceWidth function public

hello,

would it be possible to make the function
private int getSpaceWidth()
public?

the problem is that when i have text that contains spaces at the end, the getBounds() function only calculates the bounds of the text without the trailing spaces.

thanks!

Yes. This method wasn’t used by the TextRenderer up until now because of bugs in the TextRenderer’s handling of tokenized strings. However, I’ve just debugged that and turned that functionality on by default, which should result in much more efficient usage of the TextRenderer’s backing store. getSpaceWidth() has also been exposed.