<---- template headericclude ----->
Ubuntu Hardy's LCD sub-pixel font rendering in Fedora 9
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 11 123 ... LastLast
Results 1 to 15 of 161
  1. #1
    Join Date
    Apr 2008
    Posts
    558
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  2. #2
    Join Date
    Jun 2006
    Location
    Germany
    Age
    35
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you, This is an important feature.

  3. #3
    Danapani Guest
    in ~/rpmbuild/SPEC there are no *.spec files. Where do these come from?

  4. #4
    Danapani Guest
    ~/rpmbuild/SPECS that is.

  5. #5
    Join Date
    Apr 2008
    Posts
    558
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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/

  6. #6
    Danapani Guest
    Thanks, Brebs!

  7. #7
    Join Date
    Apr 2008
    Posts
    558
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  8. #8
    Join Date
    Nov 2004
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  9. #9
    Join Date
    Apr 2008
    Posts
    558
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *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.

  10. #10
    Join Date
    Apr 2008
    Posts
    558
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  11. #11
    Join Date
    Aug 2006
    Location
    Offenbach, Germany
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I feel lazy nowadays, thanks for the i386 packages.

  12. #12
    Join Date
    Apr 2008
    Posts
    558
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  13. #13
    Join Date
    Jul 2008
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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!

  14. #14
    Join Date
    Apr 2008
    Posts
    558
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  15. #15
    Join Date
    Jul 2008
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Page 1 of 11 123 ... LastLast

Similar Threads

  1. Replies: 48
    Last Post: 2nd September 2008, 07:02 PM
  2. weird font rendering in Fedora 7
    By oayfer in forum Using Fedora
    Replies: 9
    Last Post: 23rd October 2007, 10:50 PM
  3. Font Rendering - Fedora 7
    By euler2 in forum Using Fedora
    Replies: 2
    Last Post: 20th June 2007, 01:54 PM
  4. Font rendering is so bad in Fedora 7 on my LCD
    By cr4ck3r in forum Using Fedora
    Replies: 15
    Last Post: 10th June 2007, 04:19 AM
  5. Font rendering in Fedora
    By mario.lopes in forum Using Fedora
    Replies: 0
    Last Post: 17th February 2005, 12:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]