LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Fonts in some GTK applications look "wrong" (https://www.linuxquestions.org/questions/linux-general-1/fonts-in-some-gtk-applications-look-wrong-333571/)

foucault 06-14-2005 03:34 PM

Fonts in some GTK applications look "wrong"
 
Hi everyone,
To better understand what I am talking about take a look at the following screenshot of Aria download manager:

http://img35.echo.cx/img35/8576/falsescreen5iv.jpg

As you can see, everything on the program is hardly readable. All fonts look crappy!!

This happens in a lot of similar applications (eg GnuCash, xmms, GnomeCard and so on). I am working at a 1280x1024 resolution. Switching back to a lower resolution (any one), fonts are looking fine. I was thinking if there is a way to fix that most annoying situation, considering that half of my applications look like that. Obviously using a lower resolution isn't the better option 'cause it is a bit uncomfortable working with a 20" CRT monitor in a resolution below 1280x1024.

I am using gnome 2.6 exclusively as my default window manager. Of course the same problem exists under KDE. My distro is Mandrake 10.1 Official (Kernel 2.6.8.1-12mdk-smp)

Thank you all in advance for your patience to stop by
F.

SciYro 06-14-2005 04:36 PM

try using a different font, and see what happens when you change font size

reddazz 06-14-2005 05:12 PM

That looks like a KDE/qt application and not a gnome/gtk app.

foucault 06-15-2005 03:34 AM

And how is it possible to change the font size? Through GConf?

reddazz 06-15-2005 03:41 AM

I have just realised its a gtk+ (gtk 1 app) using KDE 2 icons. I am not sure how you can change the fonts using gconf. Can't you change the fonts from its own settings option. If not you can use another download manager like gwget which fits in nicely with gnome 2.x desktops because its writtn in gtk2.

foucault 06-15-2005 10:34 AM

Quote:

Originally posted by reddazz
I have just realised its a gtk+ (gtk 1 app) using KDE 2 icons. I am not sure how you can change the fonts using gconf. Can't you change the fonts from its own settings option. If not you can use another download manager like gwget which fits in nicely with gnome 2.x desktops because its writtn in gtk2.
Aria was just an example. There are a lot of applications that have the same problem.

Lintegwathion 06-16-2005 02:36 PM

With gtk2 apps you could always create the file ~/.gtkrc-2.0 and add the following line:
Code:

gtk-font-name = "Sans 12"
As for gtk1 i suppose you could try adding the same line in ~/.gtkrc

SciYro 06-16-2005 07:58 PM

he uses gnome ...... in gnome its best not to edit config files (i had gnome get pissed at me, and blow up in my face (not literally .... but you get the idea)

the config panel it has built in lets you change fonts

Lintegwathion 06-17-2005 10:16 AM

true, gnome-settings-daemon should do the work for him.

foucault 06-19-2005 03:10 PM

Quote:

Originally posted by Lintegwathion
true, gnome-settings-daemon should do the work for him.
Could you be a little more specific?
Thank you!

foucault 06-19-2005 03:13 PM

Quote:

Originally posted by Lintegwathion
With gtk2 apps you could always create the file ~/.gtkrc-2.0 and add the following line:
Code:

gtk-font-name = "Sans 12"
As for gtk1 i suppose you could try adding the same line in ~/.gtkrc

And that didn't work!

PMorph 06-20-2005 01:36 PM

How about this?

style "gtk-default"
{
font = "-*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*"
}
class "*" style "gtk-default"

foucault 06-20-2005 02:14 PM

Quote:

Originally posted by PMorph
How about this?

style "gtk-default"
{
font = "-*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*"
}
class "*" style "gtk-default"

I am afraid this does not work either. I create a file $HOME/.gktrc and add the lines but I have no results. Am I making smth wrong?

There wasn't any gtkrc on my home folder. There was a .gtkrc-1.2-gnome2 file. I tried to edit that one but it keeps changing to the default all the time
Code:

# Autowritten by gnome-settings-daemon. Do not edit

include "/usr/share/themes/Raleigh/gtk/gtkrc"

include "/home/foucault/.gtkrc.mine"

I have to point out that there is no .gtkrc.mine file on my home directory. The first one does exist and contains the following

Code:

# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#
# include "rc-file"
#
# style <name> [= <name>]
# {
#  <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>

style "default"
{
  engine "raleigh"
    {
    }
}

class "GtkWidget" style "default"


foucault 06-21-2005 11:43 AM

I have also noticed that under 1600x1200 resolution everything is looking fine. What could be wrond with 1280x1024 and 1280x960 resolutions??


All times are GMT -5. The time now is 04:58 AM.