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
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

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.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »