OS: Ubuntu 18.04. I think it is distribution-independent. The Arch Linux uses the same principle, but do it by another way.
I set the
tty's font by editing the
CODESET="guess" FONTFACE="TerminusBold" FONTSIZE="22x11"
The font's file is located in the
/usr/share/consolefonts/. It has
PC Screen Font (PSF) is a bitmap font format currently employed by the Linux kernel for console fonts. Documentation of the PSF file format can be found within the source code of the Linux Kernel.
- Does kernel load this file into the kernel space?
- If not, then how the
tty(which resides in the kernel) renders characters from the
.psffile, which resides in the
- I were thinking, that the kernel is a solid piece of code, which doesn't use any user files (except kernel modules), for reliability and security reasons. Am I wrong? Or console fonts are exception?
- How can I check, which
.psffile was loaded specifically? Because the
/usr/share/consolefonts/folder has many
TerminusBold22x11.psf.gzfiles, with different codesets. I want to know which particular file was used. I check
syslog, but didn't find such information there.