Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Unix-like OS installed without desktop. Is it possible to change the font of the terminal?

share|improve this question

migrated from stackoverflow.com Oct 3 '12 at 15:41

This question came from our site for professional and enthusiast programmers.


If you use the Linux console, the best way I found is:



put, for example


Another way is to use setfont:

setfont /usr/share/consolefonts/Lat7-Terminus28x14.psf

This works for my Debian; it may be different for you.

In Debian, you can also run dpkg-reconfigure -plow console-setup to be prompted for the various console settings and pick them from menus.

Edit - I put together a small page how to setup the font colors. The section that is relevant for this post has the header "the Linux VTs" (= ttys, or "console").

share|improve this answer
Font sizes listed by dpkg-configure console-setup are: 6x12, 8x14, 8x16, 10x20, 11x22, 12x24, 14x28, and 16x32. – Casey Watson Apr 8 '15 at 5:17

If you want to use nearly any X-compatible font you should have a look at David Herrman's work on kmscon. The name slightly belies the project, actually, as Kernel Mode Setting is not a requirement for it to work - it also works with with frame-buffer devices - for instance if you are using proprietary AMD or nvidia display drivers. With kmscon you get multi-seat session management, xterm like keyboard and UTF-8 font handling and session control. Changing the font can be done via the /etc/kmscon/kmscon.conf or via a command-line option.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.