Modify the font in ubuntu11.10 (for desktop fonts and OSD notification area fonts)

Source: Internet
Author: User


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
 

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.