1. xmms uses the GTK1.x font mechanism, which is different from general fontconfig. Therefore, you must install a usable Chinese font Based on the GTK1.x font mechanism. 2. this document uses simsun. configure the ttc font. 3. copy simsun. ttc to the/usr/share/fonts/local directory, create a directory (the directory location is not absolute) 4. generate font 1 in/usr/share/fonts/local. xmms uses GTK 1. the font mechanism of x is different from that of fontconfig,
Therefore, you must install a usable Chinese font Based on the GTK 1. x Font.
2. This document uses the simsun. ttc font for configuration.
3. Copy simsun. ttc to the/usr/share/fonts/local directory and create a directory (the directory location is not absolute)
4. in/usr/share/fonts/local, generate the fonts. dir file and fonts. scale. The command is as follows:
$ Mkfontscale
$ Mkfontdir
(Note: mkfontdir cannot generate the text file of ttc or ttf)
5. Add to xlsfonts:
$ Xset + fp/usr/share/fonts/local/
6. Add in/etc/X11/XF86Config-4 or/etc/X11/xorg. conf (depending on the xserver you are using)
FontPath "/usr/share/fonts/local /"
7. Check whether the system can find the installed font
$ Xset q
$ Xlsfonts | grep gb
8. zh_CN.utf-8. cp/etc/gtk/gtkrc. zh_CN/etc/gtk/gtkrc.
9. edit/etc/gtk/gtkrc. zh_CN.utf-8 in the form below:
Style "gtk-default-zh-cn-utf8 "{
Fontset = "-adobe-helvetica-medium-r-normal -- 12-*-iso8859-1,
-Misc-simsun-medium-r-normal -- 14-*-gb2312.1980-0, *-r -*"
}
Class "GtkWidget" style "gtk-default-zh-cn-utf8"
10. Install xmms-mpg123-ja
Code:
Sudo apt-get install xmms-mpg123-ja (the xmms-mpg123-ja has more encoding conversions than the default mpg123)
11. Replacing the default xmms-mpg123-ja for xmms with xmms-mpg123 plug-ins
Xmms preference-audio input and output plug-in
Remove [Enable] of libmp g123
Select [Enable] For the libmpg123-ja
12. xmms preferences-audio input and output Plugin-libmpg123-ja-configuration-title
Select input Conversion
GB18030-"UTF-8
13.
Edit title display:
Enter % f in the title format. The default value is % p-% t. Do not set the default value.
14.
Modify the font. My font is:
Playlist:
-Adobe-helvetica-medium-r-normal -- 12-*-iso8859-1, -*-medium-r-normal -- 16-*-gb2312.1980-0, *-r -*
Main Window:
-Adobe-helvetica-medium-r-normal -- 12-*-iso8859-1, -*-medium-r-normal -- 16-*-gb2312.1980-0, *-r -*
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