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

Author Topic: SFML 2.0 Font glitch  (Read 1291 times)

0 Members and 1 Guest are viewing this topic.

TajiTakeo

  • Newbie
  • *
  • Posts: 12
    • View Profile
SFML 2.0 Font glitch
« on: January 23, 2013, 07:19:08 pm »
What is wrong with my codes?
When one of the score counters is smaller than the other one, one of them will look normal. But if both of them have the same size both will look like white blocks :/


        //score text
        sf::Font font;
        font.loadFromFile("Squareo.ttf");
        font.loadFromFile("Squareo.ttf");
    sf::Text score1("0", font, 80);
        score1.setPosition(RENDERWIDTH / 4, 0);
        sf::Text score2("0", font, 80);
        score2.setPosition(3 * RENDERWIDTH / 4 - score2.getLocalBounds().width, 0);
 


        //score text
        sf::Font font;
        font.loadFromFile("Squareo.ttf");
        font.loadFromFile("Squareo.ttf");
    sf::Text score1("0", font, 79);
        score1.setPosition(RENDERWIDTH / 4, 0);
        sf::Text score2("0", font, 80);
        score2.setPosition(3 * RENDERWIDTH / 4 - score2.getLocalBounds().width, 0);
 
« Last Edit: January 23, 2013, 07:29:54 pm by TajiTakeo »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 Font glitch
« Reply #1 on: January 23, 2013, 08:53:09 pm »
You must update your Catalyst drivers to the latest beta.
Laurent Gomila - SFML developer

TajiTakeo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: SFML 2.0 Font glitch
« Reply #2 on: January 23, 2013, 09:26:16 pm »
Thank you!   ;D