LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2008, 08:48 PM   #1
ganesh.rao
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Arrow 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.
 
Old 01-15-2008, 09:11 PM   #2
marciobarbalho
Member
 
Registered: Dec 2007
Location: Brazil
Distribution: slackware 13
Posts: 151

Rep: Reputation: 30
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

Last edited by marciobarbalho; 01-15-2008 at 09:17 PM.
 
Old 01-15-2008, 10:08 PM   #3
ganesh.rao
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
Old 01-15-2008, 10:22 PM   #4
marciobarbalho
Member
 
Registered: Dec 2007
Location: Brazil
Distribution: slackware 13
Posts: 151

Rep: Reputation: 30
Nope, of course you can save it in /root. However, I suggest you create a new user!
 
Old 01-15-2008, 10:40 PM   #5
ganesh.rao
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 05-24-2008, 09:33 AM   #6
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 472

Rep: Reputation: Disabled
Thumbs up An old problem solved!

Quote:
Originally Posted by marciobarbalho View Post
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!
 
  


Reply

Tags
desktop, environment, font, gnome, kde, size, style


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font size in Console? stitchman Slackware 6 02-21-2021 06:48 PM
Emacs - changing default font size and font type? neilcpp Linux - Software 16 05-20-2013 11:29 AM
changing the font size prasanta Linux - Newbie 1 04-20-2005 06:49 AM
Changing font size kamransoomro84 Programming 2 06-27-2004 10:54 PM
Changing console font size frankietomatoes Linux - General 5 06-11-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration