LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-18-2007, 10:09 PM   #16
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48

Quote:
Originally Posted by rkelsen
I agree mattydee!

What settings do you have for the fonts on the right?
With bytecode interpreter as well as subpixel hinting that someone else mentioned turned on, the settings for the right one are:

option excluded range unchecked
subpixel hinting checked and RBG selected
hinting style: medium
 
Old 07-19-2007, 02:29 AM   #17
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,682

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by thegoofeedude
Surprising! I actually looked at the png and immediately thought the fonts on the left looked way better. Actually I am curious how to get my fonts to look like the skinny ones on the left! Fonts are so personal.

http://webplaza.pt.lu/uselpa/beautiful.html

This how to should be a good start for non AA fonts. People are right there has been a lot of talk lately about the quality of fonts, which is why I posted my screen shots a while back http://www.linuxquestions.org/questi...d.php?t=539868. The thing is you guys are right about what you are saying here on how enable the bytecode interpreter and sub pixel rendering, but there is more to it than that to get optimal results, you need to use David Turners Rogue Patches and patch libXft and the PLD guys have updated the Cairo patch to work with 1.4.10. once you apply these patches and recompile Cairo and libXft then you need to make a .fonts.conf file in your home directory with the settings you like, my current settings are

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintmedium</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>

Keep in mind that you can tweak these options, but I think they work quite well like this.

Also the slackbuild does have two lines that you need to un-comment to get the bytecode interpreter and sub pixel rendering. Once you un-comment those lines there is actually one more thing you need to change manually, you need to edit the
/freetype-2.3.5/src/autofit/aflatin.c file. There are two line in particular that you need to change change the following two lines so that they look like so..

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

change that to

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


and then change

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

to

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



Once you do all those things above you will achieve the most optimal cleartype looking fonts that linux can do.


I always get people saying that this issue is stupid and the fonts look fine by default, well good for you but some of us want fonts more like windows.

Last edited by Daedra; 10-11-2007 at 12:11 AM.
 
Old 07-19-2007, 02:52 AM   #18
kailun
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 48

Rep: Reputation: 15
Quote:
Originally Posted by rkelsen
I reckon the first one is Windows.

The page linked to in David Turner's post "non trouvee". 404. Did you use those patches to get your result?
Quote:
Originally Posted by mattydee
I agree. I think the first is windows as well.
Ding Ding! We have two winners!

Looking at the screenshots very closely, there's a couple of things to note. It seems that bold is handled slightly differently on Windows - it's not quite so thick. Also spacing of fonts is slightly different - the fonts on Windows are ever so slightly flatter.

I did use the libXft, Cairo and freetype patches noted by Daedra to achieve this effect.

A lot of the guides are pretty outdated - and suitable for CRT screens, where sub-pixel hinting might not make much of an effect, which is why it usually doesn't get mentioned.

It can seem like a lot of work, I've been 'using' Slackware for years, but never in a capacity like a workstation - the fonts always put me off. However, I'm pretty confident that now I might be able to start doing so. That's how important fonts are to me.
 
Old 07-19-2007, 03:57 AM   #19
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Rep: Reputation: 15
i think i prefer the left,
http://www.sfu.ca/~mda5/compare.png

its nice and clean. the one on the right seems blurred to me and its got lots of colors in it.
 
Old 07-19-2007, 08:22 AM   #20
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,446
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by Daedra
you need to use David Turners Rogue Patches and patch libXft and the PLD guys have updated the Cairo patch to work with 1.4.10.
I found a set of patches here: http://quanli.googlepages.com/davidt...esfordebiansid

These work with the versions of the packages shipped with Slackware 12.

They make a big difference. You won't appreciate how much of a difference until you try them.
 
Old 07-19-2007, 08:46 AM   #21
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Man you guys have some awesome looking font setups I must say.
mattydee - I too like the right screenshot.
 
Old 07-19-2007, 09:49 AM   #22
thegoofeedude
Member
 
Registered: Aug 2004
Distribution: Slackware 13.37, 14.1
Posts: 75

Rep: Reputation: 17
Quote:
Originally Posted by mattydee
It looks like you are a person who prefers no AA/SPH.
Did you have the bytecode interpreter enabled in that first screenshot? When I turn AA off on my box my fonts look really quite very bad (extra pixels hanging off in every direction, very rough edges, etc.)

Also, for people who are rebuilding the Slackware fonts package, what do you do about versioning? Do you do keep the version number the same and do upgradepkg --install or do you remove the old package, change the version on the new package and then just installpkg?

P.S. Daedra: Your Linux screenshot with AA and SPH looks much better to me than Windows + Cleartype!
 
Old 07-19-2007, 10:19 AM   #23
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
Quote:
P.S. Daedra: Your Linux screenshot with AA and SPH looks much better to me than Windows + Cleartype!
i agree.. i've never bothered with the font building stuff but I am going to delve into this now. thanks to all for posting your info!
 
Old 07-19-2007, 10:34 AM   #24
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Am I the only one who thinks the fonts on the right in

http://www.sfu.ca/~mda5/compare2.png

appear blurry?
 
Old 07-19-2007, 11:22 AM   #25
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Rep: Reputation: 15
Quote:
Originally Posted by Penguin of Wonder
Am I the only one who thinks the fonts on the right in

http://www.sfu.ca/~mda5/compare2.png

appear blurry?
no your not,penguin. i think theyre blurry aswell, and theyve got lots of colors in in them. it must be the way some people see color or something.

Last edited by mobilemonkey; 07-19-2007 at 11:23 AM.
 
Old 07-19-2007, 12:15 PM   #26
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by thegoofeedude
Did you have the bytecode interpreter enabled in that first screenshot? When I turn AA off on my box my fonts look really quite very bad (extra pixels hanging off in every direction, very rough edges, etc.)

Also, for people who are rebuilding the Slackware fonts package, what do you do about versioning? Do you do keep the version number the same and do upgradepkg --install or do you remove the old package, change the version on the new package and then just installpkg?

P.S. Daedra: Your Linux screenshot with AA and SPH looks much better to me than Windows + Cleartype!
I didn't have the bit code interpreter turned off. What I did is stupidly select the exclude range option, which pretty much turned off AA.

As for the recompilation, I let checkinstall do its thing then renamed the package it created to -3.tgz so that slapt-get will not bother me about an update...

Also, I noticed that some packages that need freetype to compile look for the lib in /usr/lib, but the freetype default install is in /usr/local/lib, so adding the option --prefix=/usr is a good idea.

Last edited by mattydee; 07-19-2007 at 12:24 PM.
 
Old 07-19-2007, 01:45 PM   #27
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,682

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
I've just uploaded my Cairo, LibXft, and Freetype slack packages that I made, all the packages are made using Pat's build scripts so they are as close to official slack packages as you can get, there is no doubt in my mind that they will work for you, but just in case I accept no responsibility if your PC blow up, lol . These packages should take out the leg of work of recompiling all those packages to get good cleartype results, all the packages have been patched using the patches that i mentioned earlier.

http://webpages.charter.net/daedra/c....10-i486-1.tgz
http://webpages.charter.net/daedra/l....12-i486-3.tgz
http://webpages.charter.net/daedra/f...3.5-i486-1.tgz

Last edited by Daedra; 07-20-2007 at 05:50 AM.
 
Old 07-19-2007, 02:16 PM   #28
mobilemonkey
Member
 
Registered: May 2007
Distribution: slackware 11
Posts: 81

Rep: Reputation: 15
thankyou Daedra
 
Old 07-19-2007, 02:21 PM   #29
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,682

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Just don't forget to make a .fonts.conf file in your home directory, if you want you can just copy mine from my earlier post, other wise you won't get optimal results.

P.S. Optimal results if you like the results on the right, for the left side you will need different settings in your .fonts.conf file

Last edited by Daedra; 07-19-2007 at 02:23 PM.
 
Old 07-19-2007, 02:24 PM   #30
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
@Daedra - thanks.. are these slack11 or 12 packages?
 
  


Reply



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
Old Geek rch1231 LinuxQuestions.org Member Intro 2 03-10-2007 01:04 PM
Hi from a fellow geek SnD General 2 04-22-2006 02:31 AM
LXer: Be all the geek you can be LXer Syndicated Linux News 0 02-17-2006 02:16 PM
You might be a geek if... jspenguin General 4 12-08-2003 09:14 PM
who's geek? zeky General 18 12-29-2002 02:04 PM

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

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

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