LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-04-2011, 07:08 PM   #271
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,882

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524

Quote:
Originally Posted by pigkouinos View Post
To get the infinality setup, besides adding the three infinality lines to the slackbuild, do I have to also uncomment the line "zcat..." ?
No you don't.
 
Old 06-10-2011, 12:29 AM   #272
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,805

Rep: Reputation: 231Reputation: 231Reputation: 231
Hey Daedra & Dugan,

Long time slacker here.

I recently upgraded to 13.37 (32 bit) and have been having difficulty with beautifying its screen fonts.

Under 13.1, I was using Dugan's Ubuntu patches, and they worked superbly. They gave me better screen fonts than a Windows 7 installation.

Flash forward to today. I've tried the following under 13.37:

1. Using the 'default' subpixel rendering patch included with the freetype package,
2. Using the Infinality patches,
3. Using Daedra's patches to cairo, freetype and libXft,
4. Messing around with different options in .Xresources, fonts.conf, symlinks in /etc/fonts/conf.d, KDE settings, Nvidia settings, etc, etc...

Nothing seems to work as well as the Ubuntu patches for 13.1.

Out of curiosity, I thought I'd try and install the cairo, freetype, fontconfig and libXft packages which I created using Dugan's Ubuntu patches for slackware 13.1.

And viola. Sexy fonts.

Does it matter which versions of these packages I use? I'm happy with the appearance of the fonts now. Should I bother trying to update to the more recent versions of these packages included with 13.37? Is there something that will break if I continue to use the older versions?

Cheers,


Rob.
 
Old 06-10-2011, 04:08 PM   #273
Buumi
Member
 
Registered: Dec 2010
Distribution: Slackware
Posts: 54

Rep: Reputation: 6
dugan, does your link to the old slackbuild for cairo package direct to the wrong place, as it downloads for me libXft slackbuild as well as does libXft slackbuild. So should http://www.duganchen.ca/files/libXft.tar.xz be http://www.duganchen.ca/files/cairo.tar.xz
 
Old 06-18-2011, 01:09 AM   #274
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,882

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
First, Buumi, thanks for the heads-up. I fixed the redirects.

Second, the patched SlackBuilds have been updated for 13.37 and they now have an official project page:

https://github.com/duganchen/slackwa...ter/tree/13.37

The optimizing-slackware's-fonts howto will be updated with this new information soon.

EDIT: new link:

https://github.com/duganchen/slackware-lcdfilter/

Last edited by dugan; 07-04-2011 at 06:19 PM.
 
2 members found this post helpful.
Old 06-18-2011, 12:36 PM   #275
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 180

Rep: Reputation: 9
Quote:
Originally Posted by dugan View Post
First, Buumi, thanks for the heads-up. I fixed the redirects.

Second, the patched SlackBuilds have been updated for 13.37 and they now have an official project page:

https://github.com/duganchen/slackwa...ter/tree/13.37

The optimizing-slackware's-fonts howto will be updated with this new information soon.

dugan, thanks a lot! I downloaded and used your slackbuilds and patches. I created the /etc/fonts/local.conf and added
Code:
<match target="font">
    <edit mode="assign" name="lcdfilter">
        <const>lcddefault</const>
    </edit>
    <edit name="hinting" mode="assign">
        <bool>true</bool>
    </edit>
    <edit name="hintstyle" mode="assign">
        <const>hintfull</const>
    </edit>
    <edit name="antialias" mode="assign">
        <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
        <bool>false</bool>
    </edit>
</match>
as well. Is that all that is needed to be done?
 
Old 06-18-2011, 04:50 PM   #276
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,882

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
Those lines don't hurt, but the patched version of Fontconfig is pretty much already set up that way by default. The only difference is that by default it specifies slight hinting rather than full hinting.

Last edited by dugan; 06-18-2011 at 04:53 PM.
 
1 members found this post helpful.
Old 06-21-2011, 10:48 AM   #277
markluocanada
Member
 
Registered: Dec 2006
Location: Shanghai China
Distribution: Slackware 13.1_x86_32
Posts: 143

Rep: Reputation: 17
Thanks Dugan for the wonderful post, it does make a huge difference, as many mentioned..

I think your way of optimizing the font still apply to older version, at least to 13.1. I basically followed your updated instructions, and installed all those four txz packages, and it worked very well. Even the Chinese font rendering is really good.

Thanks
mark
 
Old 07-03-2011, 07:44 AM   #278
aurora_borealis
LQ Newbie
 
Registered: Jun 2011
Location: Sydney, Australia
Distribution: Slackware64 13.37
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
the patched SlackBuilds have been updated for 13.37 and they now have an official project page:

https://github.com/duganchen/slackwa...ter/tree/13.37
@dugan:
Just wanted to let you know that these patches have a detrimental affect on the dispaly in Slackware64 13.37. I'm attaching a screenshot of my screen after updating the packages with these patches in the order specified.

I see that the files under your freetype patches are more or less infinality patches. I believe that while using infinality patches, other packages (fontconfig, libXft, cairo) need not be patched/upgraded.

Would you please clarify?

BTW... I was using local.conf file from infinality even after uprading to packages built with your patches.

Thanks.
Attached Images
File Type: jpg slack_1337_dugans_patches_18_june_2011.jpg (176.6 KB, 95 views)

Last edited by aurora_borealis; 07-03-2011 at 07:46 AM. Reason: Additional Info
 
Old 07-03-2011, 10:08 AM   #279
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,882

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
I double-checked the ebuilds that these SlackBuilds are ports of, and you are indeed correct that libXft and Cairo weren't supposed to be upgraded. (EDIT: THIS IS NOT CORRECT!) (The changes to Fontconfig are still beneficial). Fixed slackBuilds will be uploaded later today.

The fix for your system is obvious: revert libXft and Cairo to the stock Slackware packages and then reboot. (EDIT: THIS IS NOT CORRECT!)

Last edited by dugan; 07-03-2011 at 05:48 PM.
 
Old 07-03-2011, 05:44 PM   #280
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,882

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
Er, triple-checked it. You actually do need to install all 4 packages (not just Freetype and Fontconfig) to get the advertised results. However, the SlackBuilds did need to be fixed for correctness and I thank you for bringing that to my attention.

Fixed Slackbuilds (and a fixed README) are now up at the usual location:

https://github.com/duganchen/slackware-lcdfilter

That said, I've tested every version of these, and I've never gotten the hideous results shown in your screenshot. So if your problem persists, then troubleshooting it would be rather difficult for me.

Last edited by dugan; 07-03-2011 at 06:05 PM.
 
1 members found this post helpful.
Old 07-04-2011, 04:12 AM   #281
vehn
Member
 
Registered: Dec 2007
Posts: 54

Rep: Reputation: 17
Quote:
I see that the files under your freetype patches are more or less infinality patches. I believe that while using infinality patches, other packages (fontconfig, libXft, cairo) need not be patched/upgraded.
For infinality-patchset patching cairo is need. Yes i know that www.infinality.net says that it is no need. But Fedora's cairo has patches, that Slackware has not. I have the same trouble like you, but very-very rarely: one time in firefox's tabs and always in previous alpha version tor addon when right-click on it (now with version 1.4.0 all ok). May be it is trouble with video's driver. I have:
Code:
VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
xf86-video-intel-2.15.0-x86_64-1
I can send you slackbuilds (also include source code for freetype-2.4.5. Yes, latest infinality patchset need freetype from git ~1.5Mb) if you interested.

If you would make slackbuilds on one's own, you need also configure freetype with LDFLAGS="$LDFLAGS -lm"
Attached Images
File Type: png screenshot.png (234.1 KB, 78 views)

Last edited by vehn; 07-04-2011 at 04:19 AM.
 
Old 07-04-2011, 04:13 AM   #282
aurora_borealis
LQ Newbie
 
Registered: Jun 2011
Location: Sydney, Australia
Distribution: Slackware64 13.37
Posts: 5

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by dugan View Post
Er, triple-checked it. You actually do need to install all 4 packages (not just Freetype and Fontconfig) to get the advertised results. However, the SlackBuilds did need to be fixed for correctness and I thank you for bringing that to my attention.
Thank you so much for checking it out for me and thank "you" for providing these ports to us.

I found the issue with my fonts and resolved it as follows:
Summary: There's nothing wrong with your slackbuilds.

I had recently installed a version of freetype built from infinality patches. It required a shell script infinality-settings.sh to be sourced every time. So, I had put it under my /etc/profile.d.

I removed the infinality package to make way for packages built using the lcdfilter patches and slackbuilds provided by you. But I forgot to remove the infinality-settings.sh script from /etc/profile.d. Hence the hideous results (INFINALITY variables from lcdfilter patches and this script were clashing).

Once I disabled that script, my font issues were solved and the rendering looks much better now (attaching a screenshot too).
Attached Images
File Type: jpg slack_1337_chrome_lcdfilter_04_jul_2011.jpg (174.6 KB, 72 views)
 
Old 07-04-2011, 04:22 AM   #283
aurora_borealis
LQ Newbie
 
Registered: Jun 2011
Location: Sydney, Australia
Distribution: Slackware64 13.37
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by vehn View Post
For infinality-patchset patching cairo is need. Yes i know that www.infinality.net says that it is no need. But Fedora's cairo has patches, that Slackware has not.

I can send you slackbuilds (also include source code for freetype-2.4.5. Yes, latest infinality patchset need freetype from git ~1.5Mb) if you interested.
Thanks, vehn, for offering to help. The font rendering in your screenshot looks amazing. Are you using patched freetype (with infinality) and cairo only or something else too?

I got the issue with my fonts resolved (please see the above post). I didn't know that slackware cairo needed patching with infinality patchset. Thanks for letting me know.

BTW... the latest infinality patchset works with recently released freetype-2.4.5. No need to get it from git. [Available from http://download.savannah.gnu.org/releases/freetype/]
 
Old 07-04-2011, 05:22 AM   #284
vehn
Member
 
Registered: Dec 2007
Posts: 54

Rep: Reputation: 17
Quote:
Thanks, vehn, for offering to help. The font rendering in your screenshot looks amazing. Are you using patched freetype (with infinality) and cairo only or something else too?
No, only patched cairo (two patches: cairo-1.10.0-buggy_gradients.patch, cairo-9999-cleartype.patch) and freetype with infinality patchset. And infinality-settings.sh + fonts.conf like you. Also i install http://slackbuilds.org/repository/13...webcore-fonts/

Quote:
the latest infinality patchset works with recently released freetype-2.4.5. No need to get it from git
Thanks for note. freetype 2.4.5 released 2011-Jun-24. I did slackbuilds a little earlier.
 
Old 07-17-2011, 10:51 PM   #285
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
In Slackware 13.1 and before I used default configuration of the font subsystem and I was glad about the results. Unfortunately font rendering in Slackware 13.37 works bad. Default configuration produces horrible results. Auto hinting helps a little but the results are still ugly. So I tried the method described by dugan in LCD Filter Rendering section of Optimizing Slackware Linuxís Fonts homepage and Iím glad again. I didnít included the cleartype option because Iím satisfied with the lcdfilter option results.

So thank you Daedra for the useful thread and thank you dugan for the SlackBuilds and hints.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If I were to recompile & arch-optimize Slackware, where to begin? GrapefruiTgirl Slackware 124 06-22-2007 10:46 PM
How to Optimize Slackware 10.2? zeroz52 Slackware 23 10-04-2005 07:42 PM
How to fully optimize Slackware? Introx Slackware 4 05-30-2004 05:23 AM


All times are GMT -5. The time now is 02:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration