LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing Font Size / Style in Gnome - How? (https://www.linuxquestions.org/questions/linux-newbie-8/changing-font-size-style-in-gnome-how-613847/)

ganesh.rao 01-15-2008 08:48 PM

Changing Font Size / Style in Gnome - How?
 
OS : CentOS 5 (final)
Desktop Env : Gnome
Version : 2.16.0

Question : How can I change the font face/style and font size of the desktop environment environment?

---------------------------------------


Hey,

I am technically not new to Linux but relatively new to the GUI. I administer RedHat/CentOS based servers remotely, so I have never used GUI before.

Last time I used the GUI was in Ubuntu, just to get the feel of a Debian based OS. Thats it. Now I got CentOS release 5 installed with Gnome as the Desktop Env.

Can anyone guide me on how I can change the font face/style and font size of the desktop environment? I'd probably want it to be Verdana and the font-size to be 12-40 - the default style sucks big time from my point of view. Been using Windows Vista for nearly 2 years, so its hard to get used to this type of font ~ I can barely read!

PS: I am not talking about the console, I mean the desktop environment itself.

marciobarbalho 01-15-2008 09:11 PM

Well, You could do this by editing a script, that's why I like slackware, doesn't matter, so. Create a new file, .gtkrc-2.0:
For example
Code:

style "user-font" {
        font_name = "DejaVu Sans 10"
}
widget_class "*" style "user-font"
gtk-font-name="DejaVu Sans 10"

save it in your /home/username directory and restart X.

How can one change firefox font size? yeah, actually XUL doesn't obey gtk settings!
Again, create another file:
Code:

* {
  font-size: 9pt !important;
}

name it exactly like this: userChrome.css, save it in the /home/username/.mozilla/firefox/*.default/chrome directory and restart firefox.
check *.default, it depends on the system etc.

That's it

ganesh.rao 01-15-2008 10:08 PM

Frankly speaking, I am running as root. So I save it in /root, right? Or are you compulsating me to save it on /home/some-specific-user?

marciobarbalho 01-15-2008 10:22 PM

Nope, of course you can save it in /root. However, I suggest you create a new user!

ganesh.rao 01-15-2008 10:40 PM

I just get pissed of with the password promtp, will use root.

This is just my desktop. Nothing serious ~ I use Windows for all other purposes.

harryhaller 05-24-2008 09:33 AM

An old problem solved!
 
Quote:

Originally Posted by marciobarbalho (Post 3023977)
Well, You could do this by editing a script, that's why I like slackware, doesn't matter, so. Create a new file, .gtkrc-2.0:
For example
Code:

style "user-font" {
        font_name = "DejaVu Sans 10"
}
widget_class "*" style "user-font"
gtk-font-name="DejaVu Sans 10"

save it in your /home/username directory and restart X.

Excellent tip, marciobarbalho!

I don't use gnome, but I use a few gnome programmes or, better said, programmes written to be run under gnome.

I was always really annoyed that the font sizs were too small - your tip has fixed that. Thanks!


All times are GMT -5. The time now is 01:02 AM.