While using NSMutableAttributedString, if i use a font that won't support the text, then NSMutableAttributedString automatically uses the fallback font. But how to override this and make the NSMutableAttributedString to display text using the given font.

I want to display invalid characters if the selected font doesn't support the user text.