LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-06-2006, 02:41 PM   #1
tvynr
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 143

Rep: Reputation: 15
GTK Applications Not Respecting Subpixel Settings


I am struggling with a peculiar font problem on my Debian Linux box. KDE fonts look quite nice, actually, and I'm very happy with them. The difficulty I am having is with GTK applications, Firefox and Synaptic included.

Firstly, let me display a few files. This is my ~/.fonts.conf:
Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <dir>~/.fonts</dir>
 <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>
Fairly straightforward, I think. And this is my ~/.gtkrc-2.0:
Code:
gtk-font-name="Bitstream Vera Sans Roman 11"
Quite a bit more straightforward.

Using this arrangement, as I have said, KDE applications look great. However, GTK applications do not respect the subpixel settings; they use whole pixel font rendering. They will continue to do so until I open gnome-control-center and open its fonts dialog. I don't have to change anything, of course; everything is already set properly ("subpixel smoothing (LCDs)" is already selected when I open it). Once I open the Fonts dialog, all newly opened GTK applications look fine.

That is, until the next time I start an X session. Then I have to do it again.

Does anyone have any idea what's going on here? I've tried a number of variations on .fonts.conf and I haven't found anything specific for .gtkrc-2.0 with regards to subpixel rendering. Actually, before I enter the Fonts dialog, everything looks the same way as it does when "Smoothing" under the Font Rendering Details dialog is set to "None" (as per CRTs). It's as if the GTK applications assume no subpixel hinting until that Fonts dialog is opened.

Screenshots of this problem can be found here. Firefox is provided as an example of an application which is misbehaving; KDE Control Center is provided as an example of an application which looks nice.
Before opening the Fonts dialog: http://bahj.com/flotsam/fonts-before...rol-center.png
After opening the Fonts dialog: http://bahj.com/flotsam/fonts-after-...rol-center.png

Any help regarding this matter would be appreciated. Having to open the Fonts dialog every time I start KDE is irritating in tiny little ways...

Thanks!
 
Old 09-06-2006, 06:42 PM   #2
tvynr
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 143

Original Poster
Rep: Reputation: 15
Solved! Apparently, gnome-settings-daemon wasn't running; that was what was being launched by gnome-control-center that wasn't running before. The following command did the magic:
Code:
ln "`which gnome-settings-daemon`" "~/.kde/Autostart/./"
(The extra ./ is placed at the end to ensure that Autostart exists.)

Cheers!
 
  


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
fonts in gtk+ applications - disappearing? zefo Linux - Software 0 07-25-2006 08:21 AM
Changing the look of GTK applications jaakkop Linux - Software 6 03-05-2006 02:06 PM
Running gtk applications shezkhan Linux - Software 1 11-24-2005 09:32 AM
C or C++ when making GTK applications objorkum Programming 8 04-20-2005 03:19 PM
Firefox not using subpixel antialiasing? wintermute222 Linux - Software 6 03-15-2004 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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