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

Author Topic: is it possible to get fonts size in pixles?  (Read 2002 times)

0 Members and 1 Guest are viewing this topic.

Dark Byte

  • Newbie
  • *
  • Posts: 30
    • View Profile
is it possible to get fonts size in pixles?
« on: November 06, 2010, 05:27:09 pm »
Is it possible to get the width and height of an sf::String object dependent on the font and size in pixels?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
is it possible to get fonts size in pixles?
« Reply #1 on: November 06, 2010, 06:19:55 pm »
Are you looking for sf::String::GetRect()?
Laurent Gomila - SFML developer

Dark Byte

  • Newbie
  • *
  • Posts: 30
    • View Profile
is it possible to get fonts size in pixles?
« Reply #2 on: November 06, 2010, 09:56:58 pm »
Yes that is it thanks.

 

anything