Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Declare and load a font
- sf::Font font;
- font.LoadFromFile("../data/fonts/arial.ttf");
- // Create a text
- sf::Text text("hello");
- //text.SetFont(font);
- text.SetCharacterSize(0);
- text.SetStyle(sf::Text::Regular);
- // Display it
- window->Draw(text); // window is a sf::RenderWindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement