Hi all,
Would appreciate some guidance on fonts please. I have tried to follow guides to put some text on the render window but just get nothing. My code is:
sf::Text text;
sf::Font font;
if (font.loadFromFile("C:\\Windows\\Fonts\\Arial.ttf"))
{
cout<< "Font Is Ok";
}
else
{
cout << "Font is not found";
}
text.setString("Message");
text.setFillColor(sf::Color::White);
window.draw(text);
window.display();
Any clues would be appreciated.
Many thanks
Moon.