linux system terminal method to modify fonts

  • 2020-05-07 20:49:09
  • OfStack

1. Set the console font by console-tools

1.1. Select and test appropriate font and font library files:


 # ls /usr/share/consolefonts/ 
 

1.2. Select favorite font files for testing:


# consolechars -f /usr/share/consolefonts/lat9w-16.psf.gz 
# consolechars -f /usr/share/consolefonts/lat2-16.psf.gz 

1.3. Save the console default font configuration:


# vi /etc/console-tools/config 

Set the appropriate font file as the default. If you choose lat2-16.psf.gz, you can set SCREEN_FONT to:
SCREEN_FONT=lat2-16

2. Set the console font through the console-setup service.

2.1. Install the console-setup service


apt-get install console-setup console-terminus 

console-terminus is a font of the same width that is easy to read quickly under the Linux console

2.2. Configure the console-setup service


# dpkg-reconfigure console-setup 

If you want to use terminus font, you can select 1 item in     from the dialog box of Set of characters that should be supported by console font:

Combined - Latin; Slavic Cyrillic; Greek 
Combined - Latin; Slavic and non-Slavic Cyrillic 

2.3. Loading and deactivation of console-setup services


/etc/init.d/console-setup {start|reload|restart|force-reload|stop}


Related articles: