SFML community forums
Help => Graphics => Topic started by: diego997 on December 02, 2012, 09:09:09 pm
-
Hello, actually I have two problems but first is not such problematic as second one.
First problem:
On visual 2010 there was possibility to assign string to sf::Text object while defining it:
sf::Text Text("Hello");
Second Problem:
The worst thing is that I can not display text by using
Window.draw(Text);
There are no errors, but text does not appear
Can you help me somehow, thank you :)
-
Read this. (http://en.sfml-dev.org/forums/index.php?topic=5559.msg36367#msg36367)
-
And then this (http://en.sfml-dev.org/forums/index.php?topic=8752.0) ;)
-
Its a bit strange for me in visual 2010 I did not have to set font manually. In visual 2012 I had to set font and also change sf::Text color because it is was not set by default. I know it is not problematic to do, but I am just wondering why there was not such an errors in visial 2010 :D
-
Because with VS10 you used the SFML 2RC which is a few month old version and still has the default font. With VS 2012 you needed to recompile SFML and thus were uptodate with SFML 2 where the default font is removed.