public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/19] video: Introduce support for anti-aliased outline fonts
@ 2016-01-15  1:10 Simon Glass
  2016-01-15  1:10 ` [U-Boot] [PATCH 01/19] video: Add stb TrueType font renderer Simon Glass
                   ` (19 more replies)
  0 siblings, 20 replies; 33+ messages in thread
From: Simon Glass @ 2016-01-15  1:10 UTC (permalink / raw)
  To: u-boot

The existing 8x16 font is adequate for most purposes. It is small and fast.
However for boot screens where information must be presented to the user,
the console font is not ideal. Common requirements are larger and
better-looking fonts. In many systems U-Boot is 'behind the scenes' and
does not display user-facing data. For those situations where this is not
the case, we need to present firmware screens with visually attractive
menus.

This series adds a console driver which uses TrueType fonts built into
U-Boot. It can render them at any size. This can be used in scripts to
place text as needed on the display.

This driver is not really designed to operate with the command line. Much
of U-Boot expects a fixed-width font. But to keep things working correctly,
rudimentary support for the console is provided. The main missing feature is
support for command-line editing.

The TrueType implementation is STB, a fairly light-weight TrueType-rendering
implementation from http://nothings.org/. This integrates fairly easily with
U-Boot.

The driver is tested on sandbox and a few ARM hardware devices. It should
be possible to use it on any hardware. The main new dependency is floating
point which is available on many modern systems. Care is taken to ensure
this dependency is isolated to this one driver.


Simon Glass (19):
  video: Add stb TrueType font renderer
  Makefile: Add rules to build in .ttf files
  video kconfig console_normal
  video: Use fractional units for X coordinates
  video: Handle the 'bell' character
  video: Provide a left margin for the text console
  video: Provide a signal when a new console line is started
  video: Provide a backspace method
  video: Add a console driver that uses TrueType fonts
  video: Add the Nimbus sans font
  video: Add the AnkaCoder mono-spaced font
  video: Add the Rufscript handwriting font
  video: Add the Cantoraone decorative font
  License: Add the Open Font License
  video: Allow selection of the driver and font size
  video: sandbox: Allow selection of font size and console name
  video: sandbox: Enable truetype fonts for sandbox
  video: test: Add console tests for truetype
  video: Correct 'tor' typo in comment

 Licenses/OFL.txt                              |   97 +
 Licenses/README                               |    1 +
 configs/sandbox_defconfig                     |    4 +-
 drivers/video/Kconfig                         |   36 +-
 drivers/video/Makefile                        |    6 +-
 drivers/video/console_normal.c                |   24 +-
 drivers/video/console_rotate.c                |   66 +-
 drivers/video/console_truetype.c              |  550 +++++
 drivers/video/fonts/Kconfig                   |   51 +
 drivers/video/fonts/Makefile                  |   11 +
 drivers/video/fonts/ankacoder_c75_r.ttf       |  Bin 0 -> 65596 bytes
 drivers/video/fonts/cantoraone_regular.ttf    |  Bin 0 -> 163116 bytes
 drivers/video/fonts/nimbus_sans_l_regular.ttf |  Bin 0 -> 61660 bytes
 drivers/video/fonts/rufscript010.ttf          |  Bin 0 -> 23080 bytes
 drivers/video/sandbox_sdl.c                   |    2 +
 drivers/video/stb_truetype.h                  | 3240 +++++++++++++++++++++++++
 drivers/video/vidconsole-uclass.c             |   84 +-
 drivers/video/video-uclass.c                  |   29 +-
 include/dm/test.h                             |    2 +
 include/video.h                               |    7 +-
 include/video_console.h                       |   70 +-
 scripts/Makefile.lib                          |   21 +
 test/dm/video.c                               |   90 +-
 23 files changed, 4326 insertions(+), 65 deletions(-)
 create mode 100644 Licenses/OFL.txt
 create mode 100644 drivers/video/console_truetype.c
 create mode 100644 drivers/video/fonts/Kconfig
 create mode 100644 drivers/video/fonts/Makefile
 create mode 100644 drivers/video/fonts/ankacoder_c75_r.ttf
 create mode 100644 drivers/video/fonts/cantoraone_regular.ttf
 create mode 100644 drivers/video/fonts/nimbus_sans_l_regular.ttf
 create mode 100644 drivers/video/fonts/rufscript010.ttf
 create mode 100644 drivers/video/stb_truetype.h

-- 
2.6.0.rc2.230.g3dd15c0

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2016-01-30 13:11 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15  1:10 [U-Boot] [PATCH 00/19] video: Introduce support for anti-aliased outline fonts Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 01/19] video: Add stb TrueType font renderer Simon Glass
2016-01-15  1:50   ` Måns Rullgård
2016-01-15  1:56     ` Simon Glass
2016-01-21 16:56     ` Tom Rini
2016-01-21 17:05       ` Måns Rullgård
2016-01-15  1:10 ` [U-Boot] [PATCH 02/19] Makefile: Add rules to build in .ttf files Simon Glass
2016-01-21 19:11   ` Tom Rini
2016-01-15  1:10 ` [U-Boot] [PATCH 03/19] video kconfig console_normal Simon Glass
2016-01-23  0:14   ` [U-Boot] [PATCH v2 " Anatolij Gustschin
2016-01-15  1:10 ` [U-Boot] [PATCH 04/19] video: Use fractional units for X coordinates Simon Glass
2016-01-23  0:19   ` [U-Boot] [PATCH v2 " Anatolij Gustschin
2016-01-15  1:10 ` [U-Boot] [PATCH 05/19] video: Handle the 'bell' character Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 06/19] video: Provide a left margin for the text console Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 07/19] video: Provide a signal when a new console line is started Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 08/19] video: Provide a backspace method Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 09/19] video: Add a console driver that uses TrueType fonts Simon Glass
2016-01-23  0:21   ` [U-Boot] [PATCH v2 " Anatolij Gustschin
2016-01-15  1:10 ` [U-Boot] [PATCH 10/19] video: Add the Nimbus sans font Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 11/19] video: Add the AnkaCoder mono-spaced font Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 12/19] video: Add the Rufscript handwriting font Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 13/19] video: Add the Cantoraone decorative font Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 14/19] License: Add the Open Font License Simon Glass
2016-01-21 19:11   ` Tom Rini
2016-01-23  0:23   ` [U-Boot] [PATCH v2 " Anatolij Gustschin
2016-01-15  1:10 ` [U-Boot] [PATCH 15/19] video: Allow selection of the driver and font size Simon Glass
2016-01-23  0:24   ` [U-Boot] [PATCH v2 " Anatolij Gustschin
2016-01-15  1:10 ` [U-Boot] [PATCH 16/19] video: sandbox: Allow selection of font size and console name Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 17/19] video: sandbox: Enable truetype fonts for sandbox Simon Glass
2016-01-23  0:32   ` [U-Boot] [PATCH v2 " Anatolij Gustschin
2016-01-15  1:10 ` [U-Boot] [PATCH 18/19] video: test: Add console tests for truetype Simon Glass
2016-01-15  1:10 ` [U-Boot] [PATCH 19/19] video: Correct 'tor' typo in comment Simon Glass
2016-01-30 13:11 ` [U-Boot] [PATCH 00/19] video: Introduce support for anti-aliased outline fonts Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox