You are not logged in.

#1 2008-02-26 16:21:32

Atticus
Member
Registered: 2007-06-14
Posts: 52

[Solved] Changing fonts of QT and GTK apps in Openbox (no DM)

hi all, I'm trying to get a uniform font look/size for all my apps.  I'm running Openbox with xcompmgr and no DM, but I am running kde/qt3/qt4 apps (k3b, amarok, dolphin) and I'm running GTK apps (geany).  I've got the fonts actually looking really good all over, but in those apps they're just bigger than I want them to be.  In the kde apps, the menu/widget fonts are all a bit bigger than I want them to be and I can't find a way to change that.  I've got a similar problem with Geany and some other gtk apps.

Anyone have some tips?

Last edited by Atticus (2008-02-26 18:13:10)

Offline

#2 2008-02-26 16:40:01

Atticus
Member
Registered: 2007-06-14
Posts: 52

Re: [Solved] Changing fonts of QT and GTK apps in Openbox (no DM)

I found the gtk2_prefs package in the repository and that allowed me to make the changes I wanted for the gtk2 apps I have.  I'm still looking for a QT fix though.  I've been trying the program in /opt/qt/bin/qtconfig but the changes don't seem to be taking hold.

Offline

#3 2008-02-26 17:03:43

stojic
Member
From: Zagreb, Croatia
Registered: 2008-02-24
Posts: 51

Re: [Solved] Changing fonts of QT and GTK apps in Openbox (no DM)

If those are KDE apps (EDIT: they are, I should read more carefully smile) you can edit [General] section of ~/.kde/share/config/kdeglobals. This is from my kdeglobals:

[General]
StandardFont=Verdana,8,-1,5,50,0,0,0,0,0
activeFont=Verdana,8,-1,5,75,0,0,0,0,0
fixed=Monospace,9,-1,5,50,0,0,0,0,0
font=Verdana,8,-1,5,50,0,0,0,0,0
menuFont=Verdana,8,-1,5,50,0,0,0,0,0
taskbarFont=Verdana,8,-1,5,50,0,0,0,0,0
toolBarFont=Verdana,8,-1,5,50,0,0,0,0,0

First value is font name and the second one is font size, I don't know about the others.

Sometimes font replacements done by fontconfig will replace fonts set by qtconfig, see links in /etc/fonts/conf.d to find out which fonts are being replaced.

Last edited by stojic (2008-02-26 17:05:17)

Offline

#4 2008-02-26 18:12:45

Atticus
Member
Registered: 2007-06-14
Posts: 52

Re: [Solved] Changing fonts of QT and GTK apps in Openbox (no DM)

Thanks stojic, that did the trick perfectly!

Offline

Board footer

Powered by FluxBB