On Android, I want to determine if the font used can display a specific character or not, but as I understand it, this is not possible using the usual means, as indicated Check if a custom font can display a character
To find this out, I write the character I want to check into a bitmap, and then I write another character that, as I know, is missing from another bitmap and compares the contents of the bitmap images. If they are equal, the symbol is absent.
The question is, is there any Unicode character for which the glyph (more or less) is guaranteed to be absent from the fonts commonly used on Android phones?
The Unicode replacement character sounds promising when you read about it on Wikipedia:
It is used to indicate problems when the system cannot map the data stream to the correct character. This is most often observed when the font does not contain a character, but also appears when data is invalid and does not match the character
However, after a little testing, I see that this character is not used to represent the missing glyphs on my computer running Windows 7 or on the Android phone with which I tested (Motorola Atrix).
android fonts unicode
nibarius
source share