SFML community forums
Help => Graphics => Topic started by: flashrocket on April 16, 2015, 02:56:45 pm
-
I created sf::Text and used setPosition(50,50);.
but when i give getGlobalBounds(); I interestingly get the following
If you notice the attachment you see that top is showing 58 rather than 50.
- Where is this extra 8 pixels coming from?
- How to remove them?
-
Text is aligned on its baseline, not on its top. You would get 50 if you had the tallest possible character in your string (like an accentuated capital letter).
-
Thank You. 8) 8)