0

I'm making my first Android application and I want to add a custom font for a certain TextView. So I read about Typeface declaration and other people problem in some of the topics here and here . I create my own folder Fonts in assets and adding my font.tff there. Here is some code that I have just wrote:

textField = (TextView)findViewById(R.id.threeMinutesTimer);
Typeface face;
face = createFromAsset(getAssets(), "Fonts/GAELLEnumber8.tff");
textField.setTypeface(face);

When I start my application I'm receiving an RuntimeException : native typeface cannot be made. Help.

Community
  • 1
  • 1
Stanimir Yakimov
  • 864
  • 3
  • 14
  • 31

0 Answers0