What follows is the version, translated and edited, a guide on this fedoraforums.org to enable subpixel hinting with Fedora. Steps # 1, 5, 9, 10, 11, 12, 14 must be run as root. 1) Install yum-utils and rpmdevtools: yum install yum-utils rpmdevtools rpmdev-setuptree
3)
download folder ~ / rpmbuild / SOURCES
the three following patches:
freetype-2.2.1-subpixel-disable-quantization.diff , libcairo-1.2.4-lcd-cleartype-like.diff
,
libXft-2.1.8.2-lcd-cleartype-like . diff
4)
download folder ~ / rpmbuild / SRPMS the source package cairo, freetype and libXft: yumdownloader - source freetype cairo libXft 5) Download and install the dependencies to compile packages : builddep yum-1.6.4-1.fc9.src.rpm cairo-freetype-2.3.5-6.fc9.src.rpm libXft-2.1.12-5.fc9.src.rpm
6) Install just downloaded the source: rpm-i
cairo-1.6.4-1.fc9.src.rpm freetype-2.3.5-6.fc9.src.rpm libXft-2.1.12-5.fc9.src.rpm 7) Edit the SPEC file present in ~ / rpmbuild / SPECS
adding the following lines (shown in red):
cairo.spec
... buildroot:% {_tmppath} /% {name} -% {version}-root
Patch0: libcairo-1.2.4-lcd-cleartype-like.diff ...
% patch0-p1% build
...
freetype.spec
...
Patch0: freetype-2.2.1-subpixel-disable-quantization.diff
# Add-lm When linking X
dem ... % patch0
-p1 pushd% {version}-ft2demos ...
libXft.spec
Source0: ftp://ftp.x.org/pub/individual/lib/% {name} -% {version}. Tar.bz2
Patch0: libXft-2.1.8.2-lcd-cleartype-like.diff
... % patch0
-p1 # Disable static library creation by default. ...
8) Fill in the packages: rpmbuild
-bb ~ / rpmbuild / SPECS / cairo.spec
9) Exit the graphical mode: telinit 3
10) If you installed the package freetype-FreeWorld, remove it: yum remove freetype-FreeWorld
11) Install the newly created packages: rpm-Uvh - replacefiles - replacepkgs cairo-1.6.4-1.fc9.i386.rpm freetype-2.3.5-6.fc9. i386.rpm libXft-2.1.12-5.fc9.i386.rpm
12) Return to graphics mode: telinit 5
13) Configure the subpixel hinting in your desktop environment (Gnome, KDE, etc.)
14)
Edit the file / etc / yum.conf and add the line: exclude = cairo, freetype, libXft
In this way the packages are not updated with those in the standard repo (and unpatched). 15) To stay up to date on the latest version of each package, I recommend you subscribe to a mailing list fedora-package-announce
. In your mail client create a filter that deletes all mail from
fedora-package-announce@redhat.com
and object other than a banking syndicate, freetype, libXft. This will delete all messages regarding the updating of other programs, and when you do not care. Reporting bugs and suggestions are always welcome.
0 comments:
Post a Comment