1
Graphics / Re: sf::Text alignment problem
« on: September 07, 2015, 12:46:34 pm »
I've tested your solution and the text doesn't appear. Will be better if i explain a little more the code.
The variables diffX and diffY are only the difference between sizes, for example, in a button with (200,100) size
and a text with a bounding box with (160, 60), the text should left 20 pixels on each side.
In the image, the bounding box and the text are positioned in the same coordinates, but i don't know why the text isn't inside the box.
The variables diffX and diffY are only the difference between sizes, for example, in a button with (200,100) size
and a text with a bounding box with (160, 60), the text should left 20 pixels on each side.
In the image, the bounding box and the text are positioned in the same coordinates, but i don't know why the text isn't inside the box.