Skip to content

video: Enhancements to Truetype console

Simon Glass u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16video: Move console colours to the video uclassdrivers/video/vidconsole-uclass.c drivers/video/video-uclass.c include/video.h +1 more+104 -1080 replies
2/16video: Provide a function to set the cursor positiondrivers/video/vidconsole-uclass.c include/video_console.h+25 -50 replies
3/16video: Use vidconsole_put_string() to write a stringdrivers/video/vidconsole-uclass.c+5 -40 replies
4/16video: Move the console commands to cmd/cmd/Kconfig cmd/Makefile cmd/video.c +2 more+87 -701 reply
5/16video: Move and rename DM_HX8238D optionarch/arm/mach-omap2/am33xx/Kconfig drivers/video/Kconfig drivers/video/Makefile+12 -120 replies
6/16video: Allow filling the display with a colourdrivers/video/video-uclass.c include/video.h+27 -60 replies
7/16video: Add function to obtain the U-Boot logodrivers/video/video-uclass.c include/video.h+12 -00 replies
8/16video: Tidy up the check for valid fontsdrivers/video/console_truetype.c+13 -40 replies
9/16video: Refactor to allow more than one font sizedrivers/video/Kconfig drivers/video/console_truetype.c+113 -420 replies
10/16video: Record the truetype font namedrivers/video/console_truetype.c+13 -100 replies
11/16video: Add a function to select the truetype metricsdrivers/video/console_truetype.c+17 -70 replies
12/16video: Add a way to change the font name and sizedrivers/video/console_truetype.c include/video_console.h+91 -00 replies
13/16video: Enable the cls command by defaultcmd/Kconfig+1 -10 replies
14/16video: Add commands to list and change fontscmd/Makefile cmd/font.c configs/sandbox_defconfig +8 more+240 -00 replies
15/16video: Add a function to get the dimensions of a BMP imagedrivers/video/video_bmp.c include/video.h+23 -40 replies
16/16video: Add a way to get the default font heightdrivers/video/video-uclass.c include/video.h+20 -00 replies

Reviews trailers per patch

1 of 16 patches has a Reviewed-by or Acked-by.

PatchIlias Apalodimas
1/16
2/16
3/16
4/16A-b
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog