No, that wouldn't work. The issue with that is it will only search for U+25A1 (the unicode ID for the Tofu Box itself), while a tofu box appears due to a rendering issue and not because the character itself doesn't exist. For example, a new currency is introduced, there is a unicode ID for it (say U+200B2), but due to the font not existing yet it will still show up as a tofu box in many cases. The right way to detect is through an OS API where we pass a character and it will return true/false
Topic:
UI Frameworks
SubTopic:
General
Tags: