I am trying to use a custom font in my app but I am getting an error. My code is this:
Typeface myTypeface = Typeface.createFromAsset(getAssets(), "fonts/Oxigen_Regular.ttf");
TextView texto_titulo =(TextView) findViewById(R.id.ref_articulo);
texto_titulo.setTypeface(myTypeface);
I have the font in fonts folder inside assets folder. I don´t know what is happening, I am doing this in ActionBarActivity. It says: "native typeface cannot be made". Someone knows the solution? Thanks in advance.