1
Graphics / sf::Text local bounds
« on: January 04, 2019, 08:58:17 pm »
Hi,
Question about how to interpret the result of getLocalBounds() when called for an sf::Text object.
I've got 4 strings which I am calling getLocalBounds() on, and the results are:
[left, top, width, height]
[ 0, 3, 32, 8 ]
[ 0, 3, 35, 8 ]
[ 0, 3, 33, 8 ]
[ 0, 3, 122, 11 ]
The top variable is always 3. I would have expected it to be zero. What is the interpretation of this?
Thanks
Question about how to interpret the result of getLocalBounds() when called for an sf::Text object.
I've got 4 strings which I am calling getLocalBounds() on, and the results are:
[left, top, width, height]
[ 0, 3, 32, 8 ]
[ 0, 3, 35, 8 ]
[ 0, 3, 33, 8 ]
[ 0, 3, 122, 11 ]
The top variable is always 3. I would have expected it to be zero. What is the interpretation of this?
Thanks