系统字体中没有字形时如何下标字母?

我已经能够成功地在我的应用程序中下标数字:

static const unichar kSubscriptZero = 0x2080; int numberOfHydrogens = 2; NSString *header1 = [NSString stringWithFormat:@"H%CO", kSubscriptZero + numberOfHydrogens]; 

问题是这样的:我试图用unicode字符中的其他字符做同样的事情,但它不工作,我得到的只是一个方框而不是我的字符,事实certificate,这意味着我的字形没有该字符的字体。 我回顾了以前在这里问过的一个问题,并尝试了其他字符,而不是数字:

  if (section == whicheverSectionIndexIsCorrect) { NSString *plainText = @"2H2 + O2 → 2H2O"; id subscriptOffset = @(-0.5); // random guess here, adjust offset as needed NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:plainText]; // apply attributes for each character to subscript [text addAttribute:(NSString *)kCTSuperscriptAttributeName value:subscriptOffset range:NSMakeRange(2, 1)]; [text addAttribute:(NSString *)kCTSuperscriptAttributeName value:subscriptOffset range:NSMakeRange(7, 1)]; // etc. UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 64)]; UILabel *label = [[UILabel alloc] init]; label.attributedText = text; [view addSubview:label]; return view; } 

但我的问题是这样的:如果我改变subscriptOffset的小数位它根本没有任何作用(所以-0.1给了我一样的结果-0.9),但是当我把这个数字从1.0更改为2.0,等等…我的问题是太大的跳跃。 我怎么能这样做,并得到我要去的好看angular?

更新以下是我目前的情况截图:我需要能够下标“t” 在这里输入图像说明