There are several font setting methods in Fedora8, including "Fedora8 Chinese font setting skills". However, it is blocked and needs to be browsed by tor. This is from the source code, after reading this article, I should be familiar with the linux Font Processing. The author also provides compiled rpm packages for download. It should be said that it is still useful, but I have tried it for little effect, you need to check it out. For more information, see http://www.linuxidc.com/linux/2007-12/10158.htm.
There are several methods for font setting in Fedora 8, including "Fedora 8 Chinese font setting skills". However, it has been defended and needs to be browsed by tor. This is from the source code, after reading this article, I should be familiar with the linux Font Processing. The author also provides compiled rpm packages for download. It should be said that it is still useful, but I have tried it for little effect, you need to check it out. See http://www.linuxidc.com/Linux/2007-12/10158.htm
Another method: general edition font installation (this method seems to be widely used ):
Create a font directory and copy the font file to the Created directory.
# Mkdir-p the custom directory is generally created in the/usr/share/fonts directory.
# Cp-f font position target position
Go to the custom directory, create the fonts. scale file, and generate the font Directory Index.
# Cd/usr/share/fonts/custom
# Ttmkfdir-o fonts. scale create the fonts. scale File
# Mkfontdir generate a font Directory Index
# Fc-cache-fv update font cache Information
This method has an effect on many fonts, but there are many minor issues with the number of fonts, especially for truetype fonts like. At this time, you need to fine-tune the font:
Fontconfig font allocation method-Linux font fine-tuning-windows effect version-LinuxSir. Org and Linux font fine-tuning-Vista effect version.
I have read many articles in this regard. I have written my own learning experience on installing and using a certain black font for your reference. I also made a record for myself:
First, download a black font and install it according to the general font installation method. The most important thing is to fine-tune it. conf file to configure the font.
For the configuration method of this file, see fontconfig user manual. Translator: Conner Mo's article seems to have been translated by linuxfans.org, but the layout is really ugly, therefore, I chose the version of the linux technical backbone station with better layout. the configuration syntax and parameter description of the conf file are very detailed. Use local. conf can be used to replace the font. For example, if a font has a good Chinese display effect, but the English is ugly, you can introduce your favorite English font to replace the original English font; you can enable the system to automatically render and fine-tune different types of fonts when calling different fonts. For example, there are two types of fonts, one needs to be blurred, and the other can be set separately, it is very flexible and highly targeted, and can be accurate to the font size or other conforming conditions.
If you want to achieve better and more accurate results, you need to thoroughly study this document.
For specific settings of a black font, see fontconfig font configuration-Linux font fine-tuning-windows effect edition-LinuxSir. org and Linux font fine-tuning-Vista effect edition will have more benefits!
If you are too lazy, you can directly use my local. conf file content, but I am also a half-hanging level, so it is not local. the conf file is in charge, but if you have any questions, you can ask IRC. The brothers there are very enthusiastic:
Local. conf file:
4. libXft: optimization of the Embolden Algorithm for Dot Matrix Fonts
Download the latest libXft source package, such as libXft-2.1.12-3.fc8.src.rpm (http://download.fedora.RedHat.com/pub/fedora/linux/releases/8/Fedora/source/SRPMS/libXft-2.1.12-3.fc8.src.rpm), from Fedora's official FTP or HTTP server ). Download the patch provided by sunmoon1997, which optimizes the dot matrix font "pseudo-bold" algorithm under certain conditions. Modify libXft. spec to include this patch. Then re-compile and install the RPM package:
# Cd/usr/src/redhat/SPECS # rpmbuild-ba -- define = 'dist. fcz8 'libxft. spec # cd .. /RPMS/i386 # rpm-fvl libXft *. rpm
Download (from source code compilation: rpmbuild -- rebuild -- define = 'dist. zfc8' libXft-2.1.12-3.zfc8.src.rpm) (http://sandajian.googlepages.com/libXft-2.1.12-3.zfc8.src.rpm ):
LibXft-2.1.12-3.zfc8.i386.rpm (http://sandajian.googlepages.com/libXft-2.1.12-3.zfc8.i386.rpm)
LibXft-devel-2.1.12-3.zfc8.i386.rpm (http://sandajian.googlepages.com/libXft-devel-2.1.12-3.zfc8.i386.rpm)
5. Install Chinese Fonts
Copy all TrueType FONTS in the C: \ Windows \ FONTS directory of WINDOWS 2000/XP (the extension is. ttf ,. ttc ,. TTF files) to a directory under your Fedora (for example,/home/joe/fonts.
6. Add a font configuration file
Copy the font profile f8-local.conf (http://sandajian.googlepages.com/f8-local.conf) to/etc/fonts/local. conf file. Note that you should change the line (red line) of the Windows TrueType font directory to the directory you used in the previous step:
/Home/joe/fonts Then run the following command:
# Fc-cache/home/joe/fonts
7. Modify the Chinese font underline position of Firefox
In Firefox's support for Chinese fonts, there has always been a problem that Chinese characters are too close to Chinese characters. Fortunately, someone wrote a patch for Firefox to solve this problem when Firefox uses the Pango engine. Fortunately, Fedora uses the Pango engine by default. Interested friends can download this patch: mozilla-1.5-pango-underline.patch.bz2 (http://sandajian.googlepages.com/mozilla-1.5-pango-underline.patch.bz2), recompile Firefox in Fedora. However, since the compilation of Firefox is a relatively long process, impatient friends can download I compiled the module: libgfx_gtk.so (http://sandajian.googlepages.com/libgfx_gtk.so), and then copy it to the system's Firefox directory, replace the original module:
# Cp libgfx_gtk.so/usr/lib/firefox-2.0.0.8/components/# chcon system_u: object_r: lib_t/usr/lib/firefox-2.0.0.8/components/libgfx_gtk.so the above 2nd commands are for users who use SELinux; for users who have automatically upgraded, the Firefox directory is firefox-2.0.0.9 /.
8. log out, log on again, and set the GNOME font.
Run the system-preference-perception-font program and select "secondary pixel smoothing (LCD )".
OK! Now your Fedora has a beautiful Chinese font!