LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-20-2009, 03:24 AM   #1
bluefly
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Rep: Reputation: 0
fonts/text look unsmooth in lenny


hi,

I recently switched from Ubuntu to Debian.
I've had text look bad in both of them but after installing some packages, like msttcorefonts and getting libfreetype6 (and probably more I can't remember) I managed to make it look ok in Ubuntu but in Debian it still doesn't look good in some applications.

Here are 2 screenshots of QtCreator and VirtualBox:
http://img100.imageshack.us/img100/6496/filel.jpg
http://img253.imageshack.us/img253/3374/85280329.jpg

I'm beginning to suspect it has something to do with how Qt handles it's fonts since I'm pretty sure that VirtualBox's UI is also written in Qt.

Has anyone encountered this before? Maybe I'm missing some basic package?
Thanks.
 
Old 04-20-2009, 07:32 AM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Do you have on-board graphics or a separate card?,Ati or Nvidia?
Have you installed a graphics driver?
I have seen text look like that using the generic 'vesa' driver.
It would be an idea to post the contents of /etc/X11/xorg.conf.
 
Old 04-20-2009, 07:58 AM   #3
bluefly
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by the trooper View Post
Do you have on-board graphics or a separate card?,Ati or Nvidia?
Have you installed a graphics driver?
I have seen text look like that using the generic 'vesa' driver.
It would be an idea to post the contents of /etc/X11/xorg.conf.
hi,

I have an ATI Radeon HD4850.
In my ongoing attempt to fix this issue I installed fglrx drivers for my graphics card, thinking that was one of the differences between my previous Ubuntu installation. Unfortunately this didn't fix the problem.

Anyhow here are the contents of xorg.conf:

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection

Section "Device"
Identifier "ATI"
Driver "fglrx"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
DefaultDepth 24
EndSection
 
Old 04-20-2009, 08:09 AM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
I take it you have direct rendering?
I think the command was fglrx | grep "direct rendering"
Should return with a "Yes".
 
Old 04-20-2009, 08:18 AM   #5
bluefly
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by the trooper View Post
I take it you have direct rendering?
I think the command was fglrx | grep "direct rendering"
Should return with a "Yes".
actually it doesn't find "fglrx"
 
Old 04-20-2009, 08:19 AM   #6
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Do you have the mesa-utils package installed?
 
Old 04-20-2009, 08:27 AM   #7
bluefly
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by the trooper View Post
Do you have the mesa-utils package installed?
just installed it, but still can't recognize "fglrx"
 
Old 04-20-2009, 08:31 AM   #8
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Maybe i have the syntax wrong.....

Here's what i do with an Nvidia card:

Code:
ade@Pc1:~$ glxinfo | grep "direct rendering"
direct rendering: Yes
Give that a try and see what you get.
 
Old 04-20-2009, 08:38 AM   #9
bluefly
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by the trooper View Post
Maybe i have the syntax wrong.....

Here's what i do with an Nvidia card:

Code:
ade@Pc1:~$ glxinfo | grep "direct rendering"
direct rendering: Yes
Give that a try and see what you get.
that worked and returned "Yes" as you expected
 
Old 04-20-2009, 08:44 AM   #10
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Ok, that's good.
I'm running out of ideas,maybe there's something shown in the X log file:

cat /var/log/Xorg.0.log | grep EE

Maybe there is something there?
 
Old 04-20-2009, 08:52 AM   #11
bluefly
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by the trooper View Post
Ok, that's good.
I'm running out of ideas,maybe there's something shown in the X log file:

cat /var/log/Xorg.0.log | grep EE

Maybe there is something there?
no, everything seems fine there.

I found some interesting topics regarding this issue a few minutes ago, they seem to address Qt 4.5.0 directly, which verifies my suspicion that's it's indeed a Qt specific problem.
I'll try my luck with those, but thanks anyway.

Here are some links to them if someone stumbles upon this thread:

http://bbs.archlinux.org/viewtopic.php?id=69215
http://bbs.archlinux.org/viewtopic.php?id=67031&p=2
http://www.nabble.com/Bug-448555:-fi...d22557271.html
http://www.nabble.com/blurry-fonts-a...d15148606.html
http://www.mail-archive.com/debian-q.../msg25168.html
http://www.robodesign.ro/mihai/blog/...font-rendering
 
Old 04-20-2009, 08:55 AM   #12
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Ok,sorry i can't be more help.
When you do find a solution don't forget to post back here,as this will help other people searching this problem.
 
Old 04-20-2009, 08:55 AM   #13
rerushg
Member
 
Registered: Dec 2008
Location: South Carolina
Distribution: Debian testing
Posts: 57

Rep: Reputation: 16
How about screen resolution? Are you using best native rez & refresh? Modern displays will often accept other rates but won't look very good doing it
 
Old 04-20-2009, 09:11 AM   #14
bluefly
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I believe I fixed it. In one of the those links there was the contents of .fonts.conf, I tried using it and it worked! Text in the apps I showed before is now looking good again.

Here's the .fonts.conf that fixed it for me:
Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>
 
Old 04-20-2009, 09:15 AM   #15
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Good stuff!.
Just out of interest, where is the file you have edited?
In my home directory i only have .fontconfig.
 
  


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
OpenOffice Scrolling Through Text Fonts Murdock1979 Linux - Software 1 08-02-2008 06:27 PM
How do I get pretty anti-aliased fonts in debian lenny? Darkhorse8 Debian 1 08-21-2007 08:53 AM
Debian Lenny ugly fonts arnuld Debian 16 06-23-2007 02:40 AM
boot sequence system text - too big fonts.. captain skywave SUSE / openSUSE 2 06-24-2005 05:19 AM
shell text fonts are larger than normal??? tsw Mandriva 8 05-12-2004 07:01 PM

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

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