Quickly increase virtual console ("TTY") font size on the fly
+2
−0
I just want to "zoom in/out" in the text console, is there a straightforward command to do that?
I have found various sources (1, 2, 3) that either suggest permanent changes (e.g. modifying configuration files such as /etc/default/console-setup
) or complicated procedures such as looking for available fonts in /usr/share/consolefonts
and then using the setfont
command with that.
1 answer
+2
−0
To double the font size: setfont -d
.
To revert to the default font: setfont
.
From the manual page:
-d Doubles the size of the font, by replicating all of its pixels
vertically and horizontally. This is suitable for high pixel
density (e.g. "4k") displays on which the standard fonts are too
small to be easily legible. Due to kernel limitations, this is
suitable only for 16x16 or smaller fonts.
One could also set up aliases with available fonts from
/usr/share/consolefonts/*psfu*
, such as
alias f1='setfont lat9w-14'
alias f2='setfont lat9w-16'
alias f3='setfont sun12x22'
alias f4='setfont solar24x32'
but of course this is not much handy on a different machine, an installation media or a rescue shell.
0 comment threads