LinuxQuestions.org
Help answer threads with 0 replies.
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 07-21-2008, 08:17 PM   #91
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,922
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158

Hi,

Bruce, You are going to the Olympics? What about the Chinese attempt to control the environmental problems before and during the games? I know it's off topic but just curious to get some info from someone who is over there. I know China is a big country but.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-28-2008, 09:39 PM   #92
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
The people on the Gentoo forums have been making their own font packages:
http://forums.gentoo.org/viewtopic-t-511382.html
(start at the end and work backwards).

Nowadays, they store their font ebuilds on the devnull overlay. I converted them to SlackBuilds. Their ebuilds can compile for either Cleartype-style or Ubuntu-style subpixel rendering, and so can these SlackBuilds.

By default, they'll build for Ubuntu-style rendering.

If you want Cleartype-style rendering, then do the following before installing all 4:
Code:
export USE=cleartype
Then do the following when you're done:
Code:
unset USE
1. FreeType
2. Fontconfig
Previous versions of the Fontconfig SlackBuild had an extra configuration file that set the sans, serif and monospace alias to Liberation fonts. I suspect this file was largely responsible for the "Thanks Dugan, that looks AWESOME!" reactions I kept getting .

I'm making available, separately, a version of the file that sets the sans, serif and monospace alias to Droid fonts instead:

35-droid.conf

Before reinstalling Fontconfig, I recommend deleting /etc/fonts. After installing it, I recommend the following steps:
  • symlinking /etc/fonts/conf.avail/10-autohint.conf into /etc/fonts/conf.d
  • removing /etc/fonts/conf.d/10-no-sub-pixel.conf
  • checking your subpixel order and then symlinking the appropriate file into conf.d (in my case it's 10-subpixel-rgb.conf)
  • putting the 35-droid.conf file into conf.d if you want the sans, serif and monospace alias set to Droid fonts (which you'll have to install separately).
  • rerunning fc-cache.

3. libXft
4. Cairo
I'm happily using these with Ubuntu-style rendering. As for Cleartype-style rendering, well, it compiles.

And here's a SlackBuild for a Firefox that respects subpixel rendering settings. It's outdated, but it should work with the latest version of Firefox if you bump the VERSION.

5. Firefox

Last edited by dugan; 01-03-2010 at 03:57 PM. Reason: New SlackBuilds!
 
Old 10-28-2008, 11:06 PM   #93
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
Thanks again Dugan...

I just updated to your new font setup and my fonts are great!

One thing to note I had to build the newest pixman package for my machine from the cairo site before i could get cairo to compile on a vanilla slack 12.1 setup. I just used the link provided in the failed build attempt for the cairo slackbuild.

In a side by side comparison my Slack fonts are as good if not better then the Ubuntu fonts on my laptop!

P.S - I have yet to try the new Slackbuild Firefox, I am currently using the slacky build and things still look great.

Last edited by Alstare; 10-28-2008 at 11:10 PM.
 
Old 11-22-2008, 01:10 PM   #94
Stroker
Member
 
Registered: Dec 2006
Location: The Nature Coast
Distribution: Slackware 01001101
Posts: 83

Rep: Reputation: 18
Quote:
Originally Posted by symatic View Post
Also on a side note: The double loading can be eliminated by right clicking on the firefox icon and select configure firefox button. Go to Application, then advanced options and uncheck launch feedback. Since it doesn't try to load twice from the command line it had to be from the launcher.

I find some launch feedback helpful to prevent double-clicking.

Go to KDE control center > Appearance & Themes > Launch Feedback and set the time out lower.

I set it to 3 seconds and unchecked the Taskbar Notification. I find it annoying to continue longer anyway.

The Firefox problem is apparently due to compiling without the --enable-startup-notification option. I couldn't find a reason why the Mozilla binaries are not being compiled with it. Perhaps Pat will have to start compiling his own?

https://bugzilla.mozilla.org/show_bug.cgi?id=416053

https://bugzilla.mozilla.org/show_bug.cgi?id=425934

It appears that this is part of 'session restore' that is new in Firefox 3?

Quote:
sessionstore-windows-restored New in Firefox 3 Sent by the session restore process to indicate that all initial browser windows have opened. Note that while the window are open and the chrome loaded the tabs in the windows may still be being restored after this notification.
https://developer.mozilla.org/En/Observer_Notifications
 
Old 12-12-2008, 01:02 AM   #95
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Question

Quote:
Originally Posted by Daedra View Post

PATCHES
Cairo - http://webpages.charter.net/daedra/1...filter-1.patch
ignore the version number, it works

libXft - http://webpages.charter.net/daedra/l...type-like.diff
(I have read around that this might not be needed for desired results, but I used it anyway)

Freetype - There are not patches, you just have to follow step one, Pat's build script can take care of that for you with a simple edit of the build script. However there is one thing that need to be done if you are going to compile your self you need to edit two lines in the src/autofit/aflatin.c file. Find the lines that say this

if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD )
other_flags |= AF_LATIN_HINTS_HORZ_SNAP;

if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V )
other_flags |= AF_LATIN_HINTS_VERT_SNAP;

and then change them to look like this

if ( mode == FT_RENDER_MODE_MONO )
other_flags |= AF_LATIN_HINTS_HORZ_SNAP;

if ( mode == FT_RENDER_MODE_MONO )
other_flags |= AF_LATIN_HINTS_VERT_SNAP;

save and your ready to compile (assuming your using Pat's modified build script)
Anyone try these patches yet with 12.2? If so, what were your results/issues/workarounds?

Thanks!
 
Old 12-12-2008, 01:57 AM   #96
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,669

Original Poster
Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
I just got 12.2 installed and I am experimenting with somethings right now. Should have a new post in a day or two. I plan on doing two this time one for cleartype sux-pixel rendering and one for traditional non-AA fonts.
 
Old 12-12-2008, 02:15 AM   #97
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
Quote:
Originally Posted by SqdnGuns View Post
Anyone try these patches yet with 12.2? If so, what were your results/issues/workarounds?

Thanks!
I've tried the following:

- recompiled freetype using Pat's build script (with the appropriate lines uncommented)

- used this patch for cairo: http://aur.archlinux.org/packages/ca...d-filter.patch

- and used the same libXft patch Daedra posted

Everything looks good.
 
Old 01-01-2009, 02:16 PM   #98
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by dugan View Post
1. FreeType
2. Fontconfig
3. libXft
4. Cairo
I just had a look at these, and there is no need to update them for 12.2. The Freetype, Fontconfig and libXft SlackBuilds are the same versions as 12.2's. The Cairo SlackBuild is newer.
 
Old 01-15-2009, 04:54 AM   #99
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
I have been following the various threads on optimising fonts for LCD and I must say that there has been some great work put in by several people, particularly Daedra and Dugan who posted links to necessary files.

I guess that these patches have been test now by many people on Slackware and therefore any regressions should have been identified by this stage.

My question here is therefore: are we going to see any of these LCD optimisations appearing in 'official Slackware' and do we know what the views of Pat and his co-developers are on this?.

Bill.
 
Old 01-15-2009, 05:23 AM   #100
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,669

Original Poster
Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
Quote:
Originally Posted by Toods View Post
I have been following the various threads on optimising fonts for LCD and I must say that there has been some great work put in by several people, particularly Daedra and Dugan who posted links to necessary files.

I guess that these patches have been test now by many people on Slackware and therefore any regressions should have been identified by this stage.

My question here is therefore: are we going to see any of these LCD optimisations appearing in 'official Slackware' and do we know what the views of Pat and his co-developers are on this?.

Bill.
Nope . The bytecode interpreter is a patent property that is held by Apple, that is why its not compiled by default with Slackware, you legally have to have a license or live in a country where the patent doesn't apply, and the various "cleartype" optimizations are patented by Microsoft. So unfortunately I doubt we will ever see them out of the box, I have heard that certain distributions have the bytecode interpreter enable by default, not sure if thats true. The best we can probably hope for is for Pat to include the patches with the source tree so that the packages Cairo and libXft can be easily recompiled from source with out chasing down the patches, kind of like he has a patch for the bytecode interpreter with the source freetype package. It's too bad though since it really makes a huge difference, but M$ and Apple won't bother with the end-user using these technologies but they would probably sue a distribution if they put them in.
 
Old 01-15-2009, 05:34 AM   #101
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Quote:
Originally Posted by Daedra View Post
--- The best we can probably hope for is for Pat to include the patches with the source tree so that the packages Cairo and libXft can be easily recompiled from source with out chasing down the patches, kind of like he has a patch for the bytecode interpreter with the source freetype package. ---.
This is exactly what I had in mind as I fully understand the patent issues. It would then be relatively easy for people to edit the Slackbuild as required.

How can we progress this?. Have you suggested this to Pat?.

Bill.
 
Old 01-15-2009, 04:45 PM   #102
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,669

Original Poster
Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
Quote:
Originally Posted by dugan View Post
The people on the Gentoo forums have been making their own font packages:
http://forums.gentoo.org/viewtopic-t-511382.html
(start at the end and work backwards).

I tried them on Slackware and the results are good. Very good. Here are the SlackBuids:

1. FreeType
2. Fontconfig
To Fontconfig, I added an extra configuration file that sets the sans, serif and monospace font aliases to Liberation fonts.

Before installing, I recommend deleting /etc/fonts. After installing, I recommend deleting /etc/fonts/conf.d/30-metric-aliases.conf and symlinking both 10-autohint.conf and 10-sub-pixel-rgb.conf (from /etc/fonts/conf.avail) into /etc/fonts/conf.d. And then, of course, running fc-cache.

3. libXft
4. Cairo
And here's a SlackBuild for a Firefox that respects subpixel rendering settings:

5. Firefox
EDIT: Thanks for reminding me about Pixman, Alstare. Yes, you need a recent version of Pixman. I recommend installing it from slackware-current.
So I finally got around to trying your packages Dugan I must say they look great, excellent work. the only thing I did with my system is I used the cleartype patch for libXft, for me I think it looks better with that patch.

UPDATE:
Actually I did a config wrong, it seems, at least to my eyes, that there is no difference with the cleartype patch and the one in your build.

Last edited by Daedra; 01-20-2009 at 10:33 PM.
 
Old 01-16-2009, 02:57 PM   #103
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 99

Rep: Reputation: 11
Is anyone thinking about updating the packages for 12.2?
Having them all parched and ready would be great
 
Old 01-16-2009, 05:44 PM   #104
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Read post #98.
 
Old 01-16-2009, 11:01 PM   #105
markluocanada
Member
 
Registered: Dec 2006
Location: Shanghai China
Distribution: Slackware 13.1_x86_32
Posts: 143

Rep: Reputation: 17
wow,

My laptop definitely looks much better after applying all the patches here, and thank you very much for the wonderful post, Daedra and dugan.

Thanks.

Mark
 
  


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 09:46 PM
How to Optimize Slackware 10.2? zeroz52 Slackware 23 10-04-2005 06:42 PM
How to fully optimize Slackware? Introx Slackware 4 05-30-2004 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration