LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-07-2006, 08:30 AM   #1
anirudh.iitm
LQ Newbie
 
Registered: Jun 2006
Location: chennai , india
Distribution: ubuntu
Posts: 26

Rep: Reputation: 15
change bash shell font size


hi
i want to change the default bash shell font size to a bigger font size.if possible i also want to change the default font.
plz tell which file(.bash_profile or .bashrc)should i modify ,and how to achieve this.
thnx.
 
Old 08-07-2006, 09:23 AM   #2
sabit
Member
 
Registered: Dec 2004
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
What distro are you using? (Please post it or better specify it in your profile so that it appears along with your name, location etc.) I assume you are talking about console fonts and not XTerm fonts. There should be a lot of fonts in the /usr/share/consolefonts directory. Now, where you need to specify a different font name depends on your distro. For redhat (or FC) it is most likely in /etc/sysconfig/console. Change the value of the FONT entry to something like
FONT="ter-120n"
This is Terminus font, which is my favorite

All the fonts in that directory are compressed, so just leave out the psf.gz suffix when specifying one in the config file.

You can also specify font using the setfont command from console, but I am too lazy to find out how

Last edited by sabit; 08-07-2006 at 10:21 AM.
 
Old 08-07-2006, 09:27 AM   #3
anamericanjoe
Member
 
Registered: May 2006
Posts: 69

Rep: Reputation: 16
Font sizes generally are not set in .bash_profile or .bashrc.

Font sizes depend more on the terminal than the shell. Would you like to change the font size in a terminal emulator, such as konsole, xterm, or aterm, or are would you like to change the font size of the console itself?
 
Old 08-07-2006, 09:33 AM   #4
anirudh.iitm
LQ Newbie
 
Registered: Jun 2006
Location: chennai , india
Distribution: ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
i wanted to change the font size in the terminal
 
Old 08-07-2006, 09:37 AM   #5
sabit
Member
 
Registered: Dec 2004
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
Quote:
Originally Posted by anirudh.iitm
i wanted to change the font size in the terminal
Xterm? or Console?
 
Old 08-07-2006, 09:40 AM   #6
anirudh.iitm
LQ Newbie
 
Registered: Jun 2006
Location: chennai , india
Distribution: ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
in console
 
Old 08-07-2006, 06:58 PM   #7
anamericanjoe
Member
 
Registered: May 2006
Posts: 69

Rep: Reputation: 16
I've had some luck with the setfont command in the past. One caveat: I know this works with a buffered terminal.

For the best results on your machine, try looking through the man page for setfont.

My setfont man page says:

Code:
NAME
       setfont - load EGA/VGA console screen font

...


       setfont drdos8x16
              Load a given font (here the 448-glyph drdos font).

...


FILES
       /usr/share/kbd/consolefonts    is    the    default    font    directory.
       /usr/share/kbd/unimaps   is  the  default  directory  for  Unicode  maps.
       /usr/share/kbd/consoletrans is the default directory for screen mappings.

So, when I want to change my console font:
Code:
cd /usr/share/kdb/consolefonts
ls
At this point, hopefully you will see a lot of *.gz files. These are all the different fonts you can select from for your console.

The naming scheme for the fonts are typically as follows:
<name>-<width>x<height>.gz

So, choose a font name and size you think you'd like and enter the following command:

Code:
setfont <name>-<width>x<height>
Basically, you enter the font's entire file name except for the .gz part, so if the naming scheme of your fonts are different than mine, keep that in mind.

I hope that helps!
 
  


Reply


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
I need a way to change the font size in Thunderbird royeo Linux - Newbie 15 11-06-2009 12:10 AM
how 2 change font size OF chromedit? OpenMacNews Linux - Software 0 08-29-2005 10:55 AM
Where i can change the X font size dr_doom Linux - Software 0 04-09-2004 12:17 PM
change console font size? andrewlkho Debian 4 07-07-2003 12:48 PM
is it possible to change the font size for these apps? saturn_vk Linux - Software 4 06-13-2003 04:26 PM

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

All times are GMT -5. The time now is 07:13 AM.

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