Hello all,
I'm trying to measure lots of small text rects which vary in length so
I'm reusing a single NSTextview to save memory and calling
glyphRangeForTextContainer + usedRectForTextContainer to get the used
Rect. Even though it works I find it a little slow because I'm
measuring a
text rects. Has anyone come up with a very fast way to estimate the size of
some text, more importantly the vertical size given a width.
You didn't mention that you tried NSAttributedString (specifically,
its -size method.) Does it suit your needs, or is it what you consider
too slow?
David
On 13/05/2009, at 7:16 AM, Dave Keck wrote:
text rects. Has anyone come up with a very fast way to estimate the
size of
some text, more importantly the vertical size given a width.
You didn't mention that you tried NSAttributedString (specifically,
its -size method.) Does it suit your