font.rst 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .. SPDX-License-Identifier: GPL-2.0+:
  2. font command
  3. ============
  4. Synopis
  5. -------
  6. ::
  7. font list
  8. font select <name> [<size>]
  9. font size <size>
  10. Description
  11. -----------
  12. The *font* command allows selection of the font to use on the video console.
  13. This is available when the TrueType console is in use.
  14. font list
  15. ~~~~~~~~~
  16. This lists the available fonts, using the name of the font file in the build.
  17. font select
  18. ~~~~~~~~~~~
  19. This selects a new font and optionally changes the size.
  20. font size
  21. ~~~~~~~~~
  22. This changes the font size only.
  23. Examples
  24. --------
  25. ::
  26. => font list
  27. nimbus_sans_l_regular
  28. cantoraone_regular
  29. => font size 40
  30. => font select cantoraone_regular 20
  31. =>
  32. Configuration
  33. -------------
  34. The command is only available if CONFIG_CONSOLE_TRUETYPE=y.
  35. Return value
  36. ------------
  37. The return value $? is 0 (true) if the command completes.
  38. The return value is 1 (false) if the command fails.