I have tried using Typeface.createFromAsset(getAssets(),\"font/myfont.ttf\"));
Typeface.createFromAsset(getAssets(),\"font/myfont.ttf\"));
I know font directory should be in assets but in my case, I have an exist
This worked
Typeface typeface = ResourcesCompat.getFont(this, R.font.app_font);
Found this in the tutorial link by @Eselfar