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

Author Topic: Help - Bold Text Appearing with Artifacts - Possible Bug?  (Read 2241 times)

0 Members and 1 Guest are viewing this topic.

Zee

  • Newbie
  • *
  • Posts: 12
    • View Profile
Help - Bold Text Appearing with Artifacts - Possible Bug?
« on: April 09, 2012, 07:01:29 am »
Hello,

I've been working hard on an issue and I think I've encountered what seems like a bug.

When I'm bolding the text in SFML, everything looks fine to me (1680x 1050 resolution), and every other resolution I tested on. However, friends of mine with 1366 x 768 resolutions encountered bugs of text displaying random artifacts on screen.

I went through all my view/renderwindow code and nothing suggests that this was a code issue. Everything looked to work fine on everything except the specific resolution.

Examples:

SS 1 Bad: http://i.imgur.com/PXimZ.jpg
SS 1 Good: http://i.imgur.com/MkIpv.jpg
SS 2 Bad: http://i.imgur.com/XRzAC.png
SS 2 Good: http://i.imgur.com/dwxBT.png


Can someone please help me with this issue? The issue goes away as soon as Bold is turned off, so it must be part of that. Thank you very much for your help!
« Last Edit: April 09, 2012, 07:05:02 am by Zee »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Help - Bold Text Appearing with Artifacts - Possible Bug?
« Reply #1 on: April 09, 2012, 10:14:50 am »
If you use SFML 2, it's probably a known bug.
Laurent Gomila - SFML developer

Zee

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Help - Bold Text Appearing with Artifacts - Possible Bug?
« Reply #2 on: April 09, 2012, 03:23:19 pm »
Thank you for the reply! I went ahead and manually bolded the font used instead to perform a workaround.

Cheers!

shoulder_rats

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Help - Bold Text Appearing with Artifacts - Possible Bug?
« Reply #3 on: May 02, 2012, 07:05:38 am »
Hi Guys,

I've had this bug for quite some time. However, I just by mistake found a work around. I had the bug when the font size was at 40, with SFML 2.0 RC 16. However, when I set the font size to 20, the boxes around the letters disappeared. I'm not sure what the magic break size is for that. I'm just using the default font and compiling with the Visual Studio 2011 beta compiler. And the graphics chipset I've got is an old laptop ATI Mobility Radeon HD 4650, with 1gb dedicated ram. I only mention it because older posts attributed it to the graphics card. I've seen the same issue though on my Nvidia chipset in my other computer. I don't remember the chipset at the moment though.

This isn't all the code, but its the initializer code I'm using:

sf::Text mySfText;   
sfText.setFont(sf::Font::getDefaultFont());
sfText.setCharacterSize(40); //note, 40 causes the bug, 20 doesn't seem to.
sfText.setColor(sf::Color::Green);

Hope that helps. -Brett