Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Text Problem - Funny dotted lines  (Read 1948 times)

0 Members and 1 Guest are viewing this topic.

Xander314

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://sfmlcoder.wordpress.com/
    • Email
Text Problem - Funny dotted lines
« on: November 05, 2011, 02:43:53 pm »
When displaying text in SFML, strange dotted lines can be seen as shown in the picture.



I pulled the latest SFML source from the Git repository just a few minutes ago and this did not fix the problem. The font I am using is FreeSerif.ttf (with a Unix system), but it similarly occurred with the SFML default font.

The code used to load the font:
Code: [Select]

    sf::Font Main;
    cout << "-> /usr/share/fonts/truetype/freefont/FreeSerif.ttf...";
    if (!Main.LoadFromFile("/usr/share/fonts/truetype/freefont/FreeSerif.ttf"))
        return 1;


The code used to create the text:
Code: [Select]

 // victory message
        sf::Text VictoryMessage("", Main, 100U * VMode.Height / 900);
        VictoryMessage.SetColor(sf::Color::White);

(plus an additional bit to set the string and centre the text). And finally it's drawn with sf::RenderWindow::Draw().

Any ideas what could be causing this?

PS: I'm right now trying a minimal example and will post back the results soon.