Has anyone ever found a routine that would calculating the amount of pixels a certain string takes? If you look at this site
http://www.groupeacadia.com, you will see that the next upcoming seven events are having a title at the top of each entry. For most of them, the title is too long. So, we have to cut it and add ... at the end. However, no matter the formula I am using, there could always be a possibility that a certain string will wrap on two lines. This is what we are trying to avoid. So, if we could calculate the amount of pixels that it takes, we could then remove one character at a time until it fits.