Advertisement
Guest User

Untitled

a guest
Aug 4th, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1.     // Declare and load a font
  2.     sf::Font font;
  3.     font.LoadFromFile("../data/fonts/arial.ttf");
  4.  
  5.     // Create a text
  6.     sf::Text text("hello");
  7.     //text.SetFont(font);
  8.     text.SetCharacterSize(0);
  9.     text.SetStyle(sf::Text::Regular);
  10.  
  11.  
  12.     // Display it
  13.     window->Draw(text); // window is a sf::RenderWindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement