XMMS Chinese display

Source: Internet
Author: User
Tags gtk
It may be that I am nostalgic, or I am old and cannot keep up with the times. I tried a few MP3 players, but I was not used to them. I tried to change back to my old friend XMMS. However, the problem with XMMS is that it is difficult to set Chinese display (in fact, it is difficult for you to do it yourself. Later, we found that a rule is to first set/etc/gtk/gtkrc. zh_CN, and then set the XMMS font to the same as/etc/gtk/gtkrc. zh_CN to solve the problem.

Set/etc/gtk/gtkrc. zh_CN Style "gtk-default-zh-cn "{
Fontset = "-misc-fixed-medium-r-normal -- 12-*-iso8859-1 ,\
-Misc-vera sans yuan ti-medium-r-normal -- 12 -*-*
-*-Gb2312.1980-0, *-r -*"
}

You can use the command xlsfonts | grep 18030 to list the Chinese fonts installed on your machine, and then select one. Only vera sans yuanti is installed on my machine, after running the preceding command, the output result is: -Misc-vera sans yuanti mono-bold-I-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-vera sans yuanti mono-bold-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-vera sans yuanti mono-medium-I-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-vera sans yuanti mono-medium-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-vera sans yuanti-bold-I-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-vera sans yuanti-bold-r-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-vera sans yuanti-medium-I-normal -- 0-0-0-0-p-0-gb18030.2000-0
-Misc-vera sans yuanti-medium-r-normal -- 0-0-0-0-p-0-gb18030.2000-0

Note: Modify/etc/gtk/gtkrc. in the zh_CN file, "yuanti" in the font name "vera sans yuanti" must be written as "yuan ti" (note the space). Otherwise, the XMMS still displays garbled characters. This time I was dizzy by this space.

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.