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

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -