背景:
阅读新闻

Linux Console Font Size

  作者: 今日评论: [字体: ]

If you use the Linux console, the best way I found is:

in

/etc/default/console-setup

put, for example

CHARMAP="UTF-8"
CODESET="Lat7"
FONTFACE="Terminus"
FONTSIZE="28x14"

Another way is to use setfont from the kbd package:

setfont /usr/share/consolefonts/Lat7-Terminus28x14.psf

This works for my Debian; it may be different for you.

In Debian, you can also run dpkg-reconfigure -plow console-setup to be prompted for the various console settings and pick them from menus.

Edit - I put together a small page how to setup the font colors. The section that is relevant for this post has the header "the Linux VTs" (= ttys, or "console").57 bronze badges

  • 10
    Font sizes listed by dpkg-configure console-setup are: 6x12, 8x14, 8x16, 10x20, 11x22, 12x24, 14x28, and 16x32. – Casey Watson Apr 8 '15 at 5:17
  • 1
    I had to reboot for this to take effect – mt025 Apr 5 '17 at 0:11
  • I used dpkg-reconfigure console-setup solution, and after i made my selections of font options, it modified /etc/default/console-setup and ran update-initramfs (i suppose with -u option). However, your answer does not mention running update-initramfs. Is it necessary? – Alexey Jul 28 '18 at 13:33
  • @mt025 you may use the command setupcon to apply the changes. It is part of the console-setup package. – Jangid Mar 3 at 6:22
  • 1
    On some distros (at least on Arch), the fonts will be in /usr/share/kbd/consolefonts. I will add a separate answer to highlight the setfont solution. – Leif Arne Storset Mar 5 at 12:23

来源:
录入日期:[2020/10/29 23:44:00]
收藏 推荐 打印 | 录入:mikebai | 阅读:
文章评论      
正在加载评论列表...
评论表单加载中...