Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Check string width in pixels
Print
Pages: [
1
]
Author
Topic: Check string width in pixels (Read 2064 times)
0 Members and 1 Guest are viewing this topic.
lap1994
Newbie
Posts: 11
Check string width in pixels
«
on:
November 29, 2009, 09:49:20 pm »
How do I know the string width in pixels?
Logged
Practice makes perfect.
Laurent
Administrator
Hero Member
Posts: 32498
Check string width in pixels
«
Reply #1 on:
November 29, 2009, 10:07:22 pm »
Code:
[Select]
string.GetRect().GetSize().x
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Check string width in pixels
anything