0

In android, I've used a font from my assets folder and worked correctly. Suddenly today i can't access to this font in my assets folder and the terminal generates

java.lang.RuntimeException: native typeface cannot be made

this is the piece of code

SpannableString s = new SpannableString("App");
s.setSpan(new TypefaceSpan(this, "Redressed.ttf"), 0, s.length(),
            Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
ActionBar actionBar = getActionBar();
actionBar.setTitle(s);

1 Answers1

0

Typeface tf = Typeface.createFromAsset(getApplicationContext().getAssets(), "abc.ttf");