#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <SFML/Network.hpp>
#include <iostream>
using namespace sf;
int main()
{
sf::RenderWindow window(sf::VideoMode(320, 240), "Font Test");
Font font;
font.loadFromFile("ditr.ttf");
Text text;
text.setFont(font);
text.setString("Hello World");
text.setFillColor(Color::Red); //Maybe a color
text.setCharacterSize(24);
while (window.isOpen())
{
Event event;
while (window.pollEvent(event))
{
if (event.type == Event::Closed)
window.close();
}
text.setPosition(250, 250);
window.clear(Color::White);
window.draw(text);
window.display();
} //while
return 0;
}