Here is my code and screenshot. I am trying to install my own font font, but a Runtime exception occurs if the font object is not found and the font file is in the resource folder. Did I miss something?
Typeface font = Typeface.createFromAsset(getAssets(), "font/terminal.ttf"); ((TextView) findViewById(R.id.weatherHeadingTV)).setTypeface(font);


java android android-fonts
Muzammil husnain
source share