From 84b4791ada7754b65fd200002f92ac8684c2b5ec Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 14 Jan 2016 18:10:43 -0700 Subject: video: Add the Nimbus sans font This provides a good-looking font for user prompts. Signed-off-by: Simon Glass --- drivers/video/console_truetype.c | 5 +++++ drivers/video/fonts/Kconfig | 13 +++++++++++++ drivers/video/fonts/Makefile | 2 ++ drivers/video/fonts/nimbus_sans_l_regular.ttf | Bin 0 -> 61660 bytes 4 files changed, 20 insertions(+) create mode 100644 drivers/video/fonts/nimbus_sans_l_regular.ttf diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index b770ad446ea..46c5205853c 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -444,7 +444,12 @@ struct font_info { .end = __ttf_ ## _name ## _end, \ } +FONT_DECL(nimbus_sans_l_regular); + static struct font_info font_table[] = { +#ifdef CONFIG_CONSOLE_TRUETYPE_NIMBUS + FONT_ENTRY(nimbus_sans_l_regular), +#endif {} /* sentinel */ }; diff --git a/drivers/video/fonts/Kconfig b/drivers/video/fonts/Kconfig index ad16ce655e6..ded3e5ef64e 100644 --- a/drivers/video/fonts/Kconfig +++ b/drivers/video/fonts/Kconfig @@ -4,4 +4,17 @@ menu "TrueType Fonts" +config CONSOLE_TRUETYPE_NIMBUS + bool "Nimbus Sans Regular" + depends on CONSOLE_TRUETYPE + help + Nimbus Sans L is a version of Nimbus Sans using Adobe font sources. + It was designed in 1987. A subset of Nimbus Sans L were released + under the GPL. Although the characters are not exactly the same, + Nimbus Sans L has metrics almost identical to Helvetica and Arial. + (From Wikipedia, the free encyclopedia) + From: https://fontlibrary.org/en/font/nimbus-sans-l + License: GNU GPL v3 + http://www.gnu.org/copyleft/gpl.html + endmenu diff --git a/drivers/video/fonts/Makefile b/drivers/video/fonts/Makefile index 6ab46473b29..68f4c3be2a6 100644 --- a/drivers/video/fonts/Makefile +++ b/drivers/video/fonts/Makefile @@ -4,3 +4,5 @@ # # SPDX-License-Identifier: GPL-2.0+ # + +obj-$(CONFIG_CONSOLE_TRUETYPE_NIMBUS) += nimbus_sans_l_regular.o diff --git a/drivers/video/fonts/nimbus_sans_l_regular.ttf b/drivers/video/fonts/nimbus_sans_l_regular.ttf new file mode 100644 index 00000000000..3bd694d8ee5 Binary files /dev/null and b/drivers/video/fonts/nimbus_sans_l_regular.ttf differ -- cgit v1.3.1