iphone - Measure size of each char in an NSString -
we have [nsstring sizewithfont:] returns size of entire string.
what getting array of sizes of each individual character within string?
how (besides tokenizing string , calling sizewithfont each)?
best, vance
you should able size information individual glyphs (note though don't map one-to-one individual characters in string) using core graphics function cgfontgetglyphbboxes
.
Comments
Post a Comment