I ran the sample on a couple devices with Android 7 and the downloaded font sometimes doesn't show the correct emoji.
If I use the bundled version, everything is fine.
I noticed this when trying to display flags, like πΊπΈ \uD83C\uDDFA\uD83C\uDDF8
, and all I got was a flag with a question mark on it, like this:
![](https://camo.githubusercontent.com/f1ba54e52b2fc4d7ff6d5fff62feea68c97963ecb2a8420bac7b292e8ccc1eb5/68747470733a2f2f6473632e636c6f75642f6361726c6f7365666f6e736563612f6d697373696e672d666c61672d616e64726f69642d6f2d656d6f6a692d656d6f6a6970656469612d524c5a41482e706e67)
Downloaded on the left, bundled on the right.
![](https://camo.githubusercontent.com/00c7725b75ac648a5f608ae6a48d4e9a5e8d529003f2d7a5251ba5e4b2ec2698/68747470733a2f2f6473632e636c6f75642f6361726c6f7365666f6e736563612f6f75747075742d323031382d30312d32325f31332e34322e33312d366d3146362e706e67)
Tried on 3 different Android 7 devices, with Google Play Services 11.7.45 or 11.9.51 and one Android 6 with both Google Play Services versions.
Eventually I figured that not doing setReplaceAll(true)
on the FontRequestEmojiCompatConfig()
seems "help" since Android knows how to display most countries.
I made an example with all flags copy&pasted from http://emojiflags.com and placed the yoga emoji on the second field (it's from the latest Emoji version so, the Android shouldn't be able to display it without EmojiCompat).
[ Download+setReplaceAll(false)
| Download+setReplaceAll(true)
| Bundled+setReplaceAll(true)
]
![](https://camo.githubusercontent.com/c1d217632518a8294e48abd40f1e19d81bf08b5f25bbfbade97525ff961b967d/68747470733a2f2f6473632e636c6f75642f6361726c6f7365666f6e736563612f6f75747075742d323031382d30312d32325f31352e31392e31332d6a6e5352622e706e67)
What's wrong with the downloaded version?