SFML community forums

Help => Graphics => Topic started by: Tommy22pa on November 08, 2012, 09:58:58 am

Title: Error display the euro symbol
Post by: Tommy22pa on November 08, 2012, 09:58:58 am
Error display the euro symbol, why?
greetings thanks

// Declare and load a font
sf::Font font;
font.loadFromFile("arial.ttf");
 
// Create a text
sf::Text text("hello €");
text.setFont(font);
text.setCharacterSize(30);
text.setStyle(sf::Text::Bold);
text.setColor(sf::Color::Red);

// Draw it
window.draw(text);

(hello ◘)
Title: Re: Error display the euro symbol
Post by: Laurent on November 08, 2012, 10:11:50 am
Try this instead
sf::Text text(L"hello €");