1. 程式人生 > >調整tty文字模式終端字型大小

調整tty文字模式終端字型大小

以debian為例,介紹兩種設定方法。
1.通過console-tools設定控制檯字型
1.1.選用並測試合適的字型和字型檔檔案:
dell:~# ls /usr/share/consolefonts/
1.2.測試選用喜愛的字型檔檔案:
dell:~# consolechars -f /usr/share/consolefonts/lat9w-16.psf.gz
dell:~# consolechars -f /usr/share/consolefonts/lat2-16.psf.gz
1.3.儲存控制檯預設字型配置:
dell:~# vi /etc/console-tools/config
將合適的字型檔檔案設定為預設,如果選擇lat2-16.psf.gz 字型檔檔案,可將SCREEN_FONT設成:
SCREEN_FONT=lat2-16


2.通過console-setup服務,設定控制檯字型。
2.1.安裝console-setup服務

apt-get install console-setup console-terminus
其中:console-terminus是在 Linux 控制檯下便於快速閱讀的等寬字型,也是很多人比較喜歡的字型
2.2.配置console-setup服務
dell:~# dpkg-reconfigure console-setup
如果要選用terminus字型,在Set of characters that should be supported by the console font: 的對話方塊中可選擇以下中的一項:
. Combined - Latin; Slavic Cyrillic; Greek
. Combined - Latin; Slavic and non-Slavic Cyrillic
2.3.console-setup服務的裝載與停用
/etc/init.d/console-setup {start|reload|restart|force-reload|stop}

在Ubuntu Linux作業系統下調整終端字型 方法一: sudo vim /etc/default/console-setup 將其中的 CODESET FONTFACE FONTSIZE改了就行。 一般推薦: CODESET="Hebrew" FONTFACE="VGA" FONTSIZE="16" 方法二: sudo dpkg-reconfigure console-setup