Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

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

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2008-04-22, 03:33 PM CDT
brebs's Avatar
brebs Offline
Registered User
 
Join Date: Apr 2008
Posts: 525
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; 2008-10-01 at 02:10 PM CDT. Reason: Removed broken link to F8 RPMs
Reply With Quote
  #2  
Old 2008-04-22, 03:48 PM CDT
djselbeck Offline
Registered User
 
Join Date: Jun 2006
Location: Germany
Age: 21
Posts: 46
thank you, This is an important feature.
__________________
Late Elation
Fedora 11 on Dell Vostro 1310
Fedora 11 on Desktop
Fedora 10 on eeePC
Reply With Quote
  #3  
Old 2008-06-01, 02:19 PM CDT
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 2008-06-01, 02:20 PM CDT
Danapani Offline
Registered User
 
Join Date: May 2008
Posts: 18
~/rpmbuild/SPECS that is.
Reply With Quote
  #5  
Old 2008-06-12, 03:51 PM CDT
brebs's Avatar
brebs Offline
Registered User
 
Join Date: Apr 2008
Posts: 525
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 2008-06-12, 05:36 PM CDT
Danapani Offline
Registered User
 
Join Date: May 2008
Posts: 18
Thanks, Brebs!
Reply With Quote
  #7  
Old 2008-06-18, 06:54 AM CDT
brebs's Avatar
brebs Offline
Registered User
 
Join Date: Apr 2008
Posts: 525
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; 2008-08-25 at 08:38 AM CDT. Reason: Added link to secunia.com
Reply With Quote
  #8  
Old 2008-06-20, 09:28 AM CDT
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 2008-06-22, 04:25 PM CDT
brebs's Avatar
brebs Offline
Registered User
 
Join Date: Apr 2008
Posts: 525
*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; 2008-07-01 at 03:31 PM CDT.
Reply With Quote
  #10  
Old 2008-07-11, 05:58 AM CDT
brebs's Avatar
brebs Offline
Registered User
 
Join Date: Apr 2008
Posts: 525
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; 2008-08-26 at 05:03 PM CDT. Reason: Suggested rebooting
Reply With Quote
  #11  
Old 2008-07-11, 11:59 AM CDT
Olcay's Avatar
Olcay Offline
Registered User
 
Join Date: Aug 2006
Location: Offenbach, Germany
Posts: 19
I feel lazy nowadays, thanks for the i386 packages.
__________________
Registered Linux user #425989
Reply With Quote
  #12  
Old 2008-08-18, 07:34 AM CDT
brebs's Avatar
brebs Offline
Registered User
 
Join Date: Apr 2008
Posts: 525
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 2008-08-21, 10:25 AM CDT
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 2008-08-21, 10:35 AM CDT
brebs's Avatar
brebs Offline
Registered User
 
Join Date: Apr 2008
Posts: 525
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 2008-08-21, 11:55 AM CDT
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

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 2008-09-02 12:02 PM CDT
weird font rendering in Fedora 7 oayfer General Support 9 2007-10-23 03:50 PM CDT
Font Rendering - Fedora 7 euler2 General Support 2 2007-06-20 06:54 AM CDT
Font rendering is so bad in Fedora 7 on my LCD cr4ck3r General Support 15 2007-06-09 09:19 PM CDT
Font rendering in Fedora mario.lopes Software 0 2005-02-16 04:35 PM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 08:23 AM CST.

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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET 2.3.8) made by NLP-er