[PATCH v3 0/9] vidconsole: refactoring and support for wider fonts

Dzmitry Sankouski dsankouski at gmail.com
Wed Feb 15 12:42:51 CET 2023


Modern mobile phones typically have high pixel density.
Bootmenu is hardly readable on those with 8x16 font.

This patch series aims to add wider fonts for devices with high ppi.

Add 16x32, 12x22 fonts from linux, and allow font size configuration.

There was significant changes in version 2:
- fix video tests failures
- add runtime font size configuration
- add test for 12x22 font

In version 3,
'video console: add select font logic to vidconsole uclass driver'
patch was removed in favor of already merged patch
'video: Add font functions to the vidconsole API'

Dzmitry Sankouski (9):
  video console: unite normal and rotated files
  video console: refactoring and optimization
  video console: add support for fonts wider than 1 byte
  video console: move 8x16 font data in named header
  video console: implement multiple fonts configuration
  video console: allow font size configuration at runtime
  video console: add 12x22 Sun font from linux
  video console: add 16x32 Terminus font from linux
  video console: add 12x22 console simple font test

 cmd/Kconfig                    |    8 +
 cmd/Makefile                   |    2 +-
 common/splash.c                |   17 +-
 configs/sandbox_defconfig      |    3 +
 drivers/video/Kconfig          |   38 +-
 drivers/video/Makefile         |    3 +-
 drivers/video/console_normal.c |  178 -
 drivers/video/console_rotate.c |  497 ---
 drivers/video/console_simple.c |  682 ++++
 include/video_font.h           |   31 +-
 include/video_font_4x6.h       |   11 +-
 include/video_font_8x16.h      | 4624 ++++++++++++++++++++++++
 include/video_font_data.h      | 4644 +-----------------------
 include/video_font_sun12x22.h  | 6158 ++++++++++++++++++++++++++++++++
 include/video_font_ter16x32.h  | 2062 +++++++++++
 test/dm/video.c                |   41 +
 16 files changed, 13679 insertions(+), 5320 deletions(-)
 delete mode 100644 drivers/video/console_normal.c
 delete mode 100644 drivers/video/console_rotate.c
 create mode 100644 drivers/video/console_simple.c
 create mode 100644 include/video_font_8x16.h
 create mode 100644 include/video_font_sun12x22.h
 create mode 100644 include/video_font_ter16x32.h

-- 
2.30.2



More information about the U-Boot mailing list