MATLAB Linux Chinese display Problem solving method

Source: Internet
Author: User

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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.