Quoteif this is your definition of a few pixels heheThat screenshot is exactly what I got too with your code, but changing the order of the add solved it.
Did you set a global font before creating the widget?
Could you write some simple code that starts with setting the global font, then calls the constructor of the button to initialize it and then loads the button, which still displays the wrong text position? That way I can test with the same code.
QuoteAye, I did. It's just a simple file.The text displays correctly here. Something is probably going wrong with setting the font and this thus most likely has the same cause as the issue with the uncentered text. So lets focus on that issue and then afterwards you can check if this is solved too or not.
. But that's probably not what you want.