how do you know how many words you can put in a text box
If this is posted somewhere else, I apologize, but I've been searching for a few days.
I'm trying to make a epub reader, I can extract the xml, get the text out - no problems.
How do I know how many words I can put in a textbox, so that they just fit nicely on screen; without overflowing off the bottom of the screen.
The number of words varies with the font, the characters used (as they aren't all the same width), and the length of the words themselves.
This must be possible, because it's already done in ibook and stanza. I just can't find the appropriate objective-c class/properties to use.
hope this all makes sense, and thanks for any hints/ideas in advance.
|