SFML community forums

Help => Graphics => Topic started by: diego997 on December 02, 2012, 09:09:09 pm

Title: [Visual 2012] sf::Text - doesnt display
Post 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:
Code: [Select]
sf::Text Text("Hello");

Second Problem:
The worst thing is that I can not display text by using
Code: [Select]
Window.draw(Text);
There are no errors, but text does not appear

Can you help me somehow, thank you :)
Title: Re: [Visual 2012] sf::Text - doesnt display
Post by: Nexus on December 02, 2012, 09:52:31 pm
Read this. (http://en.sfml-dev.org/forums/index.php?topic=5559.msg36367#msg36367)
Title: Re: [Visual 2012] sf::Text - doesnt display
Post by: Laurent on December 02, 2012, 10:40:15 pm
And then this (http://en.sfml-dev.org/forums/index.php?topic=8752.0) ;)
Title: Re: [Visual 2012] sf::Text - doesnt display
Post by: diego997 on December 04, 2012, 01:14:40 am
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
Title: AW: [Visual 2012] sf::Text - doesnt display
Post by: eXpl0it3r on December 04, 2012, 01:42:41 am
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.