SFML でテキストの寸法を取得する方法を知りたいですか?
私はこのようにそれをやろうとしました:
sf::Text text("Hello SFML", font, 50);
// using text.getRect()
// i also tried getScale() & getSize()
// neither are correct
text.setPosition( window.getSize().y/2 - text.getRect().y,50 );
誰か知っていますか ?
ありがとう :)