E/Minikin(32505): addFont failed to create font
来源:互联网 发布:阿里云服务器登陆账号 编辑:程序博客网 时间:2024/06/07 09:30
android使用艺术字体。
String ff=SharedPreferencesUtil.getfont();//选中的字体
// String FilePath=Environment.getExternalStorageDirectory()+"/fonts/889.ttf";String FilePath =Environment.getExternalStorageDirectory()+"/fonts/"+ff;
Typeface face1;
if(!ff.equals("")) //验证文件是否存在
{
face1 = Typeface.createFromFile(FilePath);
tv.setTypeface (face1);
}else{
tv.setTypeface (MyApplication.face);//默认字体
}
出现这样异常:W/System.err(8433): java.lang.RuntimeException: Font not found /storage/emulated/0/fonts/84d73c2aa2ea40aab1dc2445fa15255c.ttf
网上找了好多资料没有解决办法。
后面将84d73c2aa2ea40aab1dc2445fa15255c.ttf 名字改成889.ff就可以解决问题。猜可能是名字太长的原因吧。
阅读全文
0 0
- E/Minikin(32505): addFont failed to create font
- Failed to decode downloaded font
- failed to create process
- Failed to create virtual machine
- netty failed to create selector
- Failed to create BuildConfig class
- Failed to create BuildConfig class
- Failed to create BuildConfig class
- failed to create buildconfig class:
- Eclipse failed to create jvm
- failed to create framebuffer image
- failed to create process.[python]
- failed to create anaconda menus
- failed to create anacoda menu
- Failed to decode downloaded font 问题解决
- CSS Failed to decode downloaded font, OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
- Failed to execute rake db:create
- Failed to create the Java Virtual Machine
- 只能动态/静态分配类对象
- struts.xml约束
- PCL-1.7.2-AllInOne-msvc2013-win64+VS2013安装
- $.each 和$(selector).each()的区别
- webapp开发
- E/Minikin(32505): addFont failed to create font
- CentOS 7没有ifconfig命令
- python基础
- jQuery formValidator手册
- HDU6129 Just do it (找规律)
- 图卷积神经网络(Graph Convolutional Neural Network)
- iOS拍照之后图片在PC端粘贴后自动旋转90度
- 大学
- 关于windows虚拟桌面使用及录屏