Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd April 2008, 10:33 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
Ubuntu Hardy's LCD sub-pixel font rendering in Fedora 9

Hi, following on in spirit from cleartype-like fonts, here is a collection of RPMs to port Ubuntu Hardy's excellent LCD sub-pixel font rendering to Fedora 9

Here are SRPMs and 32 & 64-bit binaries - all 5 of pixman, freetype, fontconfig, libXft & cairo are needed.

x86_64 users will also want the i386 packages if they use 32-bit libraries such as Wine.

If you wish to compile from source: Use rpmbuild to prepare. Install rpmdevtools:
Code:
yum install rpmdevtools

rpmdev-setuptree (as non-root user)
The commands I used, in strict order, were (using su/sudo for the rpm installations):

Code:
cd ~/rpmbuild/SPECS

rpmbuild -ba pixman.spec
rpm -Uvh --force ../RPMS/i386/pixman-0.11.8.20080826-1.fc9.i386.rpm ../RPMS/i386/pixman-devel-0.11.8.20080826-1.fc9.i386.rpm

rpmbuild -ba freetype.spec
rpm -Uvh --force ../RPMS/i386/freetype-2.3.7-2.fc9.i386.rpm ../RPMS/i386/freetype-demos-2.3.7-2.fc9.i386.rpm ../RPMS/i386/freetype-devel-2.3.7-2.fc9.i386.rpm

QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -ba fontconfig.spec
rpm -Uvh --force ../RPMS/i386/fontconfig-2.6.0-1.fc9.i386.rpm ../RPMS/i386/fontconfig-devel-2.6.0-1.fc9.i386.rpm

rpmbuild -ba libXft.spec
rpm -Uvh --force ../RPMS/i386/libXft-2.1.12-6.fc9.i386.rpm ../RPMS/i386/libXft-devel-2.1.12-6.fc9.i386.rpm

rpmbuild -ba cairo.spec
rpm -Uvh --force ../RPMS/i386/cairo-1.7.4.20080826.fc9.i386.rpm ../RPMS/i386/cairo-devel-1.7.4.20080826.fc9.i386.rpm
Reboot after installing these, and be prepared to recompile the Nvidia/ATI display driver if xorg does not start.

Note that there are a lot of configuration options possible, in ~/.fonts.conf and ~/.Xresources, including:

lcdnone, lcddefault, lcdlight, lcdlegacy - these no longer contain the word "filter" in the middle
hintnone, hintslight, hintmedium, hintfull

Some common complaints are "blurry fonts" and bold appearing too bold - the fixes are explained in that thread I won't re-iterate them here, because everyone's got a different viewpoint on beautiful vs ugly fonts, so just find your own pleasing setup.

Last edited by brebs; 1st October 2008 at 09:10 PM. Reason: Removed broken link to F8 RPMs
Reply With Quote
  #2  
Old 22nd April 2008, 10:48 PM
djselbeck Offline
Registered User
 
Join Date: Jun 2006
Location: Germany
Age: 24
Posts: 61
thank you, This is an important feature.
Reply With Quote
  #3  
Old 1st June 2008, 09:19 PM
Danapani Offline
Registered User
 
Join Date: May 2008
Posts: 18
in ~/rpmbuild/SPEC there are no *.spec files. Where do these come from?
Reply With Quote
  #4  
Old 1st June 2008, 09:20 PM
Danapani Offline
Registered User
 
Join Date: May 2008
Posts: 18
~/rpmbuild/SPECS that is.
Reply With Quote
  #5  
Old 12th June 2008, 10:51 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
Danapani, as your non-root rpm-building user, run e.g.:
Code:
rpm -i fontconfig-2.5.0-2.fc9.src.rpm
Note that it is a src.rpm file - this will populate ~/rpmbuild/SOURCES/ and put the .spec file in ~/rpmbuild/SPECS/
Reply With Quote
  #6  
Old 13th June 2008, 12:36 AM
Danapani Offline
Registered User
 
Join Date: May 2008
Posts: 18
Thanks, Brebs!
Reply With Quote
  #7  
Old 18th June 2008, 01:54 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
Freetype in Fedora 9 has been updated to 2.3.5-6 for a private security bug which will be this "moderately critical" advisory:
Code:
%changelog
* Tue Jun 17 2008 Behdad Esfahbod <...@redhat.com> 2.3.5-6
- Add freetype-2.3.5-CVEs.patch
- Resolves: #451213
So, updated freetype 2.3.5-6 RPMs and SRPMs for i386 & x86_64 with the Ubuntu font-rendering patches and the above CVE patch are available here

Last edited by brebs; 25th August 2008 at 03:38 PM. Reason: Added link to secunia.com
Reply With Quote
  #8  
Old 20th June 2008, 04:28 PM
mohbana Offline
Registered User
 
Join Date: Nov 2004
Posts: 110
Quote:
Originally Posted by brebs
Freetype in Fedora 9 has been updated to 2.3.5-6 for a private security bug which will be this "moderately critical" advisory:
Code:
%changelog
* Tue Jun 17 2008 Behdad Esfahbod <besfahbo@redhat.com> 2.3.5-6
- Add freetype-2.3.5-CVEs.patch
- Resolves: #451213
So, updated freetype 2.3.5-6 RPMs and SRPMs for i386 & x86_64 with the Ubuntu font-rendering patches and the above CVE patch are available here
hi brebs,

after reading your post it seems that the new freetype only addresses a single issue, am i correct? so it doesn't include any of the features listed on the changelog (http://sourceforge.net/project/shown...ease_id=605780)?

can you take print screens of how the patched rpms leigh posted - http://www.fedoraforum.org/forum/sho...1&postcount=25 - differ from the ubuntu ones - http://www.fedoraforum.org/forum/sho...7&postcount=27. i'm not sure how the two set of packages he posted differ from each other, i.e., what's so good about the ubuntu version, they're all patched aren't they?
__________________
Samsung SpinPoint 500GB & 320GB SATA-II, Corsair HX 520W, Corsair 4GB, Quad Q6600 SLACR, EVGA 8800 GTS 512MB, Thermalright Ultra-120 Extreme, Samsung SH-S203NRSMN DVD±RW SATA, Abit IP35, Antec Solo, Dell 22 inch (SP2208WFP), Logitech MX518 & Desktop Wave, Auzen X-Plosion
Reply With Quote
  #9  
Old 22nd June 2008, 11:25 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
*Look* at the version numbers:

2.3.6
2.3.5-6

Not the same.

Screenshots are not that useful, and can be downright misleading. There's too many variables - dots per inch (e.g. 96x96), screen resolution, quality & characteristics of monitor, personal preference, what the geezer's eyesight is like, etc.

Last edited by brebs; 1st July 2008 at 10:31 PM.
Reply With Quote
  #10  
Old 11th July 2008, 12:58 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
For the fun of it, I've updated the packages to Ubuntu's Intrepid, for freetype, fontconfig, libXft and cairo. SRPMs and RPMs are available here.

With these new versions, remove "filter" from the Xft.lcdfilter variable name choices in ~/.Xresources, e.g.:
Code:
! Choices:  lcdnone, lcddefault, lcdlight, lcdlegacy
Xft.lcdfilter:  lcddefault
Then make the change take effect for newly-opened apps:
Code:
xrdb -merge ~/.Xresources
It is necessary to reboot, to see the effect on the whole screen.

Last edited by brebs; 27th August 2008 at 12:03 AM. Reason: Suggested rebooting
Reply With Quote
  #11  
Old 11th July 2008, 06:59 PM
Olcay's Avatar
Olcay Offline
Registered User
 
Join Date: Aug 2006
Location: Offenbach, Germany
Posts: 20
I feel lazy nowadays, thanks for the i386 packages.
__________________
Registered Linux user #425989
Reply With Quote
  #12  
Old 18th August 2008, 02:34 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
I've updated to cairo-1.7.4 (here is a better announcement), which needs a later version of pixman than in standard Fedora 9. So, cairo, pixman, and all the other RPMs are available in the usual place.
Reply With Quote
  #13  
Old 21st August 2008, 05:25 PM
dhlacik Offline
Registered User
 
Join Date: Jul 2008
Posts: 36
well not working as before

Quote:
Originally Posted by brebs
I've updated to cairo-1.7.4 (here is a better announcement), which needs a later version of pixman than in standard Fedora 9. So, cairo, pixman, and all the other RPMs are available in the usual place.
Hi Brebs, thank you very much for update, but unfortunatelly after installing it , (updated cairo package + pixman) , my fonts looks ugly just as without your patches. older cairo ,which i am using, works fine. Are you sure, everything is correct there?

Thanks in advance!
Reply With Quote
  #14  
Old 21st August 2008, 05:35 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
Quote:
Originally Posted by dhlacik
fonts looks ugly just as without your patches
That's normally a sign that you haven't updated *all* the packages. Check:

$ rpm -q freetype
freetype-2.3.7-1.fc9.x86_64
freetype-2.3.7-1.fc9.i386

$ rpm -q fontconfig
fontconfig-2.6.0-1.fc9.x86_64
fontconfig-2.6.0-1.fc9.i386

$ rpm -q libXft
libXft-2.1.12-6.fc9.x86_64
libXft-2.1.12-6.fc9.i386

$ rpm -q pixman
pixman-0.11.8-1.fc9.x86_64
pixman-0.11.8-1.fc9.i386

$ rpm -q cairo
cairo-1.7.4-1.fc9.x86_64
cairo-1.7.4-1.fc9.i386

Yes, that's five packages.
Reply With Quote
  #15  
Old 21st August 2008, 06:55 PM
dhlacik Offline
Registered User
 
Join Date: Jul 2008
Posts: 36
Well, yes i did
[boss@david ~]$ rpm -q freetype
freetype-2.3.7-1.fc9.i386
[boss@david ~]$ rpm -q fontconfig
fontconfig-2.6.0-1.fc9.i386
[boss@david ~]$ rpm -q libXft
libXft-2.1.12-6.fc9.i386
[boss@david ~]$ rpm -q pixman
pixman-0.11.8-1.fc9.i386
[boss@david ~]$ rpm -q cairo
cairo-1.7.4-1.fc9.i386

And this is how it looks now :

http://www.hlacik.eu/cairo_new.png
Reply With Quote
Reply

Tags
fedora, font, hardy, lcd, rendering, subpixel, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora's utterly pathetic font rendering has sent be running back to Ubuntu. somethingood Fedora Focus 48 2nd September 2008 07:02 PM
weird font rendering in Fedora 7 oayfer Using Fedora 9 23rd October 2007 10:50 PM
Font Rendering - Fedora 7 euler2 Using Fedora 2 20th June 2007 01:54 PM
Font rendering is so bad in Fedora 7 on my LCD cr4ck3r Using Fedora 15 10th June 2007 04:19 AM
Font rendering in Fedora mario.lopes Using Fedora 0 16th February 2005 11:35 PM


Current GMT-time: 12:34 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat