For moderators: I already found similar questions (one, two), but none of them solves my problem. Please do not mark as duplicate.
Problem: I have a device on Android 7 (API 25) on which I need to show a large emoji in TextView. If font size below 256 emojis are displayed without problems, but at a size above 256 emojis are not displayed:
ERROR/OpenGLRenderer: Font size to large to fit in cache.
What I tried:
- Disabling the hardware acceleration for a specific Activity
- Disabling the hardware acceleration for a specific TextView
- Convert the emoji to an outline using Paint.getTextPath(...)
But nothing works. Even Paint.getTextPath does not return emojis outline (for plain text everything works).
In emulator (Android 9, API 28) all emojis are displayed, but on a real device (Android 7, API 25) - not. This is probably a bug of the android itself.
Are there any other ways to display large emojis?