I am attempting to use a custom font for a TextView on Android, following the guide here. Using the same font, same code, same everything, I get this in adb logcat:
I also get the same error and I have solution follow.
Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Molot.otf")
you must put fonts/Molot.otf
in assets/fonts
folder in your Eclipse.
after you can Run it.
if you can not Run it successfull you can send proplem via
You should edit your font with 'Fontlab' Software in binary mod.
@deng his answer worked for me":
check font's name and extension. it is case sensitive & probably all caps. eg.
Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/MOLOT.OTF")