LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-29-2007, 09:13 AM   #1
TL_CLD
Member
 
Registered: Sep 2006
Posts: 366

Rep: Reputation: 45
Freetype - what am I doing wrong?


Hey all,

On my quest to make my fonts (Slackware 12) look better, I've tried my hand on the whole freetype bytecode/subpixel thing. I've downloaded the source and the slackbuild script from ftp.slackware.com and uncommented the two lines described in the slackbuild script.

I've then installed the resulting package and restarted X.

Result: Nothing. Fonts are still looking the same, meaning somewhat "blurry".

Am I missing something? Do I need to adjust any other settings for this package to take effect?

Also I've tried installing the qt-gtk engine so I can control the look of Thunderbird and Firefox, but alas; this doesn't appear to be working either. Both programs look exactly as they've always looked: Blocky and clumsy - no matter how I set the new qt-gtk engine control in the KDE Control Center.

I'm baffled..

Any and all advice is more than welcome.

Regards,
Thomas
 
Old 10-29-2007, 10:46 AM   #2
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
I am interested in this as well, because to my eye I have never got Slackware 12 looking as good as Slackware 11 despite having, as far as I can see near identical set ups regarding fonts. I also have done the bytecode/subpixel thing. It seems to do the trick in Slackware 11 but things do not look quite right to me in 12. This is the main reason why I am sticking with 11 for now.
 
Old 10-29-2007, 10:57 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

You could use this guide.
 
Old 10-29-2007, 02:14 PM   #4
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
in case anyone is interested, this is my etc/fonts/local.conf.


<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/usr/local/share/fonts</dir>
<dir>/usr/share/fonts</dir>
<match target="font">
<edit name="antialias" mode="assign"><bool>false</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
</match>
</fontconfig>



and my ~/.gtkrc-2.0

gtk-font-name= "Verdana 10"

(I like verdana, choose your preferred font and size - of course microsoft fonts don't come with slackware)

(if you use kde) go to Control centre>fonts and adjust to your liking. I have antialiasing enabled, but then in the configure part, I disable from 8-15 pts

I like it anyway.
tobyl
 
Old 10-30-2007, 02:49 AM   #5
TL_CLD
Member
 
Registered: Sep 2006
Posts: 366

Original Poster
Rep: Reputation: 45
Fixed!

Here's what I did to get the fonts how I like 'em:

1. Installed the bytecode/subpixel enabled freetype package
2. Ran the two font related scripts from setup (pkgtool/setup)
3. Enabled sub pixel hinting in the KDE Control Center (RGB, Full)
4. Restarted X.

Voila! Fonts are now looking great.

A funny thing: I have two systems running side by side. One is equipped with a cheap nVidia graphics card and the other is equipped with an onboard Intel 965 chip.

Prior to installing the nVidia driver, both systems looked the same, but after having installed the nVidia driver the nVidia systems looks a lot better. Everything is more "crisp".


Thomas
 
Old 10-30-2007, 03:39 AM   #6
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
Like you a few months set out to get my fonts looking as good as they possibly could, I have my screenshots on this post http://www.linuxquestions.org/questi...kware.-539868/

On this post I posted my freetype/cairo/libXft patches that I compiled for the slackware community that adds subpixel support and bytecode interpreter, plus my .fonts.config file. give these post a look and if you have any questions let us know
http://www.linuxquestions.org/questi...t-geek-570440/

So basically to summarize... You did the right thing by recompiling freetype with bytecode and sub pixel rendering support, but if you want the most optimal results you need to also recompile Cairo and libXft with the patches that were supplied by david turner of freetype a while back. The patches in question basically make cairo and libXft use the subpixel rendering libraries of freetype. once you have all 3 packages recompiled then you need to make a file called .fonts.conf and put it in your home directory (you can use KDE font settings, but I find it lacking a bit in settings). As I stated above I already recompile all the said packages with patches for everyone in the above post if you want to just use mine instead of recompiling all of it yourself.

Here is a quick screenshot of this post with my font settings
http://webpages.charter.net/daedra/snapshot2.png

Last edited by Daedra; 10-30-2007 at 03:58 AM.
 
Old 10-30-2007, 04:11 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You can also try this, which really helped make the fonts much clearer.

Measure the height and width of the display area of your screen in millimeters. Then to your '/etc/X11/xorg.conf' add this to the "Monitor" section:

Code:
Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
    DisplaySize     305    230
    HorizSync       29.000 - 65.000
    VertRefresh     60.000
    Option         "DPMS"
EndSection
From the 'man xorg.conf':
Code:
DisplaySize  width height
              This optional entry gives the width and height, in  millimetres,
              of  the  picture  area  of the monitor. If given this is used to
              calculate the horizontal and vertical pitch (DPI) of the screen.
so, put in your width and height instead of my numbers there. That really made the fonts a lot clearer ... something to do with DPI.
 
Old 10-30-2007, 04:56 AM   #8
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
Good Point, make sure your font DPI is 96x96. You can check this by typing

xdpyinfo | grep resolution

if it isn't you can use the above solution, but lately I just edit /usr/bin/startx and add this line to server arguments (In Red)

#!/bin/sh

# $Xorg: startx.cpp,v 1.3 2000/08/17 19:54:29 cpqbld Exp $
#
# This is just a sample implementation of a slightly less primitive
# interface than xinit. It looks for user .xinitrc and .xserverrc
# files, then system xinitrc and xserverrc files, else lets xinit choose
# its default. The system xinitrc should probably do things like check
# for .Xresources files and merge them in, startup up a window manager,
# and pop a clock and serveral xterms.
#
# Site administrators are STRONGLY urged to write nicer versions.
#
# $XFree86: xc/programs/xinit/startx.cpp,v 3.16tsi Exp $
userclientrc=$HOME/.xinitrc
sysclientrc=/usr/lib/X11/xinit/xinitrc


userserverrc=$HOME/.xserverrc
sysserverrc=/usr/lib/X11/xinit/xserverrc
defaultclient=xterm
defaultserver=/usr/bin/X
defaultclientargs=""
defaultserverargs="-dpi 96"
clientargs=""
serverargs=""
 
Old 10-30-2007, 07:18 AM   #9
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Daedra, are you aware of any new patches? Last I tried, quite awhile ago, the cairo patch was broken and possibly even libxft.

1.4.6 or maybe even 1.4.4 was the last cairo that patched cleanly.
 
Old 10-30-2007, 02:57 PM   #10
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
I tried some of this out in my slackware 11 installation (which is the one where I am happy with the fonts)

Quote:
$ xdpyinfo | grep resolution
resolution: 87x86 dots per inch
xorg.conf shows

Quote:
Section "Monitor"
Identifier "amw"
HorizSync 30-80
VertRefresh 55-75
# Option "DPMS"
# DisplaySize 337.5 270.0
EndSection
so I changed it to

Quote:
Section "Monitor"
Identifier "amw"
HorizSync 30-80
VertRefresh 55-75
Option "DPMS"
DisplaySize 370 300
EndSection
This made no change at all to the resolution.
 
Old 10-30-2007, 03:02 PM   #11
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
I wonder if this is to do with using a flat screen.
 
Old 10-30-2007, 03:06 PM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Why not try it where you're not happy with the fonts ?
 
Old 10-30-2007, 03:25 PM   #13
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Have you had a look at this old thread?

http://www.linuxquestions.org/questi...705/page9.html

It goes into great detail about configuring to get good rendering of TT fonts involving some extensive additions to the config. files.

Bill.
 
Old 10-30-2007, 06:29 PM   #14
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 jong357 View Post
Daedra, are you aware of any new patches? Last I tried, quite awhile ago, the cairo patch was broken and possibly even libxft.

1.4.6 or maybe even 1.4.4 was the last cairo that patched cleanly.
Yes, but the Cairo patch is being maintained by the PLD guys, the newest version applies cleanly to to Cairo-1.4.10, here is a link to all the most current patches. They all apply cleanly to Cairo/libXft/etc.

http://webpages.charter.net/daedra/c...atches.tar.bz2
 
Old 10-30-2007, 07:13 PM   #15
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Nice. Thank you.
 
  


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
freetype NAC Linux - Newbie 1 11-15-2006 02:56 AM
FreeType alanbarnard Ubuntu 1 03-05-2006 08:17 AM
Freetype... Linux~Powered Slackware 3 03-02-2005 11:06 AM
Freetype-devel for freetype-2.1.4-1 (redhat 9) Goog Linux - Distributions 0 05-05-2003 06:55 PM
freetype no1d Linux - Software 0 02-28-2003 04:54 AM

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

All times are GMT -5. The time now is 08:36 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