Article Title: Emacs font configuration in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Installation steps:
1. Install the wenquanyi font, which has been installed by default in F8. If you want to install it manually, run yum-y install wqy-bitmap-fonts.
2. Run fc-list to check whether "Wenquanyi Bitmap Song" is listed. If not, run fc-cache.
3. Execute xlsfonts to check whether there are items similar to '-wenquanyi bitmap song-medium-r-normal -- 0-0-75-75-p-0-gbk-0'. If not, add the path:
Xset + fp/usr/share/fonts/wenquanyi/bitmap
2nd items are used for the xft system, and 3rd items are used for the X core font system.
The current emacs uses the core font by default. Therefore, if your emacs does not use xft, you can simply follow step 1.
Last. In. Add these configurations to emacs:
(create-fontset-from-fontset-spec"-*-courier-medium-R-normal--12-*-*-*-*-*-fontset-mymono,chinese-gb2312:-*-wenquanyi bitmap song-medium-*-normal--14-*-*-*-*-*-iso10646-1,chinese-gbk:-*-wenquanyi bitmap song-medium-*-normal--14-*-*-*-*-*-iso10646-1,chinese-gb18030:-*-wenquanyi bitmap song-medium-*-normal--14-*-*-*-*-*-iso10646-1")(setq default-frame-alist (append '((font . "fontset-mymono")) default-frame-alist))(set-default-font "fontset-mymono") |