Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
About the LCD ClearType patch
Re: About the LCD ClearType patch
There are new versions of cairo packages in Debian unstable repositories - 1.8.8-2. I've already applied patch and uploaded new version (1.8.8-2.1) on server. Packages for AMD64 are here: http://debian.hadret.com/
Enjoy! (:
[EDITED]
There are new versions of freetype packages in Debian unstable repositories as well - 2.3.9-5. Patched packages - 2.3.9-5.1 - are already on my server.
Enjoy! (:
[EDITED]
There are new versions of freetype packages in Debian unstable repositories as well - 2.3.9-5. Patched packages - 2.3.9-5.1 - are already on my server.
Re: About the LCD ClearType patch
Packages with David Turner's patches for i386 architecture can be found here:
http://sites.google.com/site/emikaadeo/home/packages
http://sites.google.com/site/emikaadeo/home/packages
Debian testing/unstable + KDE4
Re: About the LCD ClearType patch
There are some new packages versions. I've already checked freetype and my conclusion is -- there's no longer need to patch this package. Here's why: David Turner's patch for freetype changes one file ../src/autofit/aflatin.c, here is patch:
As you may see, it doesn't change very much. What's more important in version 2.3.11 of freetype, those lines look like this:
The only change is to make "mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD" look like "mode == FT_RENDER_MODE_MONO" and "mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V" look like "mode == FT_RENDER_MODE_MONO", that's all. For me fonts with this package from official Debian repository still look fine, just as if patch was applied.
I must check if patches for xft are needed, but I may guess they are not. I've got 2.1.14 version of libxft2 on my system without David Turner's patches and fonts still look fine. The only package on my system at the moment that is patched is cairo (libcairo2 1.8.8 ). I didn't checked yet if version from experimental repository (1.9.4) need David Turner's patch or not. It would be great if not. Debian would have very nice looking fonts out of the box. I'll let you know when I check xft patch and try out cairo package from experimental repository (:
Code: Select all
* We snap the width of vertical stems for the monochrome and
* horizontal LCD rendering targets only.
*/
- if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD )
+ if ( mode == FT_RENDER_MODE_MONO )
other_flags |= AF_LATIN_HINTS_HORZ_SNAP;
/*
* We snap the width of horizontal stems for the monochrome and
* vertical LCD rendering targets only.
*/
- if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V )
+ if ( mode == FT_RENDER_MODE_MONO )
other_flags |= AF_LATIN_HINTS_VERT_SNAP;
/*
Code: Select all
* We snap the width of vertical stems for the monochrome and
* horizontal LCD rendering targets only.
*/
if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD )
other_flags |= AF_LATIN_HINTS_HORZ_SNAP;
/*
* We snap the width of horizontal stems for the monochrome and
* vertical LCD rendering targets only.
*/
if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V )
other_flags |= AF_LATIN_HINTS_VERT_SNAP;
/*
I must check if patches for xft are needed, but I may guess they are not. I've got 2.1.14 version of libxft2 on my system without David Turner's patches and fonts still look fine. The only package on my system at the moment that is patched is cairo (libcairo2 1.8.8 ). I didn't checked yet if version from experimental repository (1.9.4) need David Turner's patch or not. It would be great if not. Debian would have very nice looking fonts out of the box. I'll let you know when I check xft patch and try out cairo package from experimental repository (:
Re: About the LCD ClearType patch
Thank you for make these packages public, they rock!Hadret wrote:There are new versions of cairo packages in Debian unstable repositories - 1.8.8-2. I've already applied patch and uploaded new version (1.8.8-2.1) on server. Packages for AMD64 are here: http://debian.hadret.com/
Enjoy! (:
[EDITED]
There are new versions of freetype packages in Debian unstable repositories as well - 2.3.9-5. Patched packages - 2.3.9-5.1 - are already on my server.
Please do update your packages with the official repository, create a debian source would be even better!
Sorry for being so greedy
Re: About the LCD ClearType patch
libcairo2-1.9.4 still needs the patch.Hadret wrote:I didn't checked yet if version from experimental repository (1.9.4) need David Turner's patch or not. It would be great if not.
Can you attach the patch you applied to libcairo? Is it from here?
Re: About the LCD ClearType patch
True (:ganquan wrote:libcairo2-1.9.4 still needs the patch.
Yes, that's the one. I haven't try if it is working for libcairo2 from experimental.ganquan wrote:Can you attach the patch you applied to libcairo? Is it from here?
Re: About the LCD ClearType patch
New libcairo2 update (1.8.10-3) in Debian Unstable. Patched packages (1.8.10-3.1) for amd64 are already available here: http://debian.hadret.com/ (:
Re: About the LCD ClearType patch
Yes yes yes!Hadret wrote:New libcairo2 update (1.8.10-3) in Debian Unstable. Patched packages (1.8.10-3.1) for amd64 are already available here: http://debian.hadret.com/ (:
Re: About the LCD ClearType patch
1) Moved libcairo2 packages to http://debian.hadret.com/libcairo2
2) Added i386 arch*.
* - it's experimental as it's my first packages built on amd64 for i386 arch using pbuilder.
2) Added i386 arch*.
* - it's experimental as it's my first packages built on amd64 for i386 arch using pbuilder.
Re: About the LCD ClearType patch
From now on, there's repository for amd64 and i386 with patched cairo packages: http://hadret.rootnode.net/ (:
- gradinaruvasile
- Posts: 935
- Joined: 2010-01-31 22:03
- Location: Cluj, Romania
- Contact:
Re: About the LCD ClearType patch
Thanks, the system fonts look really good now.
BTW i use Squeeze, i just added the repo, upgraded the packages, killed nautilus & gnome-panel, logged out of gnome-terminals (and logged back in) and everything is smooth now.
Hope it wont break anything in the long run...
PS. What are the odds of these packages making it in the main repos?
BTW i use Squeeze, i just added the repo, upgraded the packages, killed nautilus & gnome-panel, logged out of gnome-terminals (and logged back in) and everything is smooth now.
Hope it wont break anything in the long run...
PS. What are the odds of these packages making it in the main repos?
Re: About the LCD ClearType patch
It shouldn't. These are normal cairo packages with additional patch. You can look here: http://hadret.rootnode.net/debian/dists ... ian.tar.gz, patch is in debian/patches and it's called 02_lcd-cleartype.patch (:gradinaruvasile wrote:Hope it wont break anything in the long run...
AFAIR there were some license obstacles, but I can't recall any details...gradinaruvasile wrote:PS. What are the odds of these packages making it in the main repos?
Re: About the LCD ClearType patch
For the most recent informations about changes in my PPA (like adding, removing and updating packages) check out my Hadret's.Posterous (:
- gradinaruvasile
- Posts: 935
- Joined: 2010-01-31 22:03
- Location: Cluj, Romania
- Contact:
Re: About the LCD ClearType patch
You should post a thread about this in the how-to section too. I think there are many Debian users who want hassle-free smooth fonts.
And some documentation would be useful there - mostly about setting the system fonts (linking the /etc/fonts/conf.d/ /etc/fonts/conf.avail/ may not be not straightforward for casual users).
And some documentation would be useful there - mostly about setting the system fonts (linking the /etc/fonts/conf.d/ /etc/fonts/conf.avail/ may not be not straightforward for casual users).
Re: About the LCD ClearType patch
Hi guys, I have good news.
Apparently there is no need to patch cairo anymore in testing. I've been conducting a few experiments and I can see no difference between the normal and the patched cairo. You don't even need Ubuntu fontconfig files!
I have to change the following configuration files:
~/.fonts.conf
~/.Xresources
Now replace the patched libcairo2 with the normal Debian testing version, remove the symlinks in /etc/fonts/conf.d/ for the Ubuntu fontconfig files and restart GDM/XDM or reboot.
See for yourself! Great fonts!
Regards
Apparently there is no need to patch cairo anymore in testing. I've been conducting a few experiments and I can see no difference between the normal and the patched cairo. You don't even need Ubuntu fontconfig files!
I have to change the following configuration files:
~/.fonts.conf
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
These settings MUST be reflected in ~/.Xresources
-->
<match target="font" >
<edit mode="assign" name="rgba" >
<const>none</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
</match>
<!--
to debug, "export FC_DEBUG=1" on a
terminal and launch gedit/lxpanel/whatever
-->
</fontconfig>
Code: Select all
# These settings MUST be reflected in ~/.fonts.conf
Xft.hintstyle: hintslight
Xft.rgba: none
# do not mess with any of the ones below, should be set auto by fontconfig
#Xft.antialias: 0
#Xft.hinting: 1
#Xft.lcdfilter: lcddefault
#Xft.autohint: 0
#Xft.dpi: 100 - not needed, hintslight + rgba.none works great with 96 dpi
# see http://www.freedesktop.org/wiki/ScreenFontSettings
See for yourself! Great fonts!
Regards
- gradinaruvasile
- Posts: 935
- Joined: 2010-01-31 22:03
- Location: Cluj, Romania
- Contact:
Re: About the LCD ClearType patch
Really? Either it works for me or am I completely blind. But I think its the first one.
Would you mind posting a before/after screenshot?
Would you mind posting a before/after screenshot?
-
- Posts: 2
- Joined: 2010-05-21 07:11
Re: About the LCD ClearType patch
Really no need to patch cairo? I hope it be good news! I'll try it soon!
-
- Posts: 2
- Joined: 2010-05-21 07:11
Re: About the LCD ClearType patch
I did. And fonts were awful, I still need patched cairo.careta wrote:See for yourself! Great fonts!
The thing is, I'm not a specialist. I'm just using patched version of cairo and suggestions from David Turner's website. That's all, but it's working for me (:gradinaruvasile wrote:You should post a thread about this in the how-to section too. I think there are many Debian users who want hassle-free smooth fonts.
And some documentation would be useful there - mostly about setting the system fonts (linking the /etc/fonts/conf.d/ /etc/fonts/conf.avail/ may not be not straightforward for casual users).