How many pixels does a string occupy??
843807Feb 13 2003 — edited Feb 14 2003I'm making a credit script and have a little problem with centering the
strings. If one string is eg. 12 characters long how many pixels will it occupy on screen? This depends on which letters the string contains. So the question is, HOW can i calculate the space (in pixels) needed to print any given string. (The size of the letters is constant!)
Is it any other way to center a string on screen? I have a tendency to think a little complicated.. :)
Any help is welcome. Code or just ideas is great!