[PATCH 00/16] video: Enhancements to Truetype console

Simon Glass sjg at chromium.org
Thu Oct 6 16:36:02 CEST 2022


This series includes some minor enhancements to the Truetype console to
allow it to support multiple fonts and sizes at the same time. This is
useful for displays where the title needs to be in a larger font than the
rest of the text on the display.

The fonts must still be compiled into U-Boot, but now it is possible to
change fonts as needed.

Some other minor fixes and tweaks are included as well.

This is mostly in service of the upcoming VBE boot menu which needs to
make better use of fonts.


Simon Glass (16):
  video: Move console colours to the video uclass
  video: Provide a function to set the cursor position
  video: Use vidconsole_put_string() to write a string
  video: Move the console commands to cmd/
  video: Move and rename DM_HX8238D option
  video: Allow filling the display with a colour
  video: Add function to obtain the U-Boot logo
  video: Tidy up the check for valid fonts
  video: Refactor to allow more than one font size
  video: Record the truetype font name
  video: Add a function to select the truetype metrics
  video: Add a way to change the font name and size
  video: Enable the cls command by default
  video: Add commands to list and change fonts
  video: Add a function to get the dimensions of a BMP image
  video: Add a way to get the default font height

 arch/arm/mach-omap2/am33xx/Kconfig |   2 +-
 cmd/Kconfig                        |  14 +-
 cmd/Makefile                       |   3 +
 cmd/font.c                         |  81 +++++++++
 cmd/video.c                        |  73 ++++++++
 configs/sandbox_defconfig          |   1 +
 doc/usage/cmd/font.rst             |  52 ++++++
 doc/usage/index.rst                |   1 +
 drivers/video/Kconfig              |  43 +++--
 drivers/video/Makefile             |   2 +-
 drivers/video/console_truetype.c   | 265 +++++++++++++++++++++++------
 drivers/video/vidconsole-uclass.c  | 145 ++--------------
 drivers/video/video-uclass.c       | 102 ++++++++++-
 drivers/video/video_bmp.c          |  16 +-
 include/test/suites.h              |   1 +
 include/video.h                    |  75 +++++++-
 include/video_console.h            |  64 +++----
 test/cmd/Makefile                  |   1 +
 test/cmd/font.c                    |  77 +++++++++
 test/cmd_ut.c                      |   6 +
 20 files changed, 777 insertions(+), 247 deletions(-)
 create mode 100644 cmd/font.c
 create mode 100644 cmd/video.c
 create mode 100644 doc/usage/cmd/font.rst
 create mode 100644 test/cmd/font.c

-- 
2.38.0.rc1.362.ged0d419d3c-goog



More information about the U-Boot mailing list