Mandrake9 is fully beautifying

Source: Internet
Author: User
Article Title: Mandrake9 is fully beautifying. 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: mkdir/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/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 -*"
  
6. display the simsun font in Gnome2 (this is the advice of younker)
The first problem to be solved is that xft is not used.
Modify the gtk2.sh file under/etc/profile. d/and change GDK_USE_XFT = "1" to GDK_USE_XFT = "0"
Then modify/etc/pango/pangox. alias file. Check the content in it and you will know what to do. Put your simsun font in front of the list of each font.
  
Here is my:
  
# File defining aliases of PangoFontDescription to X font set
#
# Family style variant weight stretch XLFD
  
Sans normal \
"-Misc-SimSun-medium-r-normal -- 0-0-0-0-c-0-gb2312.1980-0 ,\
-Misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-iso8859-1 ,\
-Misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-gbk-0 ,\
-Misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-fcd8859-15 ,\
-Misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-iso8859-15 ,\
-Misc-SimSun-medium-r-normal -- 0-0-0-0-c-0-iso10646-1 ,\
-*-Helvetica-medium-r-normal --*-*-*-*-*-*-*-*,\
-*-Gulim-medium-r-normal -- *-ksc5601.1987-0 ,\
-*-Clearlyu-medium-r-normal -- *-iso10646-1 ,\
-*-Fixed-medium-r-normal --*-*-*-*-*-*-*-*,\
-Kaist-iyagi-bold-r-normal -- *-johab-1 ,\
-*-Song ti-medium-r-normal --*-*-*-*-*-*-*-*,\
-Freetype-unitamil-medium-r-normal -- *-iso10646-tam ,\
-*-Devanagari-medium-r-normal -- *-iso10646-dev ,\
-*-Gujarati-medium-r-normal -- *-iso10646-guj ,\
-*-Gurmukhi-medium-r-normal -- *-iso10646-gur ,\
-*-Bengali-medium-r-normal -- *-iso10646-bng ,\
-*-Kannada-medium-r-normal -- *-iso10646-kan ,\
-*-Burmese-medium-r-normal -- *-iso10646-brm ,\
-*-Buginese-medium-r-normal -- *-iso10646-bgn ,\
-*-Oriya-medium-r-normal -- *-iso10646-ori ,\
-Daewoo-mincho-medium-r-normal -- *-ksc5601.1987-0"
  
Sans italic normal \
"-Misc-SimSun-medium-I-normal -- 0-0-0-0-c-0-gb2312.1980-0 ,\
-Misc-SimSun-medium-I-normal -- 0-0-0-0-p-0-iso8859-1 ,\
-Misc-SimSun-medium-I-normal -- 0-0-0-0-p-0-gbk-0 ,\
-Misc-SimSun-medium-I-normal -- 0-0-0-0-p-0-fcd8859-15 ,\
-Misc-SimSun-medium-I-normal -- 0-0-0-0-p-0-iso8859-15 ,\
-Misc-SimSun-medium-I-normal -- 0-0-0-0-c-0-iso10646-1 ,\
-*-Helvetica-medium-o-normal --*-*-*-*-*-*-*-*,\
-*-Gulim-medium-o-normal -- *-ksc5601.1987-0 ,\
-*-Clearlyu-medium-r-normal -- *-iso10646-1 ,\
-*-Fixed-medium-r-normal --*-*-*-*-*-*-*-*,\
-Kaist-iyagi-bold-r-normal -- *-johab-1 ,\
-*-Song ti-medium-r-normal --*-*-*-*-*-*-*-*,\
-Freetype-unitamil-medium-r-normal -- *-iso10646-tam ,\
-*-Devanagari-medium-r-normal -- *-iso10646-dev ,\
-*-Gujarati-medium-r-normal -- *-iso10646-guj ,\
-*-Gurmukhi-medium-r-normal -- *-iso10646-gur ,\
-*-Bengali-medium-r-normal -- *-iso10646-bng ,\
-*-Kannada-medium-r-normal -- *-iso10646-kan ,\
-*-Burmese-medium-r-normal -- *-iso10646-brm ,\
-*-Buginese-medium-r-normal -- *-iso10646-bgn ,\
-*-Oriya-medium-r-normal -- *-iso10646-ori ,\
-Daewoo-mincho-medium-r-normal -- *-ksc5601.1987-0"
  
Sans normal bold normal \
"-Misc-SimSun-bold-r-normal -- 0-0-0-0-c-0-gb2312.1980-0 ,\
-Misc-SimSun-bold-r-normal -- 0-0-0-0-p-0-iso8859-1 ,\
-Misc-SimSun-bold-r-normal -- 0-0-0-0-p-0-gbk-0 ,\
-Misc-SimSun-bold-r-normal -- 0-0-0-0-p-0-fcd8859-15 ,\
-Misc-SimSun-bold-r-normal -- 0-0-0-0-p-0-iso8859-15 ,\
-Misc-SimSun-bold-r-normal -- 0-0-0-0-c-0-iso10646-1 ,\
-*-Helvetica-bold-r-normal --*-*-*-*-*-*-*-*,\
-*-Gulim-bold-r-normal -- *-ksc5601.1987-0 ,\
-*-Clearlyu-medium-r-normal -- *-iso10646-1 ,\
-*-Fixed-medium-r-normal --*-*-*-*-*-*-*-*,\
-Kaist-iyagi-bold-r-normal -- *-johab-1 ,\
-*-Song ti-medium-r-normal --*-*-*-*-*-*-*-*,\
-Freetype-unitamil-medium-r-normal -- *-iso10646-tam ,\
-*-Devanagari-medium-r-normal -- *-iso10646-dev ,\
-*-Gujarati-medium-r-normal -- *-iso10646-guj ,\
-*-Gurmukhi-medium-r-normal -- *-iso10646-gur ,\
-*-Bengali-medium-r-normal -- *-iso10646-bng ,\
-*-Kannada-medium-r-normal -- *-iso10646-kan ,\
-*-Burmese-medium-r-normal -- *-iso10646-brm ,\
-*-Buginese-medium-r-normal -- *-iso10646-bgn ,\
-*-Oriya-medium-r-normal -- *-iso10646-ori ,\
-Daewoo-mincho-medium-r-normal -- *-ksc5601.1987-0"
  
Sans italic normal bold normal \
"-Misc-SimSun-bold-I-normal -- 0-0-0-0-c-0-gb2312.1980-0 ,\
-Misc-SimSun-bold-I-normal -- 0-0-0-0-p-0-iso8859-1 ,\
-Misc-SimSun-bold-I-normal -- 0-0-0-0-p-0-gbk-0 ,\
-Misc-SimSun-bold-I-normal -- 0-0-0-0-p-0-fcd8859-15 ,\
-Misc-SimSun-bold-I-normal -- 0-0-0-0-p-0-iso8859-15 ,\
-Misc
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.