Fedora8 Chinese font setting skills

Source: Internet
Author: User
Tags cairo rpmbuild
1. During installation of Fedora8, you must note that you must select the Simplified Chinese installation interface so that the Chinese-related software (such as the input method) and Chinese Language Pack will be installed by default. Otherwise, it will be complicated to manually install these items after installation. In addition, if you want to compile these software packages in person, you should select "Software Development" when selecting the software package during system installation, otherwise, you cannot compile the RPM package in the following steps. However, this article provides the compiled RPM package, so you do not want to compile your own friends can not install the development package.

1. Install Fedora8
During installation, You must select the Simplified Chinese installation interface, so that the Chinese-related software (such as the input method) and Chinese language packs are installed by default. Otherwise, it will be complicated to manually install these items after installation.

In addition, if you want to compile these software packages in person, you should select "Software Development" when selecting the software package during system installation, otherwise, you cannot compile the RPM package in the following steps. However, this article provides the compiled RPM package, so you do not want to compile your own friends can not install the development package.


After the installation is complete, I usually disable SELinux when I configure the system after the first boot. This is because it is unnecessary for general personal desktop systems, more importantly, it will cause trouble for the running of some software manually installed in the future (for example, some dynamic libraries (such as flash plug-ins) that are not installed with RPM packages, you must use the complex chcon command to change the security attributes before loading ).

The following describes how to use yum to install all official upgrade packages. We recommend that you modify the/etc/yum. conf file (Red Line) before the upgrade ):

[Main]
Cachedir =/home/joe/fc8/yum
Keepcache = 1
Debuglevel = 2 ......

In this way, yum will not delete the downloaded RPM package, but keep it in the directory of another partition specified by cachedir. When you reinstall Fedora next time, you don't have to download these files again.

After the installation and upgrade, we will begin to modify some software packages in Chinese. All the following operations must be performed with the root user login.


2. FreeType: Activate bytecode interpreter and subpixel rendering.

Download the latest FreeType source package, such as ftp://download.fedora.RedHat.com (http://download.fedora.redhat.com), from Fedora's official FTP (freetype-2.3.5-3.fc8.src.rpm/) or HTTP (http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Fedora/source/SRPMS/freetype-2.3.5-3.fc8.src.rpm/) server ). Re-compile and install the RPM package (note that the options for activating bytecode interpreter and subpixel rendering must be added during compilation ):

# Rpmbuild -- rebuild -- with bytecode_interpreter -- with subpixel_rendering \ -- define = 'dist. zfc8' freetype-2.3.5-3.fc8.src.rpm
# Cd/usr/src/redhat/RPMS/i386
# Rpm-fvl freetype *. rpm

Download:

Freetype-2.3.5-3.zfc8.i386.rpm (http://sandajian.googlepages.com/freetype-2.3.5-3.zfc8.i386.rpm)

Freetype-devel-2.3.5-3.zfc8.i386.rpm (http://sandajian.googlepages.com/freetype-devel-2.3.5-3.zfc8.i386.rpm)

Freetype-demos-2.3.5-3.zfc8.i386.rpm (http://sandajian.googlepages.com/freetype-demos-2.3.5-3.zfc8.i386.rpm)

3. Cairo: optimization of the Embolden Algorithm for Dot Matrix Fonts
Download the latest Cairo source packages, such as cairo-1.4.10-2.fc8.src.rpm (http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Fedora/source/SRPMS/cairo-1.4.10-2.fc8.src.rpm), from Fedora's official FTP or HTTP server ). Download the sunmoon1997 patch (http://sandajian.googlepages.com/cairo-1.4.10-fake-bitmap-glyph.patch), which optimizes the dot matrix font "pseudo-bold" algorithm under specific conditions. Modify cairo. spec to include this patch. Then re-compile and install the RPM package:

# Cd/usr/src/redhat/SPECS # rpmbuild-ba -- define = 'dist. zfc8 'cairo. spec
# Cd ../RPMS/i386
# Rpm-fvl cairo *. rpm

Download (from source code compilation: rpmbuild -- rebuild -- define = 'dist. zfc8' cairo-1.4.10-2.zfc8.src.rpm) (http://sandajian.googlepages.com/cairo-1.4.10-2.zfc8.src.rpm ):

Cairo-1.4.10-2.zfc8.i386.rpm (http://sandajian.googlepages.com/cairo-1.4.10-2.zfc8.i386.rpm)

Cairo-devel-1.4.10-2.zfc8.i386.rpm (http://sandajian.googlepages.com/cairo-devel-1.4.10-2.zfc8.i386.rpm)

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.