I'm trying to get a bitmap text centered in my game. The text is generated at start, so I wan't to scale & translate it based in its dimensions after the text has been set. This my current code.
text = str(scenesInfo[i]) tempBotonText['Text'] = text textScaleX = 1/len(text) tempBotonText.localScale *= textScaleX tempBotonText.localPosition -=len(texto) * 0.008
But as you can see, the number I am using in the translation is just a guess, and it doesn't work well with any length.
Is there a way I can know the dimensions of the text (it is a bitmap text) after its creation?