diff options
author | Simon Glass <sjg@chromium.org> | 2022-10-06 08:36:16 -0600 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2022-10-30 20:01:40 +0100 |
commit | 430e1676a76bf8b7112c64e19cf64b988c281ee0 (patch) | |
tree | 97d40e3ae1f3305177622818c23d7195b3370e22 /doc | |
parent | 3f425f9ca75c8d1938579044fde37a6f7d5abe16 (diff) | |
download | u-boot-430e1676a76bf8b7112c64e19cf64b988c281ee0.zip u-boot-430e1676a76bf8b7112c64e19cf64b988c281ee0.tar.gz u-boot-430e1676a76bf8b7112c64e19cf64b988c281ee0.tar.bz2 |
video: Add commands to list and change fonts
Add a new 'font' command which allows the fonts to be listed as well as
selecting a different font and size.
Allow the test to run on sandbox, where multiple font/size combinations
are supported, as well as sandbox_flattree, where they are not.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/usage/cmd/font.rst | 52 | ||||
-rw-r--r-- | doc/usage/index.rst | 1 |
2 files changed, 53 insertions, 0 deletions
diff --git a/doc/usage/cmd/font.rst b/doc/usage/cmd/font.rst new file mode 100644 index 0000000..6fb0823 --- /dev/null +++ b/doc/usage/cmd/font.rst @@ -0,0 +1,52 @@ +.. SPDX-License-Identifier: GPL-2.0+: + +font command +============ + +Synopis +------- + +:: + + font list + font select <name> [<size>] + font size <size> + + +Description +----------- + +The *font* command allows selection of the font to use on the video console. +This is available when the Truetype console is in use. This is the case when +`CONFIG_CONSOLE_TRUETYPE` is enabled. + + +font list +~~~~~~~~~ + +This lists the available fonts, using the name of the font file in the build. + + +font select +~~~~~~~~~~~ + +This selects a new font and optionally changes the size. + + +font size +~~~~~~~~~ + +This changes the font size only. + + +Examples +-------- + +:: + + => font list + nimbus_sans_l_regular + cantoraone_regular + => font size 40 + => font select cantoraone_regular 20 + => diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 9022101..c601d35 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -48,6 +48,7 @@ Shell commands cmd/fatinfo cmd/fatload cmd/fdt + cmd/font cmd/for cmd/gpio cmd/load |