Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs

Dashboard
Notifications
Mark all as read
Q&A

Quickly increase virtual console ("TTY") font size on the fly

+1
−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.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+1
−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.

Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!

Like what we're doing? Support us! Donate