java.lang.RuntimeException: native typeface cannot be made

时间:2014-06-08 15:03:27   收藏:0   阅读:298


设置字体出错:

txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent"));
然后发现,竟然是因为自己没有加上后缀,改成下面这样就好了

txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent.ttf"));

出这个错误了先看看名字有没有写全



java.lang.RuntimeException: native typeface cannot be made,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!