I'm trying set custom font on TextView:
public void setHeaderTextWithKaushan (String text) {
headerText.setText(text);
Typeface face = Typeface.createFromAsset(getResources().getAssets(), "font/kaushan.otf");
headerText.setTypeface(face);
}
But I get an error:
java.lang.RuntimeException: Font asset not found font/kaushan.otf
I've read similar questions and some guys say to move fonts folder from res
to assets
, but I've opened project structure(*picture) an there is no assets
folder.
Which is the problem?