LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-10-2009, 09:00 AM   #1
snucky
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Rep: Reputation: 0
terminal font size/type


Hi,

I am on a non-gui terminal (on a Debian Linux) and the font is so HUGE ! If I want to display a piece of code, it only fits 24 lines on the screen which is kind of sad

How do I change font size / type?

Thanks!!!
 
Old 06-10-2009, 11:13 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,988

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
In your /boot/grub/menu.lst file, look in the kernel line for an option that starts with:

vga=

Editing this option is one way to change the font size in your terminal. If you don't have a vga= option listed in the menu.lst line that begins with "kernel" w/o quotes, then the system will revert to the default resolution for your boot messages and terminal of 640x480. That's a safe resolution since every graphics card imaginable will support it but it will leave you with huge fonts. That's probably what's going on here.

If you want a better resolution you need to add a vga= option to the kernel line in menu.lst if there is none or edit the existing vga= option if there isn't. For a 1024x768 resolution insert/edit this into your kernel line options:

vga=791

that's the one I usually use. Most distros seem to prefer 800x600 which is what you get when you use:

vga=788

It's really a matter of personal preference.

Edit: Note, since the resolution change and the resulting smaller font is accomplished by passing a kernel parameter in menu.lst, you will have to reboot for the new resolution to be implemented.

Last edited by kilgoretrout; 06-10-2009 at 11:15 AM.
 
Old 06-11-2009, 12:13 AM   #3
snucky
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
sweet! thanks so much!
 
Old 06-11-2009, 08:59 AM   #4
snucky
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
widescreen resolution

I do have one more question, though. My laptop's native resultion is 1280x800, so I went to 1024x768 which makes the font look somewhat "stretched". It's a matter of what you'll get used to but I am definitely interested in more flexibility there.

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

I just found my solution here:
http://www.linuxforums.org/forum/gam...tty-fonts.html


Installing a program called hwinfo (hardware info) and using it to view the vga modes the card is capable of...
Code:
# hwinfo --framebuffer | grep Mode
...lets you find the exact options. Use hexadecimal number as your vga= value in /boot/grub/menu.lst and reboot.

Last edited by snucky; 06-11-2009 at 09:14 AM. Reason: solution found
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs - changing default font size and font type? neilcpp Linux - Software 16 05-20-2013 11:29 AM
How to change font color and font size in terminal ? wlaw Linux - Newbie 3 05-15-2007 08:57 PM
Virtual terminal font size. 11of10 Linux - Newbie 6 08-03-2006 03:02 PM
Changing terminal font size rose_bud4201 Linux - General 4 05-26-2005 08:17 AM
xterm font size and type centr0 Linux - Software 4 05-24-2003 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:58 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