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

Author Topic: Rotating Text gives ugly results  (Read 3701 times)

0 Members and 1 Guest are viewing this topic.

dom96

  • Newbie
  • *
  • Posts: 8
    • View Profile
Rotating Text gives ugly results
« on: August 07, 2011, 12:24:45 pm »
Hello, I have just pulled the latest changes in the git repo and they seem to have made rotating Text very ugly.



Here I made the Text bigger:



This only happens with angles which are not multiples of 90.

Is there any way to go back to the previous behaviour?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Rotating Text gives ugly results
« Reply #1 on: August 07, 2011, 01:50:27 pm »
It seems like smoothing is not enabled. I'll check the source code, thanks for your feedback.
Laurent Gomila - SFML developer

dom96

  • Newbie
  • *
  • Posts: 8
    • View Profile
Rotating Text gives ugly results
« Reply #2 on: August 07, 2011, 02:21:34 pm »
No problem!
Thanks for the quick reply.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Rotating Text gives ugly results
« Reply #3 on: August 07, 2011, 07:33:54 pm »
It was a bug in the latest commit, it's fixed now.
Laurent Gomila - SFML developer

dom96

  • Newbie
  • *
  • Posts: 8
    • View Profile
Rotating Text gives ugly results
« Reply #4 on: August 07, 2011, 08:12:19 pm »
Thanks. It's back to how it was previously now. I have noticed another small issue with rotation. An artifact, a small dot:

Rotation: 36.2624


I will try rounding my angle maybe that will remove that artifact. Although I think this is still a bug.

EDIT: No, that doesn't help.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Rotating Text gives ugly results
« Reply #5 on: August 07, 2011, 08:39:44 pm »
Hmm, this one is weird. Does it appear on every character?
Laurent Gomila - SFML developer

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Rotating Text gives ugly results
« Reply #6 on: August 07, 2011, 11:02:38 pm »
That artifact kind of looks like the end of the @'s tail. Laurent, is there any way it might be looping the character around?
I use the latest build of SFML2

dom96

  • Newbie
  • *
  • Posts: 8
    • View Profile
Rotating Text gives ugly results
« Reply #7 on: August 08, 2011, 02:23:16 am »
It seems to happen with every character. Although I only tested a few. It even happens with sentences, there is always a small dot somewhere around the first character.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Rotating Text gives ugly results
« Reply #8 on: August 08, 2011, 08:02:33 am »
Quote
It seems to happen with every character. Although I only tested a few. It even happens with sentences, there is always a small dot somewhere around the first character.

This is confusing. Does it happen on every character, or only the first one of the string?

Quote
That artifact kind of looks like the end of the @'s tail. Laurent, is there any way it might be looping the character around?

No, this can't happen.
Laurent Gomila - SFML developer

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Rotating Text gives ugly results
« Reply #9 on: August 08, 2011, 11:55:37 am »
Quote from: "Laurent"
Quote
It seems to happen with every character. Although I only tested a few. It even happens with sentences, there is always a small dot somewhere around the first character.

This is confusing. Does it happen on every character, or only the first one of the string?

I'm pretty sure he means 'it happens to the first character of the sentence no matter what character that is.'

dom96

  • Newbie
  • *
  • Posts: 8
    • View Profile
Rotating Text gives ugly results
« Reply #10 on: August 08, 2011, 02:36:55 pm »
Yes. Sorry. I should have been more clear.

I tested single characters at first and the dot appeared on all of the characters that I tested.

I then tested a couple of sentences, and only the first character of the sentence has that dot.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Rotating Text gives ugly results
« Reply #11 on: August 08, 2011, 03:04:46 pm »
Ok, thanks for the clarification ;)

I'll check this as soon as possible.
Laurent Gomila - SFML developer