summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-14 18:10:44 -0700
committerAnatolij Gustschin <agust@denx.de>2016-01-30 10:56:09 +0100
commitc43c43cd48c49624339a83d5263d0b866818fc9b (patch)
treefcd75bf5ab6a970eaab8fdc848db3158c422221b /drivers
parent84b4791ada7754b65fd200002f92ac8684c2b5ec (diff)
downloadtalos-obmc-uboot-c43c43cd48c49624339a83d5263d0b866818fc9b.tar.gz
talos-obmc-uboot-c43c43cd48c49624339a83d5263d0b866818fc9b.zip
video: Add the AnkaCoder mono-spaced font
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/console_truetype.c4
-rw-r--r--drivers/video/fonts/Kconfig12
-rw-r--r--drivers/video/fonts/Makefile1
-rw-r--r--drivers/video/fonts/ankacoder_c75_r.ttfbin0 -> 65596 bytes
4 files changed, 17 insertions, 0 deletions
diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c
index 46c5205853..a18611b16c 100644
--- a/drivers/video/console_truetype.c
+++ b/drivers/video/console_truetype.c
@@ -445,11 +445,15 @@ 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 */
};
diff --git a/drivers/video/fonts/Kconfig b/drivers/video/fonts/Kconfig
index ded3e5ef64..ba1ccca62a 100644
--- a/drivers/video/fonts/Kconfig
+++ b/drivers/video/fonts/Kconfig
@@ -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
diff --git a/drivers/video/fonts/Makefile b/drivers/video/fonts/Makefile
index 68f4c3be2a..58b1813575 100644
--- a/drivers/video/fonts/Makefile
+++ b/drivers/video/fonts/Makefile
@@ -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
index 0000000000..3b73dcf00e
--- /dev/null
+++ b/drivers/video/fonts/ankacoder_c75_r.ttf
Binary files differ
OpenPOWER on IntegriCloud