blob: a87825463332165e825fe9a9c3f8778e05ce2da3 [file] [log] [blame]
Simon Glass430e1672022-10-06 08:36:16 -06001.. SPDX-License-Identifier: GPL-2.0+:
2
Heinrich Schuchardt60971e62024-01-14 14:53:13 +01003.. index::
4 single: font (command)
5
Simon Glass430e1672022-10-06 08:36:16 -06006font command
7============
8
Heinrich Schuchardt98b5ea12024-03-16 11:09:36 +01009Synopsis
10--------
Simon Glass430e1672022-10-06 08:36:16 -060011
12::
13
14 font list
15 font select <name> [<size>]
16 font size <size>
17
Simon Glass430e1672022-10-06 08:36:16 -060018Description
19-----------
20
21The *font* command allows selection of the font to use on the video console.
Heinrich Schuchardtf4ece682023-01-21 17:18:14 +010022This is available when the TrueType console is in use.
Simon Glass430e1672022-10-06 08:36:16 -060023
24font list
25~~~~~~~~~
26
27This lists the available fonts, using the name of the font file in the build.
28
Simon Glass430e1672022-10-06 08:36:16 -060029font select
30~~~~~~~~~~~
31
32This selects a new font and optionally changes the size.
33
Simon Glass430e1672022-10-06 08:36:16 -060034font size
35~~~~~~~~~
36
37This changes the font size only.
38
Simon Glass430e1672022-10-06 08:36:16 -060039Examples
40--------
41
42::
43
44 => font list
45 nimbus_sans_l_regular
46 cantoraone_regular
47 => font size 40
48 => font select cantoraone_regular 20
49 =>
Heinrich Schuchardtf4ece682023-01-21 17:18:14 +010050
51Configuration
52-------------
53
54The command is only available if CONFIG_CONSOLE_TRUETYPE=y.
55
56Return value
57------------
58
59The return value $? is 0 (true) if the command completes.
60The return value is 1 (false) if the command fails.