How would one, using Python, approximate the font width of a given string of text?
I am looking for a function with a prototype similar to:
def getA
You could render an image with the text using PIL and then determine the resulting image width.
http://effbot.org/imagingbook/imagefont.htm