Hey guys
I'm writing a game engine for my new game with SFML (2.1). But when I writing my Label class (label with background) I got a problem.
You can see the problem in the attachment.
The position of the text is not the same then the position of the Background RectangleShape.
And the positions are the same
void Label::setPosition(float x, float y)
{
background_.setPosition(x, y);
text_.setPosition(x, y);
}
Is this normal that the position of a Text object is not the same as a position of a RectangleShape?
What can I do to fix this?