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

Author Topic: Check string width in pixels  (Read 2064 times)

0 Members and 1 Guest are viewing this topic.

lap1994

  • Newbie
  • *
  • Posts: 11
    • MSN Messenger - lap.1994@hotmail.com
    • View Profile
Check string width in pixels
« on: November 29, 2009, 09:49:20 pm »
How do I know the string width in pixels?
Practice makes perfect.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Check string width in pixels
« Reply #1 on: November 29, 2009, 10:07:22 pm »
Code: [Select]
string.GetRect().GetSize().x
Laurent Gomila - SFML developer

 

anything