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 - sscanf() double showing zeros -

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -