Simon Glass | 9e972c3 | 2022-10-06 08:36:16 -0600 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
| 3 | font command |
| 4 | ============ |
| 5 | |
| 6 | Synopis |
| 7 | ------- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | font list |
| 12 | font select <name> [<size>] |
| 13 | font size <size> |
| 14 | |
Simon Glass | 9e972c3 | 2022-10-06 08:36:16 -0600 | [diff] [blame] | 15 | Description |
| 16 | ----------- |
| 17 | |
| 18 | The *font* command allows selection of the font to use on the video console. |
Heinrich Schuchardt | c261faa | 2023-01-21 17:18:14 +0100 | [diff] [blame] | 19 | This is available when the TrueType console is in use. |
Simon Glass | 9e972c3 | 2022-10-06 08:36:16 -0600 | [diff] [blame] | 20 | |
| 21 | font list |
| 22 | ~~~~~~~~~ |
| 23 | |
| 24 | This lists the available fonts, using the name of the font file in the build. |
| 25 | |
Simon Glass | 9e972c3 | 2022-10-06 08:36:16 -0600 | [diff] [blame] | 26 | font select |
| 27 | ~~~~~~~~~~~ |
| 28 | |
| 29 | This selects a new font and optionally changes the size. |
| 30 | |
Simon Glass | 9e972c3 | 2022-10-06 08:36:16 -0600 | [diff] [blame] | 31 | font size |
| 32 | ~~~~~~~~~ |
| 33 | |
| 34 | This changes the font size only. |
| 35 | |
Simon Glass | 9e972c3 | 2022-10-06 08:36:16 -0600 | [diff] [blame] | 36 | Examples |
| 37 | -------- |
| 38 | |
| 39 | :: |
| 40 | |
| 41 | => font list |
| 42 | nimbus_sans_l_regular |
| 43 | cantoraone_regular |
| 44 | => font size 40 |
| 45 | => font select cantoraone_regular 20 |
| 46 | => |
Heinrich Schuchardt | c261faa | 2023-01-21 17:18:14 +0100 | [diff] [blame] | 47 | |
| 48 | Configuration |
| 49 | ------------- |
| 50 | |
| 51 | The command is only available if CONFIG_CONSOLE_TRUETYPE=y. |
| 52 | |
| 53 | Return value |
| 54 | ------------ |
| 55 | |
| 56 | The return value $? is 0 (true) if the command completes. |
| 57 | The return value is 1 (false) if the command fails. |