clear-type on centos5

I have pre-built RPMs for CentOS 5, so for this OS just attach to the vitki.net repository and install RPMs:

rpm -i vitki-net-release-5-3.el5.noarch.rpm
yum install freetype cairo libXft
yum install gedit gedit-plugins

Otherwise, you have to compile yourself.

Get the patches from http://quanli.googlepages.com/davidt...esfordebiansid (or google for "david turner subpixel"):

Get the SRPMS http://mirror.centos.org/centos/5/os/SRPMS/
cairo-1.2.4-2.el5.src.rpm
freetype-2.2.1-19.el5.src.rpm
libXft-2.1.10-1.1.src.rpm

rpm -i *.src.rpm
EDIT THE SPEC FILES TO APPLY THE PATCHES

cairo.spec

...
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Patch0: libcairo-1.2.4-lcd-cleartype-like.diff
...
%prep
%setup -q
%patch0 -p1
%build
...

Note: Enabling bytecode interpreter not necessary, but fun to see windows fonts.

freetype.spec

# Disables patented bytecode interpreter.  Setting to 0 enables
# the bytecode interpreter.
%define without_bytecode_interpreter    0
...
Source1: freetype-doc-%{version}.tar.bz2
Source2: ft2demos-%{version}.tar.bz2
...
Patch0: freetype-2.2.1-subpixel-disable-quantization.diff
# Add -lm when linking X demos
Patch5: ft2demos-2.1.9-mathlib.patch
Patch20:  freetype-2.1.10-enable-ft2-bci.patch
...
%prep
%setup -q -b 1 -a 2
%patch0 -p1
pushd ft2demos-%{version}
%patch5 -p1 -b .mathlib
popd
...

libXft.spec

...
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2
Patch0: libxft-2.1.8.2-lcd-cleartype-like.diff
...
%prep
%setup -q
%patch0 -p1
# Disable static library creation by default.
%define with_static 0
...

BUILD THE RPMS

rpmbuild -bb ~/rpmbuild/SPECS/freetype.spec
rpmbuild -bb ~/rpmbuild/SPECS/libXft.spec
rpmbuild -bb ~/rpmbuild/SPECS/cairo.spec


GNOME
Subpixel smoothing (LCDs)

Subpixel order: RGB

Вложения

Комментарии

Отправить комментарий

Содержание этого поля является приватным и не предназначено к показу.
To prevent automated spam submissions leave this field empty.