MATLAB Linux Chinese display problem solving method
2011-09-26 17:07:06 | Category: default Categories | Tags: | report | font size big medium small Subscribe
Here's how you try it! Because the GUI of MATLAB is written in Java, so long as the Java in the Chinese display is done.
1, I matlab2007a the JRE directory is:/opt/matlab/sys/java/jre/glnx86/jre1.5.0 Please according to your own installation directory and version to determine the JRE directory;
2, $ cd/opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/fonts/;
3, the establishment of the directory fallback: $ mkdir fallback;
4, copy the font or link to the fallback directory: $ CP/MEDIA/DISK/WINDOWS/FONTS/SIMSUN.TTC fallback/I use the WINDOWS xp SimSun font, you can also use other support Chinese fonts;
5. Enter the fallback directory and execute the mkfontscale command;
6. Add the file you generated in the previous step to the Lib/fonts/fonts.dir file, complete with the following command, or copy and paste with editor: $ cat fallback/fonts.scale >> Fonts.dir ( Note Fonts.dir should be set to writable)
7, at this point, the Java environment of MATLAB installation is finished, the next configuration of Matlab;
8, enter the MATLAB, choose the menu file>>preferences>>fonts choose SimSun Font on the line;
9, if there is no corresponding (my is SimSun) font, please add the font fallback under the readable attribute: $ chmod a+r fallback/*
10, Matlab should be able to display the normal Chinese.
You can also use the following methods:
First Use command: sudo apt-install sun-java6-jre
To install the JRE, and then the files under the MATLAB installation path, such as mine are:/usr/x11r6/bin/matlab7
Added in file: Eport matlab_java=/usr/lib/jvm/java-6-sun/jre/
Then run MATLAB to select a Chinese font in file<<preferences<<fonts.