Hi all;
I've been usingGraphics.MeasureString to measure line lengths. However, I now need to take into account:
- Small Caps
- Scaling (making each character thinner/wider).
- Spacing (adding/subtracting space after each character).
- Hyphenation, where line breaks can occur at specific places within words.
Is there a way to do this using MeasureString? The two fundamental things I need to get is:
- How long is a passed in string.
- For a passed in string and length, how many characters of the string fits in that length.
I can do this calling it character by character. But is there a better way?
Also, is there a better means of finding the break point in a string for a given length other than calling MeasureString and keep adding a letter to the string until I pass the length limit?
thanks - dave
Who will win The Windward International Collegiate Programming Championships?