I decided to use Downloadable fonts in my project. I implemented everything as recommened in the guide.
The following problem occured, when i tried to get font from ResourcesCompat next way:
ResourcesCompat.getFont(MainActivity.this, R.font.roboto_bold)
After that, i always get this exeption:
Font resource ID #0x7f090005 could not be retrieved
How to solve this problem?
PS:
- support-compat library v27
- min sdk 16
- solution via ResourcesCompat.FontCallback is not a good way in my case
- problem occurs on devices with and without Google Play Services