summaryrefslogtreecommitdiffstats
path: root/lib/fonts/fonts.c
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2014-09-09 13:46:28 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-10-09 10:35:48 +0200
commit33ac9dba859b07d40e9ec826057d20c857fdede5 (patch)
tree22780a9fad022a9bb0be2ca2b386bc0e5210e0ce /lib/fonts/fonts.c
parentvideomode: provide dummy inline functions for !CONFIG_OF (diff)
downloadlinux-33ac9dba859b07d40e9ec826057d20c857fdede5.tar.xz
linux-33ac9dba859b07d40e9ec826057d20c857fdede5.zip
fonts: Add 6x10 font
This font is suitable for framebuffer consoles on devices with a 320x240 screen, to get a reasonable number of characters (53x24) that are still at a readable size. The font is derived from the existing 6x11 font, but gets 3 extra lines without sacrificing readability. Also I redesigned a some glyhps so they are more distinct and better fill the available space. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'lib/fonts/fonts.c')
-rw-r--r--lib/fonts/fonts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fonts/fonts.c b/lib/fonts/fonts.c
index f947189efe6d..823376ca0a8b 100644
--- a/lib/fonts/fonts.c
+++ b/lib/fonts/fonts.c
@@ -63,6 +63,10 @@ static const struct font_desc *fonts[] = {
#undef NO_FONTS
&font_mini_4x6,
#endif
+#ifdef CONFIG_FONT_6x10
+#undef NO_FONTS
+ &font_6x10,
+#endif
};
#define num_fonts ARRAY_SIZE(fonts)