LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Small fonts in Gnome application when running KDE (https://www.linuxquestions.org/questions/debian-26/small-fonts-in-gnome-application-when-running-kde-318031/)

Artik 04-28-2005 07:14 AM

Small fonts in Gnome application when running KDE
 
Hello,

I have some problems with "Gnome/GTK" based application when I run KDE (Like Synaptic or Firefox)

The fonts in menus are very small. It is very hard to read them and I can't adjust them.

KDE applications fonts look normally.
When running Gnome desktop all fonts are normal.

System: Debian Sarge 3.1
Desktop: KDE 3.3, Gnome 2.8,
Kernel:2.6.8
Login manager: GDM

Thanks

m_yates 04-28-2005 07:23 AM

You have to adjust font sizes in gnome. Try running:
Code:

gnome-control-center
If you don't have it, you will have to install it. The gnome control center has an option for adjusting fonts. The default is 10 point, but 11 point is easier to read.

Artik 04-28-2005 07:27 AM

But this will affect on fonts for both KDE and Gnome. I do not have problems when running Gnome Desktop the fonts have normal sizes. But when I run KDE Desktop and start some kind of GTK based application it shows small fonts in KDE.

Does font size change will affect only in KDE environment?
Or I missunderstood something

m_yates 04-28-2005 08:39 AM

I guess I misunderstood. Sorry. I do not know how you can do it only in KDE. I use KDE only and do not switch back and forth between Gnome. You can of course adjust font size depending on what desktop manager you use, but that isn't a great solution.

Artik 04-28-2005 08:59 AM

Actually that the main thing that prevents me from using KDE.

All GTK applications look....... Not so good. And because Gnome is also very good desktop (more robust) I use it now. However I'd like to use KDE also but the issue of fonts is little bit annoying.

Has anybody had this problem too?

Dead Parrot 04-28-2005 09:28 AM

Open a terminal window and type this command:
Code:

echo "Xft.dpi: 96" > $HOME/.Xresources
Then logout and login again. This should set the default font size to 96 for all applications.

m_yates 04-28-2005 09:48 AM

I found an interesting package called gtk2-engines-gtk-qt. I just installed it and it makes my gnome applications look pretty uniform with the other applications in KDE. I'm not sure how it affects things in gnome. From the synaptic descruiption of the package:
Quote:

theme engine using Qt for GTK+ 2.x
The GTK-Qt Theme Engine (also known as gtk-qt-engine) is a GTK 2 theme engine
that calls Qt to do the actual drawing. This makes your GTK 2 applications
look almost like real Qt applications and gives you a more unified desktop
experience.

Please note that this package is targeted at KDE users and therefore provides
a way to configure it from within KControl.

yotamk 04-28-2005 02:46 PM

I've had similar experience, and this is what made me switch from KDE to Gnome.
Still interested in a solution though :)
If you find one please post it here.

Artik 04-28-2005 03:06 PM

Some additional observations:
  • After I run gnome-control-center in KDE and just enter section of fonts without any changes the fonts become normal and all work fine. Thanks to m_yates. Thus even not applying any changes this load correct defaults for GTK applications
  • If I logout/login I have to run the fonts become small once more and I need to run gnome-control center one more time.
  • It seems to me that when you log into KDE it somehow doesn't load correct GTK libraries settings.

Have anybody find normal solution of the problem?

Artik 04-29-2005 07:58 AM

OK I've found the problem:
gnome-settings-daemon should be run on start-up in KDE in order to give correct settings for all GTK applications.

If I run it maually after start-up - all GTK apps work well Gimp, gedit, synaptic etc...

But how do I make gnome-settings-daemon run automatically on start-up?

In gnome I have option like Save session... What can I do in KDE. Can't find anything similar.

Thanks.

HappyTux 04-29-2005 12:40 PM

Quote:

Originally posted by Artik
OK I've found the problem:
gnome-settings-daemon should be run on start-up in KDE in order to give correct settings for all GTK applications.

If I run it maually after start-up - all GTK apps work well Gimp, gedit, synaptic etc...

But how do I make gnome-settings-daemon run automatically on start-up?

In gnome I have option like Save session... What can I do in KDE. Can't find anything similar.

Thanks.

Put a script in the .kde/env/ directory and it should be executed on startup.

Artik 04-30-2005 01:34 AM

Thanks HappyTux!!!

Worked!!!
I've put small script that starts gnome-settings-daem on in .kde/Autostart

That worked fine...
Now let's see what is better for me KDE or Gnome...

yotamk 04-30-2005 04:12 AM

Could you write here exactly how you did it?

What did you write in the script?
Under what name did you save it?
etc...

Thanks.

Artik 04-30-2005 04:19 AM

I've created following script in vim
vim gsd
Code:

#!/bin/bash
gnome-settings-daemon &

then make it executable:
Code:

chmod +x gsd
then move it to .kde/Autostart
Code:

mv gsd .kde/Autostart/
That's it
then you relog to KDE start gedit to see if fonts look ok.
I've tested afterwards gimp. synaptic all had worked fine.

yotamk 04-30-2005 04:23 AM

Quote:

gnome-settings-daemon &
What does the "&" stand for? :scratch:


All times are GMT -5. The time now is 06:16 PM.