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

Author Topic: Green lines around text  (Read 2358 times)

0 Members and 1 Guest are viewing this topic.

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Green lines around text
« on: November 05, 2011, 11:29:36 pm »
Using the sf::Text I am getting weird lines around the text, this happens when I use big font sizes



I tried setting it to a small size and then scaling it but it just makes the text fuzzy and there is no option to set smoothing on.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Green lines around text
« Reply #1 on: November 05, 2011, 11:42:57 pm »
Can't really help but I guess this question will popup soon enough:
Is it just with this font type?  :D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Green lines around text
« Reply #2 on: November 06, 2011, 07:37:20 am »
I tried it with 2 custom fonts as well as the default font, and they all have the same problem once the size gets big enought (by that I mean >50

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Green lines around text
« Reply #3 on: November 06, 2011, 09:58:40 am »
This seems to be a common problem in SFML 2. There are other threads about it.
Laurent Gomila - SFML developer

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Green lines around text
« Reply #4 on: November 09, 2011, 04:11:46 pm »
Just a minor update, I was doing some testing on my desktop today and i just noticed the lines dont show up.
Now given the amount of threads there are saying the graphics system is buggy on intel cards I think this could be the problem

Haikarainen

  • Guest
Green lines around text
« Reply #5 on: November 09, 2011, 06:30:31 pm »
Quote from: "Laurent"
This seems to be a common problem in SFML 2. There are other threads about it.


Ive seen this in a lot of threads actually, something tells me its caused by the same thing causing the float + subrects problem

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Green lines around text
« Reply #6 on: November 09, 2011, 08:12:15 pm »
Quote
something tells me its caused by the same thing causing the float + subrects problem

I don't think so. These lines are not supposed to be in the font's texture, so it's not just a mapping/alignment problem. I think there's something wrong when I copy glyphs pixels to the texture.
Laurent Gomila - SFML developer