XMMS complete Chinese beautification technology debian

Source: Internet
Author: User
XMMS complete Chinese beautification technology debian-Linux release version technology-Debian information, the following is read details. Although XMMS is an old player of poetry, its memory usage is still relatively small. At that time, Chinese characters were inconvenient.

1. determine whether there is a landscaping program Foundation
First, determine whether xfs, or X font server, is running.
# Ps-A | grep xfs
2659? 00:00:00 xfs
If there is no xfs in the process, it is impossible to beautify it.
Install xfs
Apt-get install xfs

2. Add the simsun font to the xfs font service.
You can use the xlsfonts | grep gb command to determine the installation of Chinese fonts.
For example, the Chinese font list in my xfs is as follows:
# Xlsfonts | grep gb
-Dynalab-dfpshaonvw5 gb-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Dynalab-dfpshaonvw5 gb-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Dynalab-dfpshaonvw5 gb-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Dynalab-dfpshaonvw5 gb-medium-r-normal -- 0-0-0-0-p-0-iso10646-1
-Dynalab-dfpshaonvw5 gb-medium-r-normal -- 0-0-0-0-p-0-iso10646-1
-Dynalab-dfpshaonvw5 gb-medium-r-normal -- 0-0-0-0-p-0-iso10646-1
-Isas-fangsong ti-medium-r-normal -- 0-0-72-72-c-0-gb2312.1980-0
-Isas-fangsong ti-medium-r-normal -- 16-160-72-72-c-160-gb2312.1980-0
-Isas-song ti-medium-r-normal -- 0-0-72-72-c-0-gb2312.1980-0
-Isas-song ti-medium-r-normal -- 16-160-72-72-c-160-gb2312.1980-0
-Isas-song ti-medium-r-normal -- 24-240-72-72-c-240-gb2312.1980-0
-Misc-ar pl new feature-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-ar pl new feature-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-ar pl new feature-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-fzkatong m19s-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-fzkatong m19s-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-fzkatong m19s-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-simhei-medium-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-simhei-medium-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-simhei-medium-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-simhei-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-simhei-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-simhei-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-simsun-medium-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-simsun-medium-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-simsun-medium-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-simsun-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-simsun-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
-Misc-simsun-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
Hanzigb16fs
Hanzigb16st
Hanzigb24st

If simsun is not available, we need to add xfs to further beautify the gtk-related program fonts, such as xmms.

You can add a font as follows:
Modify/etc/fonts. conf
/Home/program/fonts <--- add this sentence. This is your simsun. ttf storage path, which can be modified based on your specific location.
/Usr/share/fonts

Run the following two commands in the simsun. tff storage directory:
# Mkfontscale
# Mkfontdir
Then execute
# Xset + fp/home/program/fonts/
Added!
View the result
# Xset q
Check whether/home/program/fonts/exists in Font Path/
At this time, xlsfonts | grep gb should be listed in the appropriate font! If you have not carefully checked which step has an error!
You can restart the X server to ensure that the xfs service runs correctly.

3. The last one modifies the xmms font settings. We can use the Chinese font in xmms!
Ctrl + p open the xmms preference dialog box-font
Bait both the font set and x Font

Fill in the two rectangular lines respectively:
-Misc-simsun-medium-r-normal -- 13 -*-*-*-*-*-*
-Misc-simsun-medium-r-normal -- 12 -*-*-*-*-*-*
Click Apply. At this time, the Chinese font is displayed, and it is more comfortable.
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.