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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -