]> git.sur5r.net Git - u-boot/commitdiff
video: Add the AnkaCoder mono-spaced font
authorSimon Glass <sjg@chromium.org>
Fri, 15 Jan 2016 01:10:44 +0000 (18:10 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sat, 30 Jan 2016 09:56:09 +0000 (10:56 +0100)
This can be used when a mono-space font is needed, but the console font
is too small (such as with high-DPI displays).

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

index 46c5205853cc53e7f2f735535a8b5c42df0be136..a18611b16c986153eb140ca36993a6ebe61d3707 100644 (file)
@@ -445,10 +445,14 @@ struct font_info {
        }
 
 FONT_DECL(nimbus_sans_l_regular);
+FONT_DECL(ankacoder_c75_r);
 
 static struct font_info font_table[] = {
 #ifdef CONFIG_CONSOLE_TRUETYPE_NIMBUS
        FONT_ENTRY(nimbus_sans_l_regular),
+#endif
+#ifdef CONFIG_CONSOLE_TRUETYPE_ANKACODER
+       FONT_ENTRY(ankacoder_c75_r),
 #endif
        {} /* sentinel */
 };
index ded3e5ef64e5d975f497564230f2b4d6dcefb790..ba1ccca62abc8358dd8817003c5b882df8494083 100644 (file)
@@ -17,4 +17,16 @@ config CONSOLE_TRUETYPE_NIMBUS
          License: GNU GPL v3
          http://www.gnu.org/copyleft/gpl.html
 
+config CONSOLE_TRUETYPE_ANKACODER
+       bool "Anka Coder Narrow"
+       depends on CONSOLE_TRUETYPE
+       help
+         The Anka/Coder family is a monospaced, courier-width font for source
+         code and terminals, in two styles and weights. Anka/Coder Narrow was
+         developed for printing source code.
+         https://code.google.com/p/anka-coder-fonts/
+         From: https://fontlibrary.org/en/font/anka-coder-narrow
+         License: SIL Open Font Licence
+         http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
+
 endmenu
index 68f4c3be2a61c55302ce7f79245439033ce5f664..58b181357578bf8dfc13b0d4d58be184c4efac43 100644 (file)
@@ -6,3 +6,4 @@
 #
 
 obj-$(CONFIG_CONSOLE_TRUETYPE_NIMBUS) += nimbus_sans_l_regular.o
+obj-$(CONFIG_CONSOLE_TRUETYPE_ANKACODER) += ankacoder_c75_r.o
diff --git a/drivers/video/fonts/ankacoder_c75_r.ttf b/drivers/video/fonts/ankacoder_c75_r.ttf
new file mode 100644 (file)
index 0000000..3b73dcf
Binary files /dev/null and b/drivers/video/fonts/ankacoder_c75_r.ttf differ