Is there a way to detect whether a Unicode character is present in a font on the iPhone, i.e., to detect whether the character will map to a printable glyph or instead to the square "missing character" symbol?
For example, if I want to generate a random Wingding character with this snippet:
NSString *s = [NSString stringWithFormat:@"%C", (0x2700 + (arc4random() % 0x0100))];
is there a way to tell if the generated string will render as the little square, or a real glyph when I draw it with this:
[s drawAtPoint:x withFont:[UIFont systemFontOfSize:30]];
Thanks!
...R