Most efficient way of measuring text
Most efficient way of measuring text
- Subject: Most efficient way of measuring text
- From: Alejandro Rodriguez <email@hidden>
- Date: Tue, 12 May 2009 13:07:29 -0400
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 lot of 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.
Thanks a lot,
Alejandro RodrÃguez_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden