具体在终端到执行命令如下:(我到matlab安装在~/Soft/matlab,挂载了windows XP系统的C盘,此处我命名为系统盘)
$ cd Soft/matlab/sys/java/jre/glnx86/jre/lib/fonts
]$ su
密码:
[root@localhost fonts]# mkdir fallback
[root@localhost fonts]# cp /media/系统盘/WINDOWS/Fonts/simsun.ttc fallback/
[root@localhost fonts]# cd fallback
[root@localhost fallback]# mkfontscale
[root@localhost fallback]# cd ..
[root@localhost fonts]# ls -l fonts.dir
-r--r--r--. 1 root root 4041 3月 16 2009 fonts.dir (查看fonts.dir读写权限,要赋予写到权限)
[root@localhost fonts]# chmod 777 fonts.dir
[root@localhost fonts]# ls -l fonts.dir
-rwxrwxrwx. 1 root root 4041 3月 16 2009 fonts.dir
[root@localhost fonts]# cat fallback/fonts.scale >> fonts.dir