Here is my code and screenshot I\'m trying to set custom font typeface but Runtime exception occurs font asset not found while font file is in asset folder. Am I missing som
If you use AndroidAnnotations, in app build.gradle, verify if assets folder is ok: ex: main/src/assets.
If you change de font, uninstall your app from your device/emulator, and run again.
Code:
public static void setFontFace(Context context, TextView textView) {
Typeface type = Typeface.createFromAsset(context.getAssets(), "myfont.ttf");
textView.setTypeface(type);
}