You are not logged in.

#1 2012-04-16 18:33:15

farangoth
Member
From: New Mills, England
Registered: 2012-04-16
Posts: 3

[Solved] Font size problem in GTK apps on an Openbox environement

Hello everyone.

I use Openbox 3.5 on Archlinux.
In some GTK app, like gnome-mplayer or Emacs, I have a too big font which don't match with the size on .gtkrc2.0 :

style "user-font" {
	font_name = "Sans 4"
}

widget_class "*" style "user-font"

gtk-font-name="Sans 4"

For example, a screenshot of my gnome-mplayer (to compare, look at the font on tint2)

http://img706.imageshack.us/img706/3676 … hotkhg.png


Where is the problem?

"Merci d'avance"

Last edited by farangoth (2012-04-16 18:55:10)

Offline

#2 2012-04-16 18:46:58

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: [Solved] Font size problem in GTK apps on an Openbox environement

I think it has to be a problem with the DPI setting. Install xset:

sudo pacman -S xorg-xrdb

and add to your ~/.Xresources

Xft.dpi:			96.0

and add to your ~/.xinitrc

xrdb -merge ~/.Xresources

before the exec openbox-session or exec ck-launch... line.
Set the DPI number in .Xresources to the one that is native of your monitor - to find out, search the internet for your monitor's user manual. Or just use 96.0.

Thy this and inform me if that did the trick. wink

Last edited by bjornoslav (2012-04-16 18:47:09)


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#3 2012-04-16 18:54:49

farangoth
Member
From: New Mills, England
Registered: 2012-04-16
Posts: 3

Re: [Solved] Font size problem in GTK apps on an Openbox environement

Thank you,
It's excatly the solution!

Offline

#4 2012-04-16 19:33:40

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: [Solved] Font size problem in GTK apps on an Openbox environement

I'm glad I could help. Please add [SOLVED] to the thread name.


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

Board footer

Powered by FluxBB