In ubuntu11.10, gnome-tweak-tool is installed for many fonts (for desktop fonts and OSD notification area fonts). After you use it to modify the font, you will find that there are still two fonts not modified, one is the desktop font, and the other is the fonts on the notify osd and GNOME-SHELL panels (these two are together). After my tossing, the following method is obtained: www.2cto.com 1. desktop font: first install dconf, open dconf Editor, find org --> gnome --> nautilus --> desktop, there is a font in it, the default is ubuntu 11, changed to WenQuanYi Micro Hei 11, you can display the micron black font on the desktop. 2. the font of the OSD notification area [This is also the font displayed on GNOME-SHELL]: The font with the highest priority is used in this area. You can use the following command to view the font: code: fc-match sans-serif # capture the font fc-match serif with the highest priority of the current user's sans-serif font # capture the font fc with the highest priority of the current user's serif font- match monospace # capture the font www.2cto.com with the highest priority of the current user's monospace class. The change method is as follows: in the main directory, use a text editor to modify. fonts. conf, create a new one. If the micron black is first displayed, the content is as follows: code:
<? Xml version = "1.0"?> <! DOCTYPE fontconfig SYSTEM "fonts. dtd"> <fontconfig> <! -- Created by WenQuanYi FcDesigner v0.5 --> <match> <test name = "family"> <string> sans-serif </string> </test> <edit name = "family" mode = "prepend" binding = "strong"> <string> WenQuanYi Micro Hei </string> </edit> </match> <match>
<Test name = "family"> <string> serif </string> </test> <edit name = "family" mode = "prepend" binding = "strong"> <string> WenQuanYi Micro Hei </string> </edit> </match> www.2cto.com <match> <test name = "family"> <string> monospace </string> </test> <edit name = "family" mode = "prepend" binding = "strong"> <string> WenQuanYi Micro Hei Mono </string> </edit> </match> </fontconfig> The <string> WenQuanYi Micro Hei </string> section can contain more fonts, for details, refer to the visual habits tools of wenquanyi.
Http://wenq.org/cloud/fcdesigner_local.html