SFML community forums
Help => Graphics => Topic started by: Mina66 on October 22, 2014, 11:24:02 am
-
How to measure the height of a pin
(http://s017.radikal.ru/i407/1410/42/c33165525453.jpg)
-
Is this supposed to be a question, a tutorial, ... ?
Can you be more specific?
EDIT: My suggested solution doesn't work. The above still applies though imho.
If you want the height of an sf::Text Object simply call sf::Text::getLocalBounds().height.
-
If you want the height of an sf::Text Object simply call sf::Text::getLocalBounds().height.
No. It will be up to the base line.
(http://s019.radikal.ru/i621/1410/66/02d706853259.jpg)
-
If you want the maximum height independent of the actual text string it should be same as getCharacterSize/setCharacterSize.
-
If you want the maximum height independent of the actual text string it should be same as getCharacterSize/setCharacterSize.
If you want the height of an sf::Text Object simply call sf::Text::getLocalBounds().height.
No. It will be up to the base line.
(http://s019.radikal.ru/i621/1410/66/02d706853259.jpg)
-
Maybe it will be clearer
I need to define a yellow question (??)
(http://s017.radikal.ru/i442/1410/28/cd42a478009e.jpg)
-
You could use getGlobalBounds().height.
-
getLocalBounds can be different depending on the text string. If you actually had a "p" in the string it should reach further down to include the bar-part reaching below the o-part. getGlobalBounds is the same, just transformed into a global coordinate system.
getCharactersize should be the maximum allowed height that cant be drawn outside of when using any character, including "ÂÖgq|".