Installation of Chinese fonts under Linux _unix Linux

Source: Internet
Author: User
Tags first row

1, first disable the XFS server.
Run the Setup command to abort the feature that XFS is running with the system in the service item. The reason for disabling XFS servers is that XFS automatically updates the Fonts.dir files in the font directory, which affects the changes we make.
2, copy the selected font to the relevant directory.
Generally choose Simsun.ttf as the basic font (it is said that the font is the most exquisite Chinese font). Copy these fonts to/usr/share/fonts/default/truetype and generate Fonts.dir and Fonts.scale files.
Run under the same font directory: Ttmkfdir > Fonts.dir. Edit the Fonts.dir file to add two lines under simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-p-0-ascii-0:
simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0
-p-0-gb2312.1980-0
simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0
-p-0-gbk-0
Also note that the number of the first row of the file changes accordingly, and then copy Fonts.dir to Fonts.scale.
3. Set the font path and load the server
Edit the/etc/x11/xf86config-4 file (#表示注释行).
section "Files"
# Fontpath "Unix/:7100"
Fontpath "/usr/x11r6/lib/x11/fonts/misc:unscaled"
Fontpath "/usr/x11r6/lib/x11/fonts/75dpi:unscaled"
Fontpath "/usr/x11r6/lib/x11/fonts/misc"
Fontpath "/usr/x11r6/lib/x11/fonts/type1"
Fontpath "/usr/x11r6/lib/x11/fonts/speedo"
Fontpath "/USR/X11R6/LIB/X11/FONTS/75DPI"
Fontpath "/usr/share/fonts/default/truetype"
Endsection
section "Module"
......
Load "Xtt"
......
Endsection
Reboot and set the font to SimSun in the control center. OK, that's it.
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.