the font can not be loaded,the path['/usr/share/fonts/msyh/微软雅黑.ttf'] is error;
linxu安装了微软雅黑字体,但是代码发布上去之后,运行的时候又说不能加载这个字体
the font can not be loaded,the path['/usr/share/fonts/msyh/微软雅黑.ttf'] is error;
linxu安装了微软雅黑字体,但是代码发布上去之后,运行的时候又说不能加载这个字体
[root@iZ2ze5x5mt3210wm46kjgnZ msyh]# fc-list :lang=zh
/usr/share/fonts/msyh/微软雅黑.ttf: Microsoft YaHei,微软雅黑:style=Regular,Normal,oby?ejné,Standard,Κανονικ?,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normáln;
安装也成功了,也授权了 chmod 755。但代码中就是报错;
java.lang.IllegalArgumentException: the font can not be loaded,the path['/usr/share/fonts/msyh/微软雅黑.ttf'] is error