Mandrake9.0RC1 beautification

Source: Internet
Author: User
Article title: Mandrake9.0RC1 beautification. 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.
This is done under the guidance of the Chinese document "connermo.
  
1. create a directory:/usr/X11R6/lib/X11/fonts/TrueType
  
2. in CP windowsXP, simsun. ttc, tahoma. ttf, and tahomabd. ttf are stored in the preceding Directory. change simsun. ttc to ttf.
Generate: fonts. dir (this command: mkttfdir> fonts. dir) to make it similar to the following:
  
24
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-c-0-gb2312.1980-0
Ai = 0.3: simsun. ttf-misc-SimSun-medium-I-normal -- 0-0-0-0-c-0-gb2312.1980-0
Ds = y: simsun. ttf-misc-SimSun-bold-r-normal -- 0-0-0-0-c-0-gb2312.1980-0
Ds = y: ai = 0.3: simsun. ttf-misc-SimSun-bold-I-normal -- 0-0-0-0-c-0-gb2312.1980-0
Tahoma. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-iso8859-1
Ai = 0.3: tahoma. ttf-misc-SimSun-medium-I-normal -- 0-0-0-0-p-0-iso8859-1
Tahomabd. ttf-misc-SimSun-bold-r-normal -- 0-0-0-0-p-0-iso8859-1
Ai = 0.3: tahomabd. ttf-misc-SimSun-bold-I-normal -- 0-0-0-0-p-0-iso8859-1
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-gbk-0
Ai = 0.3: simsun. ttf-misc-SimSun-medium-I-normal -- 0-0-0-0-p-0-gbk-0
Ds = y: simsun. ttf-misc-SimSun-bold-r-normal -- 0-0-0-0-p-0-gbk-0
Ds = y: ai = 0.3: simsun. ttf-misc-SimSun-bold-I-normal -- 0-0-0-0-p-0-gbk-0
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-fcd8859-15
Ai = 0.3: simsun. ttf-misc-SimSun-medium-I-normal -- 0-0-0-0-p-0-fcd8859-15
Ds = y: simsun. ttf-misc-SimSun-bold-r-normal -- 0-0-0-0-p-0-fcd8859-15
Ds = y: ai = 0.3: simsun. ttf-misc-SimSun-bold-I-normal -- 0-0-0-0-p-0-fcd8859-15
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-iso8859-15
Ai = 0.3: simsun. ttf-misc-SimSun-medium-I-normal -- 0-0-0-0-p-0-iso8859-15
Ds = y: simsun. ttf-misc-SimSun-bold-r-normal -- 0-0-0-0-p-0-iso8859-15
Ds = y: ai = 0.3: simsun. ttf-misc-SimSun-bold-I-normal -- 0-0-0-0-p-0-iso8859-15
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-c-0-iso10646-1
Ai = 0.3: simsun. ttf-misc-SimSun-medium-I-normal -- 0-0-0-0-c-0-iso10646-1
Ds = y: simsun. ttf-misc-SimSun-bold-r-normal -- 0-0-0-0-c-0-iso10646-1
Ds = y: ai = 0.3: simsun. ttf-misc-SimSun-bold-I-normal -- 0-0-0-0-c-0-iso10646-1
  
Then cp fonts. dir fonts. scale, or cat fonts. dir> fonts. scale
  
3. modify/etc/X11/XF86Config-4, add:
FontPath "/usr/X11R6/lib/X11/fonts/TrueType" must be added before the line unix/:-1.
Add the following in the module section:
  
Load "xtt"
  
(Note that the "load type1" and "load freetype" modules are commented out .)
  
Similar to this:
# Load type1
# Load freetype
  
4. copy the encoding file encodings. dir to the directory.
  
Cp/usr/X11R6/lib/X11/fonts/encodings. dir/usr/X11R6/lib/X11/fonts/TrueType
  
5. modify/etc/X11/Xftconfig
  
Add at the end:
  
Match
Any size> 8
Any size <17
Edit
Antialias = false;
Match
Any pixelsize> 8
Any pixelsize <17
Edit
Antialias = false;
  
So 8 ~ The font on the 17th will not use the anti-aliasing function.
  
6. modify/etc/gtk/gtkrc. zh_CN
Change the fontset to "-misc-simsun-medium-r-normal -- 14-*-gb2312.1980-0,
-*-Medium-r-normal -- 14-*-gb2312.1980-0, *-r -*"
  
Okay. restart Xwindow.
  
1. in the KDE Control Center, the font is changed to simsun.
  
2. in the KDE Control Center, select "use sub-pixel email" in the system --> font installer's anti-tooth column, and click "save change "!
  
Restart the machine. You can see the beautiful font.
Related Article

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.