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>
master
Simon Glass 9 years ago committed by Anatolij Gustschin
parent 84b4791ada
commit c43c43cd48
  1. 4
      drivers/video/console_truetype.c
  2. 12
      drivers/video/fonts/Kconfig
  3. 1
      drivers/video/fonts/Makefile
  4. BIN
      drivers/video/fonts/ankacoder_c75_r.ttf

@ -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 */
};

@ -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

@ -6,3 +6,4 @@
#
obj-$(CONFIG_CONSOLE_TRUETYPE_NIMBUS) += nimbus_sans_l_regular.o
obj-$(CONFIG_CONSOLE_TRUETYPE_ANKACODER) += ankacoder_c75_r.o

Loading…
Cancel
Save