Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GTK1 fonts huge and cannot change [SOLVED!]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cbeley
n00b
n00b


Joined: 16 Sep 2007
Posts: 28

PostPosted: Sun Jun 21, 2009 6:20 pm    Post subject: GTK1 fonts huge and cannot change [SOLVED!] Reply with quote

Two programs that I use quite a bit: pidgin and wifiradar, both have huge fonts compared with everything else. To have gtk2 fonts look right I currently have the following in .gtkrc-2.0:

Code:

style "user-font"
{
font_name="Verdana 12"
}
widget_class "*" style "user-font"

gtk-font-name="Verdana 8"


I tried creating a new file called .gtkrc and adding the above to it with no luck. I also tried renaming the file to .gtkrc-1, .gtkrc-1.2, and .gtkrc-1.0 still with no luck.

Next thing I tried was to change it globally, but I do not have a /etc/gtk-1.0 folder (just /etc/gtk-2.0).

What is peculiar about this is that the only things done to cause this was a kernel upgrade, xorg upgrade to 1.6.1.901-r3, and now editing /usr/kde/3.5/share/config/kdm/kdmrc 's ServerArgsLocal attribute to include -dpi 96 to temporarily fix another problem I was having.

Any ideas on how to get my GTK1 fonts working again? I can live with huge fonts for wifi-radar considering I don't look at it that much, but I use pidgin all the time :S


Last edited by cbeley on Sun Jun 21, 2009 9:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
yumyum
n00b
n00b


Joined: 06 Nov 2008
Posts: 38
Location: Iceland

PostPosted: Sun Jun 21, 2009 6:40 pm    Post subject: Reply with quote

try creating a ~/.gtkrc.mine and editing that file.
_________________
Would you mind telling me why there is ricearoni in my coffee!?
Back to top
View user's profile Send private message
cbeley
n00b
n00b


Joined: 16 Sep 2007
Posts: 28

PostPosted: Sun Jun 21, 2009 6:45 pm    Post subject: Reply with quote

thanks, but I actually tried that also, and either way, I don't think .gtkrc.mine is standard anyway.

For kicks, I tried it again, and restarted pidgin with no change. :(
Back to top
View user's profile Send private message
yumyum
n00b
n00b


Joined: 06 Nov 2008
Posts: 38
Location: Iceland

PostPosted: Sun Jun 21, 2009 6:49 pm    Post subject: Reply with quote

Yea, sorry I can't help any further, but doesn't pidgin use gtk2 ?
_________________
Would you mind telling me why there is ricearoni in my coffee!?
Back to top
View user's profile Send private message
cbeley
n00b
n00b


Joined: 16 Sep 2007
Posts: 28

PostPosted: Sun Jun 21, 2009 6:53 pm    Post subject: Reply with quote

That's what I thought, but according to portage it only has the gtk use flag, and not gtk2 ....that's another thing I'm a little confused about.

EDIT: It must be GTK2 since it seems to be using my GTK2 theme....but....that doesn't explain the font issues.

I even tried using pidgins GTK editor plugin with no luck :S

EDIT2: The same goes for wifi-radar. It also appears to be using my GTK2 theme. So, now I"m really confused, because my little trick in my first post should adjust the fonts for those two applications.

EDIT3: According to http://developer.pidgin.im/wiki/Using%20Pidgin#HowdoIchangethefontPidginusesThebackgroundcolor , what I have done should do the trick. But, for whatever reason, pidgin and wifi-radar seem to be ignoring .gtkrc-2.0 . Pidgin even ignores its own .purple/gtkrc-2.0 file :S
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sun Jun 21, 2009 9:13 pm    Post subject: Reply with quote

Does the following work? Add the following to ~/.Xdefaults
Code:
*.dpi:              96
Then do a
Code:
xrdb -load ~/.Xdefault
Now open pidgin/wifi-radar.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
cbeley
n00b
n00b


Joined: 16 Sep 2007
Posts: 28

PostPosted: Sun Jun 21, 2009 9:26 pm    Post subject: Reply with quote

ppurka wrote:
Does the following work? Add the following to ~/.Xdefaults
Code:
*.dpi:              96
Then do a
Code:
xrdb -load ~/.Xdefault
Now open pidgin/wifi-radar.


No luck :( I actually had something similar set up in there already (used xft.dpi instead though) and had it looked at at boot before your suggestion as well.

EDIT: Alright, I found out something very interesting. If I remove my .gtkrc-2.0 file or comment out what I had in it (mentioned in my first post), the fonts are correct in pidgin and wifi-radar. However, when I do that, the fonts in firefox, thunderbird, etc. are messed up again.

EDIT2: ALRIGHT! I found a solution. I changed my .gtkrc-2.0 file so that it only contains the following (left out my theme stuff):

Code:

gtk-font-name="Verdana 8"


Now all my gtk apps have fonts that look correct. :) For whatever reason, the style was messing something up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum