Debian7 font rendering and infinality installation Configuration

Source: Internet
Author: User
Tags cairo

Cairo In debian 7 does not need to be manually patched to support secondary pixel smoothing and anti-aliasing. The days for manually patching cairo are gone forever ,.

However, debian7 is installed by default, and the configuration of these features is not enabled in font config. You still need to configure them manually. Why not enable these features by default?

The configuration of font config is stored in/etc/fonts/conf. d. All the files below point to the symbolic link file in/etc/fonts/conf. avail.

# cd /etc/fonts/conf.d#  ln -s ../conf.avail/10-antialias.conf  .#  ln -s ../conf.avail/10-hinting.conf .#  ln -s ../conf.avail/10-hinting-slight.conf  .#  ln -s ../conf.avail/10-sub-pixel-rgb.conf  .#  ln -s ../conf.avail/11-lcd-filter-lcddefault.conf . 

After creating these soft links, log out and log on again. You will find that the font display is much better, just like ubuntu.

Infinality provides freetype patches to provide the best font rendering effect. I have been using mac for more than three years (and I am still using it). The mac font rendering is the best, followed by linux, and the worst is windows, the rendering effects of many fonts in windows (I currently use Windows 7) can only be described as miserable. If you are using fedora, you may install the patched freetype package directly from the infinality official website. Currently, Debian freetype does not include these patches, but a Chinese brother has built a project on github to generate a deb package for debian.

Clone the project first

$ git clone https://github.com/chenxiaolong/Debian-Packages.git$ cd Debian-Packages/
Next, install the tools required to generate deb.
$ sudo apt-get install build-essential devscripts

Next, check the other Dependencies required to build these deb instances.

$ cd freetype-infinality/$ dpkg-checkbuilddeps$ cd ../fontconfig-infinality/$ dpkg-checkbuilddeps
If all dependencies are met, dpkg-checkbuilddeps does not have any output. Otherwise, the system will output the missing package name. You must install these packages to continue.

OK. All dependencies are ready. Now start packaging.

$ cd ../freetype-infinality/$ ./build.sh$ cd ../fontconfig-infinality/$ ./build.sh
An error occurred while packaging freetype-infinality,
Now running lintian...N: 3 tags overridden (1 error, 2 warnings)
However, the installation was successful.

Finally, we need to copy the. deb files in these two directories to a directory for installation. I tried to install them separately and found that they could not be installed and they were mutually dependent.

$ Sudo dpkg-I *. deb

After the installation is successful, you have to set it up. This is linux, and many things need to be configured manually.
$ Cd/etc/fonts/infinality $ sudo./infctl. sh setstyle [your favorite style]
Available styles include infinality, linux, osx, osx2, win7, win98, and winxp.

Restart to see the effect ,:).

Http://www.infinality.net/files/font.html this is infinality font test page, it is recommended that you test before installing infinality, cut a graph, install and then test, compare the display effect before and after. After infinality is installed, Some fonts in linux have almost the same rendering effect as mac.

References:

Http://www.neowin.net/forum/topic/1153268-installing-infinality-freetypefontconfig-in-debian-7/

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.