Console Fonts: Difference between revisions

Created page
 
Pigs (talk | contribs)
m add link to fonts
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
It is possible to change the fonts used by the Linux console. The common fonts used by GUI applications cannot be used in the console. Instead, special console-specific fonts must be used. NixOS includes several such console fonts - links to them can be found in <code>/etc/static/kbd/consolefonts</code>.
It is possible to change the [[fonts]] used by the Linux console. The common fonts used by GUI applications cannot be used in the console. Instead, special console-specific fonts must be used. NixOS includes several such console fonts - links to them can be found in <code>/etc/static/kbd/consolefonts</code>.


=== Setting console font temporarily ===
=== Setting console font temporarily ===
Line 17: Line 17:
console.font = "/etc/static/kbd/consolefonts/Lat2-Terminus16.psfu.gz";
console.font = "/etc/static/kbd/consolefonts/Lat2-Terminus16.psfu.gz";
</syntaxhighlight>In order to use the direct path of a file found in this directory, the following would be necessary:<syntaxhighlight lang="nixos">
</syntaxhighlight>In order to use the direct path of a file found in this directory, the following would be necessary:<syntaxhighlight lang="nixos">
console.font = "${pkgs.kbd}/share/consolefonts/gr928-8x16-thin.psfu.gz";
console.font = "${pkgs.kbd}/share/consolefonts/Lat2-Terminus16.psfu.gz";
</syntaxhighlight>The console fonts included in NixOS are provided by <code>pkgs.kbd</code>, which should be included by default.
</syntaxhighlight>The console fonts included in NixOS are provided by <code>pkgs.kbd</code>, which should be included by default.
[[Category:Tutorial]]
[[Category:Tutorial]]
[[Category:CLI]]
[[Category:Fonts]]
[[Category:Configuration]]