1
Graphics / Re: problems rendering text (SFML 2.0)
« on: August 26, 2012, 08:43:48 am »
This worked, thanks so much!
I had actually tried loading in a font before, but forgot to escape the slash in my path, and so I thought text rendering just wasn't working for me.
sf::Font font;
font.loadFromFile("Resources\\segoe.ttf");
sf::Text text;
text.setString("Hello");
text.setFont(font);
font.loadFromFile("Resources\\segoe.ttf");
sf::Text text;
text.setString("Hello");
text.setFont(font);
I had actually tried loading in a font before, but forgot to escape the slash in my path, and so I thought text rendering just wasn't working for me.