How can I change text console size

If you system is BIOS, then you are out of luck, unless there is a graphics card installed with VBE (VESA BIOS Extension), and then only when you alter the source code (BIOS systems boot loader is text only for newer supported branches, which doesn't permit font size / font settings).

On UEFI systems, there are two possibilities to change font size (and also font type).

The first options is to set the /boot/loader.conf(5) variable screen.font= with a value from /boot/fonts (i.e.: ="12x24" for /boot/fonts/12x24.fnt.gz). Those fonts are all Terminus type.

It's possible to populate /boot/fonts with gzip(1)ed .fnt fonts. For example:
Code:
 # cd /boot/fonts
 # mv 12x24.fnt.gz 12x24.fnt.gz.orig
 # gzip -c /usr/share/vt/fonts/spleen-12x24.fnt > 12x24.fnt.gz

There are some ".fnt" fonts in ports, that can be also used (x11-fonts/profont , x11-fonts/tamsyn), or downloaded from a another source. It seems not all .fnt fonts are working, based on reports here in forums.

The second option is to set the /etc/rc.conf(5) variable allscreens_flags="-f spleen-12x24" (for other fonts look under /usr/share/vt/fonts, test those executing vidfont(1)).

The difference between the configuration location is, when from loader.conf(5), the font is set in the very early stage, beginning at the boot menu.

If configured from rc.conf(5), the font (size, type) will be set in a late boot stage, when rc.conf is executed.
 
Back
Top