Solve garbled characters in Ubuntu in the ghost wing Program

Source: Internet
Author: User
1. create a directory fallback under jre/lib/fonts/, for example, in Ubuntu9.04: code: sudomkdir/usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/2. get a Chinese font in fallback, for example, in Ubuntu9.04: Code: sudoln-s/usr/share/fonts/truetype/

1. Create a directory fallback under jre/lib/fonts/, for example, in Ubuntu 9.04:

Code:

Sudo mkdir/usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/

2. Get a Chinese font in fallback, such as in Ubuntu 9.04:

Code:

Sudo ln-s/usr/share/fonts/truetype/wqy/*. */usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/

3./usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/run mkfontscale

Then, set/usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/fonts. add the scale content to/usr/lib/jvm/java-6-sun/jre/lib/fonts. dir

For example, in Ubuntu 9.04:

Code:

Cd/usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/

Sudo mkfontscale

Cd ..

Sudo cat fallback/fonts. scale> fonts. dir

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.