Unexpected bold text change when using the "setText" method

Hello,

When i try to use “setText” method, the text changing his own structure:

before:
image

after:
image

it doesn’t matter, what kind of font im using (same on Arial).
This is how im using method: this.menuWindowTitle.setText(getText(button))