 |
 |
 |
 |
| 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. |

22nd April 2008, 10:33 PM
|
 |
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
|

22nd April 2008, 10:48 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Location: Germany
Age: 24
Posts: 61

|
|
|
thank you, This is an important feature.
|

1st June 2008, 09:19 PM
|
|
Registered User
|
|
Join Date: May 2008
Posts: 18

|
|
|
in ~/rpmbuild/SPEC there are no *.spec files. Where do these come from?
|

1st June 2008, 09:20 PM
|
|
Registered User
|
|
Join Date: May 2008
Posts: 18

|
|
|
~/rpmbuild/SPECS that is.
|

12th June 2008, 10:51 PM
|
 |
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/
|

13th June 2008, 12:36 AM
|
|
Registered User
|
|
Join Date: May 2008
Posts: 18

|
|
|
Thanks, Brebs!
|

18th June 2008, 01:54 PM
|
 |
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
|

20th June 2008, 04:28 PM
|
|
Registered User
|
|
Join Date: Nov 2004
Posts: 110

|
|
Quote:
|
Originally Posted by brebs
|
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
|

22nd June 2008, 11:25 PM
|
 |
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.
|

11th July 2008, 12:58 PM
|
 |
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
|

11th July 2008, 06:59 PM
|
 |
Registered User
|
|
Join Date: Aug 2006
Location: Offenbach, Germany
Posts: 20

|
|
|
I feel lazy nowadays, thanks for the i386 packages.
__________________
Registered Linux user #425989
|

21st August 2008, 05:25 PM
|
|
Registered User
|
|
Join Date: Jul 2008
Posts: 36

|
|
|
well not working as before
Quote:
|
Originally Posted by brebs
|
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!
|

21st August 2008, 05:35 PM
|
 |
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.
|

21st August 2008, 06:55 PM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 12:34 (Saturday, 25-05-2013)
|
|
 |
 |
 |
 |
|
|