Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Visual 2012] sf::Text - doesnt display  (Read 2357 times)

0 Members and 1 Guest are viewing this topic.

diego997

  • Newbie
  • *
  • Posts: 21
    • View Profile
[Visual 2012] sf::Text - doesnt display
« 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 :)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: [Visual 2012] sf::Text - doesnt display
« Reply #1 on: December 02, 2012, 09:52:31 pm »
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [Visual 2012] sf::Text - doesnt display
« Reply #2 on: December 02, 2012, 10:40:15 pm »
And then this ;)
Laurent Gomila - SFML developer

diego997

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [Visual 2012] sf::Text - doesnt display
« Reply #3 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: [Visual 2012] sf::Text - doesnt display
« Reply #4 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything