I had encountered this problem i was setting the typeface inside a custom layout class with a constructor that pass a reference to parent activity's "context" and setting it up like this:
Typeface font = Typeface.createFromAsset(this.getAssets(), "fonts/font.ttf");
it gives me "native typeface cannot be made" error.
went on creating a new test project out from scratch to just display the "Hello World, " with the custom font i want to use so i did this on onCreate() on the default activity class:
Typeface font = Typeface.createFromAsset(getAssets(), "fonts/font.ttf");
and this time it worked and i thought that maybe i should try putting a reference of the main Activity rather than the Context to my custom layout class:
Typeface font = Typeface.createFromAsset(activity.getAssets(), "fonts/font.ttf");
now this time it worked on the custom layout class. hope this would help you guys too.