我正在尝试在TextView中使用自定义字体:
tv=(TextView)findViewById(res);
Typeface font = Typeface.createFromAsset(this.getAssets(), "fonts/font.ttf");
tv.setTypeface(font);
但是当我运行时,会出现以下错误:
W/System.err( 542): java.lang.RuntimeException: native typeface cannot be made
有什么问题?