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

Author Topic: Drawing the bullet character in sf::Text  (Read 1449 times)

0 Members and 1 Guest are viewing this topic.

Law

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Drawing the bullet character in sf::Text
« on: July 20, 2015, 08:23:09 pm »
Hello,

I've been trying to draw a bullet (●) via sf::Texts but every time the result wasn't exactly what I wanted. I am using std::wstrings. I've tried '\x9679', '\x2022' and other characters that I've now forgotten, but each time the bullet was too small, or a white square.

Any help would be very much appreciated  :)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Drawing the bullet character in sf::Text
« Reply #1 on: July 20, 2015, 09:26:43 pm »
If you see a square, use a font that supports the character.

If the bullet is "too small", you're either using the wrong character or it is just the way how the font represents it.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Drawing the bullet character in sf::Text
« Reply #2 on: July 21, 2015, 02:59:20 am »
If you're still separating your text into multiple (text) objects (as mentioned in this thread), you could just use an sf::CircleShape...  ;)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything