ios - How to subscript with characters in Unicode? -


i able subscript numbers using:

static const unichar ksubscriptzero = 0x2080; int numberofhydrogens = 2; nsstring *water = [nsstring stringwithformat:@"h%co",     ksubscriptzero + numberofhydrogens]; 

the above code prints out nicely formatted > h2o (with of course 2 subscript), having issue doing same other unicode characters (that not numbers) example 209cwhich subscript t. instead of subscript t, square box... can please tell me right way can done?

if square box instead of desired glyph font not have glyph character , therefore cannot display it.

if don't find font containing u+209c (latin subscript small letter t) alternative use attributed strings, suggested in answer: https://stackoverflow.com/a/17957628/1187415.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -