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:
Android does support OTF files for Typefaces, if you're facing this problem, make sure that you're setting the right path for the font, for example, if you have the file fontname.otf, put it in a folder fonts inside assets folder and create the typeface like follows :
Typeface typeface = Typeface.createFromAsset(getAssets(), "fonts/fontname.otf");
(path argument should not start with "/") and the file name should not include special characters or a "-" and should be in lowercases