How do I change the font or the font size in the TTY (console)?

I am using Ubuntu 12.04. Recently, the font size for all of my TTYs became much larger. How can I change the font size back to the default?


Solution 1:

To adjust the font/font-size used for the TTY, run sudo dpkg-reconfigure console-setup, which will guide you through the steps to choose a font and font-size:

  1. Choose the default UTF-8, and press Tab to go highlight OK and then press Enter to go to the next step. (You can press it again and highlight Cancel to go back.)

    enter image description here

  2. Choose the default Combined - Latin, ... option ("Latin" includes the English alphabet) and proceed to step 3:

    enter image description here

  3. Select the font - be sure to read the notes above on the visual effect different fonts can have:

    enter image description here

  4. Select the font size:

    enter image description here

  5. Now you will exit console-setup; as the displayed message says, the new settings will be effective after reboot. To apply immediately, open a TTY and run setupcon.

Solution 2:

Since the other answers did not work for my HiDPI display to increase the font size, after some research I found https://askubuntu.com/a/1134018/73759 to be working.

Edit the file /etc/default/console-setup

sudo nano /etc/default/console-setup

and change the values for font type and font size to

FONTFACE="TER"
FONTSIZE="16x32"

Save the file and apply the changes with

sudo update-initramfs -u

On the next reboot you will have a much larger font in your TTY.

I know this is not the answer to the specific question above but the title just says "change the font size" and this is the top search result on google, so I hope I can help some people here.