SFML community forums

Help => Graphics => Topic started by: Xander314 on November 05, 2011, 02:43:53 pm

Title: Text Problem - Funny dotted lines
Post by: Xander314 on November 05, 2011, 02:43:53 pm
When displaying text in SFML, strange dotted lines can be seen as shown in the picture.

(http://i.imgur.com/IKFKs.png) (http://imgur.com/IKFKs)

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.