Ubuntu Firefox garbled problem

Source: Internet
Author: User

Before tossing MATLAB Chinese input problem, the structure of MATLAB is not good, but also the Firefox Chinese font bad. (Some of the pages, such as Baidu know the display of Chinese places all error)

The previous action is:Ubuntu installation Chinese font can display Chinese, or cannot input Chinese (fictx).

First, prepare font XP fonts stored in the C:/windows/fonts directory, we have the favorite fonts copied out, such as SIMSUN.TTC, Simkai.ttf, Simhei.ttf, Simfang.ttf and so on.   Copy these font files to Ubuntu's/usr/share/fonts/xpfonts directory. Note: If you find that you cannot create a new folder under/usr/share/fonts/, please log in with the root user.   Import fonts open terminal run the following command line to establish font cache information: sudo mkfontscale sudo mkfontdir         # #会在命令执行的对应路径下生成fonts. Dir   with Fonts.scale two file   when the sudo fc-cache-fv command executes successfully, the terminal will display: fc-cache:succeeded

The possible reason for this analysis now is that the previously established Fonts.dir and Fonts.scale locations and the non-generated font cache error.


See also: Ubuntu Chinese-fonts

FC-CACHE-FV #通常复制字体进 ~/.fonts will automatically refresh the font, if not, with this command, if copied into the/usr/share/fonts/, with sudo fc-cache-fv

Get Chinese font:

sudo apt-get install Ttf-wqy-microhei  #文泉驿-Micron Black
sudo apt-get install Ttf-wqy-zenhei  #文泉驿-Positive Black
sudo apt-get install xfonts-wqy #文泉驿-lattice Arial

My font file path:


Firefox so successful, I tried the next matlab, you can input Chinese.

-----------------------------------------------------

Mark:fc-cache-fv/sudo FC-CACHE-FV


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Ubuntu Firefox garbled problem

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.