I am a bit confused about sf::Text and its positioning.
If origin is set to upper left corner 0,0 and I place it (setPosition) at 0,0 I expect it to start from 0,0 and extend to getGlobalBounds.width, getGlobalBounds.height.
But actually it does not start at 0,0 even if the origin is set to 0,0 and position is set to 0,0.
That is quite confusing, see first attachment: "Hallo" is placed as described and the RectangleShape is created:
sf::RectangleShape b({20, 5});
b.setPosition(0, s.getGlobalBounds().height);
So normally the bottom of the H should be end at the beginning of the shape and not overlap, or am I wrong?
Another example is attachment 2 (b.png) where all my menu entries are misplaced (see markers are where I expect the text to start).
PS:
Yes I know globalBounds.top gives me the offset (found that few minutes ago), but why is this offset always added?