SFML community forums
Help => General => Topic started by: dabo on February 06, 2008, 10:01:56 pm
-
Hi, is there a way to get the width of a character or a string in pixels? like if there were functions like this:
int i;
i = widthInPixels("a");
i = widthInPixels("SFML is great!");
I know you would need to take font size etc. into consideration too but still.
-
You can maybe simply use the GetRect function ?
-
You can maybe simply use the GetRect function ?
Ok, good idea.