Skip to content

Commit

Permalink
video: Add the Cantoraone decorative font
Browse files Browse the repository at this point in the history
This font is a little more ornate than normal. Example uses are on security
screens where a feeling of formality is required.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and vdsao committed Jan 30, 2016
1 parent 7ad4e30 commit c0603b9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/video/console_truetype.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ struct font_info {
FONT_DECL(nimbus_sans_l_regular);
FONT_DECL(ankacoder_c75_r);
FONT_DECL(rufscript010);
FONT_DECL(cantoraone_regular);

static struct font_info font_table[] = {
#ifdef CONFIG_CONSOLE_TRUETYPE_NIMBUS
Expand All @@ -457,6 +458,9 @@ static struct font_info font_table[] = {
#endif
#ifdef CONFIG_CONSOLE_TRUETYPE_RUFSCRIPT
FONT_ENTRY(rufscript010),
#endif
#ifdef CONFIG_CONSOLE_TRUETYPE_CANTORAONE
FONT_ENTRY(cantoraone_regular),
#endif
{} /* sentinel */
};
Expand Down
10 changes: 10 additions & 0 deletions drivers/video/fonts/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ config CONSOLE_TRUETYPE_RUFSCRIPT
License: GPL with font exception
http://www.gnu.org/copyleft/gpl.html

config CONSOLE_TRUETYPE_CANTORAONE
bool "Cantoraone"
depends on CONSOLE_TRUETYPE
help
Cantora is a friendly semi formal, semi condensed, semi sans-serif
with a hint of handwriting. Perfect for headlines.
From https://fontlibrary.org/en/font/cantora
License: SIL Open Font Licence
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL

endmenu
1 change: 1 addition & 0 deletions drivers/video/fonts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
obj-$(CONFIG_CONSOLE_TRUETYPE_NIMBUS) += nimbus_sans_l_regular.o
obj-$(CONFIG_CONSOLE_TRUETYPE_ANKACODER) += ankacoder_c75_r.o
obj-$(CONFIG_CONSOLE_TRUETYPE_RUFSCRIPT) += rufscript010.o
obj-$(CONFIG_CONSOLE_TRUETYPE_CANTORAONE) += cantoraone_regular.o
Binary file added drivers/video/fonts/cantoraone_regular.ttf
Binary file not shown.

0 comments on commit c0603b9

Please sign in to comment.