]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: Add the Nimbus sans font
authorSimon Glass <sjg@chromium.org>
Fri, 15 Jan 2016 01:10:43 +0000 (18:10 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sat, 30 Jan 2016 09:55:57 +0000 (10:55 +0100)
This provides a good-looking font for user prompts.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/console_truetype.c
drivers/video/fonts/Kconfig
drivers/video/fonts/Makefile
drivers/video/fonts/nimbus_sans_l_regular.ttf [new file with mode: 0644]

index b770ad446ea5b775fec9370702ecf48c21f7cddb..46c5205853cc53e7f2f735535a8b5c42df0be136 100644 (file)
@@ -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 */
 };
 
index ad16ce655e6db6cf2aa05c70004f807bc5b0d3a2..ded3e5ef64e5d975f497564230f2b4d6dcefb790 100644 (file)
@@ -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
index 6ab46473b2929cb4a7cc9a8ea008dfad0d986034..68f4c3be2a61c55302ce7f79245439033ce5f664 100644 (file)
@@ -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 (file)
index 0000000..3bd694d
Binary files /dev/null and b/drivers/video/fonts/nimbus_sans_l_regular.ttf differ