About the LCD ClearType patch

If none of the more specific forums is the right place to ask

Re: About the LCD ClearType patch

Postby headlesshorseman » 2009-05-13 01:59

Ubuntu's fonts look much more smooth on my HP w1907. This monitor tends to pick up on the good, the bad, and the ugly of fonts. Debian's always tend to to render poorly until patched.

Has anyone managed to get nice looking fonts in Debian lately?
headlesshorseman
 
Posts: 4
Joined: 2008-09-28 04:43

Re: About the LCD ClearType patch

Postby EDzior » 2009-05-20 11:31

helai wrote:But after I download the sources from libfreetype6 ,i 'd happy to find one fold named patch under the debian folder,it includes
freetype-2.1.7-backwards.compat.patch
enable-full-bytecode-interpreter
freetype-bdflib-large-encodings.patch
enable-subpixel-rendering.patch
freetype-bytecode-interpreter.patch

so whether it means that debian already applied these patched to the released package of libfreetype6.is it right?

But for libcairo2 and libxft2 , I can't confirm it from their sources .

who can help me to clarify it

Thanks,
Helai


Hi. I will try to get this simple and straight.

1. Freetype - subpixel rendering is already enabled by default in Debian (testing/unstable)
2. Xft - support for subpixel rendering is already supported by upstream, no patches needed (testing/unstable)
3. Cairo - subpixel rendering is not enabled by default in Debian (testing/unstable) patch needed
4. Fontconfig - subpixel rendering is supported in Debian but if you want to make effects like in Ubuntu you have to apply their patches (in my opinion).

Now, Qt/KDE applications uses Xft for subpixel rendering, so if you're using Debian testing/unstable (KDE 4.2.x/Qt 4.5.x) you don't need to patch anything.
GTK+/Gnome applications uses Cairo for subpixel rendering, so if you want this rendering you need to patch Cairo (with Ubuntu patch for example)

I'm using Debian testing/unstable (KDE 4.2.x/Qt 4.5.x) with subpixel rendering but I'm also using some GTK+ applications (ex. Iceweasel) so:
1. I've build fontconfig packages from Ubuntu Jaunty sources
2. I've patched Cairo packages for subpixel rendering (GTK+ applications)

If you want to try these packages you can find them here: http://sites.google.com/site/emikaadeo/home/packages
They're for Debian unstable (i386), but should also work on testing.

Regards.
Debian testing/unstable + KDE4
User avatar
EDzior
 
Posts: 19
Joined: 2007-10-28 11:17

Re: About the LCD ClearType patch

Postby headlesshorseman » 2009-05-20 13:47

Hi. I will try to get this simple and straight.

1. Freetype - subpixel rendering is already enabled by default in Debian (testing/unstable)
2. Xft - support for subpixel rendering is already supported by upstream, no patches needed (testing/unstable)
3. Cairo - subpixel rendering is not enabled by default in Debian (testing/unstable) patch needed
4. Fontconfig - subpixel rendering is supported in Debian but if you want to make effects like in Ubuntu you have to apply their patches (in my opinion).

Now, Qt/KDE applications uses Xft for subpixel rendering, so if you're using Debian testing/unstable (KDE 4.2.x/Qt 4.5.x) you don't need to patch anything.
GTK+/Gnome applications uses Cairo for subpixel rendering, so if you want this rendering you need to patch Cairo (with Ubuntu patch for example)

I'm using Debian testing/unstable (KDE 4.2.x/Qt 4.5.x) with subpixel rendering but I'm also using some GTK+ applications (ex. Iceweasel) so:
1. I've build fontconfig packages from Ubuntu Jaunty sources
2. I've patched Cairo packages for subpixel rendering (GTK+ applications)

If you want to try these packages you can find them here: http://sites.google.com/site/emikaadeo/home/packages
They're for Debian unstable (i386), but should also work on testing.


These patches don't work in testing because libxcb-render-util0 is at 0.3.3-2 and your packes require 0.3.4
headlesshorseman
 
Posts: 4
Joined: 2008-09-28 04:43

Re: About the LCD ClearType patch

Postby EDzior » 2009-05-20 17:37

headlesshorseman wrote:These patches don't work in testing because libxcb-render-util0 is at 0.3.3-2 and your packes require 0.3.4

I've checked this and you're right :)
So, for now, these packages are working only in unstable (i386) or mixing Debian testing/unstable.
Debian testing/unstable + KDE4
User avatar
EDzior
 
Posts: 19
Joined: 2007-10-28 11:17

Re: About the LCD ClearType patch

Postby headlesshorseman » 2009-05-20 20:20

I've checked this and you're right :)
So, for now, these packages are working only in unstable (i386) or mixing Debian testing/unstable.


BUT, those fonts do look beautiful in Unstable! I'd love to know how you built these since there's always a gap in between big updates where there aren't packages available.

Thanks!
headlesshorseman
 
Posts: 4
Joined: 2008-09-28 04:43

Re: About the LCD ClearType patch

Postby matino » 2009-05-22 09:21

EDzior wrote:Hi. I will try to get this simple and straight.

1. Freetype - subpixel rendering is already enabled by default in Debian (testing/unstable)
2. Xft - support for subpixel rendering is already supported by upstream, no patches needed (testing/unstable)
3. Cairo - subpixel rendering is not enabled by default in Debian (testing/unstable) patch needed
4. Fontconfig - subpixel rendering is supported in Debian but if you want to make effects like in Ubuntu you have to apply their patches (in my opinion).

Now, Qt/KDE applications uses Xft for subpixel rendering, so if you're using Debian testing/unstable (KDE 4.2.x/Qt 4.5.x) you don't need to patch anything.
GTK+/Gnome applications uses Cairo for subpixel rendering, so if you want this rendering you need to patch Cairo (with Ubuntu patch for example)

I'm using Debian testing/unstable (KDE 4.2.x/Qt 4.5.x) with subpixel rendering but I'm also using some GTK+ applications (ex. Iceweasel) so:
1. I've build fontconfig packages from Ubuntu Jaunty sources
2. I've patched Cairo packages for subpixel rendering (GTK+ applications)

If you want to try these packages you can find them here: http://sites.google.com/site/emikaadeo/home/packages
They're for Debian unstable (i386), but should also work on testing.

Regards.


It's briliant man, thanks a lot for sharing ! :D
Debian Sid/Experimental with KDE 4.2
User avatar
matino
 
Posts: 79
Joined: 2007-02-24 17:03

Re: About the LCD ClearType patch

Postby Hadret » 2009-05-22 09:41

If anybody need amd64 packages with David Turner's patches applied, just let me know. They apply and build just fine, only in fontconfig I had to use option to ignore gpg signing (there were some error with it, I don't know why and if it's still existing).
#404378
User avatar
Hadret
 
Posts: 354
Joined: 2007-07-19 13:04
Location: Wroclaw, Poland

Re: About the LCD ClearType patch

Postby ootput » 2009-05-24 06:38

Hadret wrote:If anybody need amd64 packages with David Turner's patches applied, just let me know. They apply and build just fine, only in fontconfig I had to use option to ignore gpg signing (there were some error with it, I don't know why and if it's still existing).


Sure mate! If you can outline how you built them too, that'd be awesome!.. as I'm sure these will be updated quite frequently in sid.
Image
User avatar
ootput
 
Posts: 4
Joined: 2009-05-16 22:55

Re: About the LCD ClearType patch

Postby EDzior » 2009-05-24 07:58

Hadret wrote:If anybody need amd64 packages with David Turner's patches applied, just let me know. They apply and build just fine, only in fontconfig I had to use option to ignore gpg signing (there were some error with it, I don't know why and if it's still existing).

I might be wrong but I don't think that this is a good idea to apply those patches. They're for older versions of libraries (ex. cairo-1.2.4)
There were a lot of code changing from that time. So even if they apply to sources, they can break ABI/API.
Debian testing/unstable + KDE4
User avatar
EDzior
 
Posts: 19
Joined: 2007-10-28 11:17

Re: About the LCD ClearType patch

Postby Hadret » 2009-05-29 09:26

ootput wrote:Sure mate! If you can outline how you built them too, that'd be awesome!.. as I'm sure these will be updated quite frequently in sid.


I will, only when I get some free time and I will be sure, that those packages are working fine (:

EDzior wrote:I might be wrong but I don't think that this is a good idea to apply those patches. They're for older versions of libraries (ex. cairo-1.2.4)
There were a lot of code changing from that time. So even if they apply to sources, they can break ABI/API.


I might be wrong as well, but: patches applied without issue (there were only informations, that some hunks were in different lines than in previous versions of), packages compiled and installed without any problems, and I'm using those packages for a while now and I haven't got any problems with them. Quite the contrary - I feel much improvement of my fonts (:

BUT, I haven't got knowledge if they can break a thing or not, so if want to use them, use them on your own responsibility! (:

Here they are: http://hadret.com/debian/

As I said previously, they're only for amd64 arch. Here are packages I've got installed on my system:

Code: Select all
[~]$ dl libfreetype6
ii  libfreetype6                         2.3.9-4.2                    FreeType 2 font engine, shared library files
ii  libfreetype6-dev                     2.3.9-4.2                    FreeType 2 font engine, development files
[~]$ dl libxft2
ii  libxft2                              2.1.13-3.1                   FreeType-based font drawing library for X
[~]$ dl libcairo2
ii  libcairo2                            1.8.6-2.1                    The Cairo 2D vector graphics library
ii  libcairo2-dev                        1.8.6-2.1                    Development files for the Cairo 2D graphics library


Here's a screenshot:

Image

My configuration is: resolution 1680x1050 and 99 DPI, LCD, slight, RGB.

You cant find here (http://hadret.com/debian/) also Rhythmbox packages with New Style Last.fm Scrobbler Patch, but there's no yet version for 0.12.1 :(
#404378
User avatar
Hadret
 
Posts: 354
Joined: 2007-07-19 13:04
Location: Wroclaw, Poland

Re: About the LCD ClearType patch

Postby EDzior » 2009-05-29 10:44

If it's working without a hitch then is ok ;)
Here's my screenshot:
Resolution 1280x800, 96 dpi, LCD, slight, RGB
Image
Debian testing/unstable + KDE4
User avatar
EDzior
 
Posts: 19
Joined: 2007-10-28 11:17

Re: About the LCD ClearType patch

Postby Hadret » 2009-05-29 11:03

Glad they're working fine for you (:

P.S. They look darker on your shot :o
#404378
User avatar
Hadret
 
Posts: 354
Joined: 2007-07-19 13:04
Location: Wroclaw, Poland

Re: About the LCD ClearType patch

Postby phoneservice » 2009-06-08 07:33

tks. yestoday i found this pb, so done..
phoneservice
 
Posts: 3
Joined: 2009-06-08 07:30

Re: About the LCD ClearType patch

Postby sickie » 2009-06-08 21:12

Hello people (:
I haven't patched my testing with GNOME system and actually don't need to. I really like how my fonts are rendered (Droid fonts); is this patching/font issue relevant only to LCD screens? Because I have a CTR, 21", 1600x1200 resolution. Anyway, here's a screenshot:
Image
It wasn't my decision, I was a victim of circumstance
It wasn't right, I knew I never had a chance
My anger grew so ****** large it almost overcame
Pieces of a machine called education I plea for peace
-Operation Ivy

Revolution is my boyfriend!
User avatar
sickie
 
Posts: 483
Joined: 2009-06-08 07:10
Location: The pig farm

Re: About the LCD ClearType patch

Postby namaku0 » 2009-06-12 17:14

Hi, just want to let you know.

I had the chance to install Debian again (squeeze/testing) so
I tried to download these packages from Ubuntu's (jaunty) repo:
    - fontconfig_2.6.0-1ubuntu12_i386.deb
    - libcairo2_1.8.6-1ubuntu2_i386.deb
    - libdirectfb-1.0-0_1.0.1-11ubuntu1_i386.deb
    - libfreetype6_2.3.9-4ubuntu0.1_i386.deb
    - libxft2_2.1.13-3ubuntu1_i386.deb
and install all of them on my Debian. It works, I got better
font rendering. I don't know if this will break something
somewhere, but no problem so far.

EDIT: forgot to mention that I installed fontconfig-config_2.6.0-1ubuntu12_all.deb
too and apparently causing broken dependencies (but can be ignored).

EDIT2: If you don't want to install Ubuntu's version of fontconfig-config
above. Create these symbolic links on /etc/fonts/conf.d/* to the
*.conf files available on /etc/fonts/conf.avail/*
    - 10-antialias.conf
    - 10-hinting.conf
    - 10-hinting-slight.conf
    - 11-lcd-filter-lcddefault.conf
    - 53-monospace-lcd-filter.conf

EDIT3: After a couple of tests, actually all you need from Ubuntu are
libcairo2 & libdirectfb and everything on EDIT2.
namaku0
 
Posts: 4
Joined: 2009-05-03 07:58

PreviousNext

Return to General Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable