Commit b08ee4d6 authored by Neilay Kharwadkar's avatar Neilay Kharwadkar Committed by Helge Deller
Browse files

lib/fonts: Add Terminus 10x18 console font



Add a compile-in option for Terminus 10x18 bitmap console font
to improve readability on modern laptop displays.

On modern 13-16 inch laptop displays with high pixel density,
common scaled resolutions like 1280x800 and 1440x900 are widely
used.

At these resolutions, VGA 8x16 is too small and difficult to
read for extended periods, while Terminus 16x32 is too large,
providing only 25-28 rows. The existing 10x18 font has poor
readability.

Terminus 10x18 provides improved readability with its clean,
fixed-width design while maintaining practical row counts
(44-50 rows).

A comfortable and readable built-in font for early boot messages,
kernel panics or whenever userspace is unavailable.

The font was converted from standard Terminus ter-i18b.psf using
psftools and formatted to match kernel font conventions.

This patch is non-intrusive, no options are enabled by default
so most users won't notice a thing.

Signed-off-by: default avatarNeilay Kharwadkar <neilaykharwadkar@gmail.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 0155e868
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ struct font_desc {
#define FONT6x10_IDX	10
#define TER16x32_IDX	11
#define FONT6x8_IDX	12
#define TER10x18_IDX	13

extern const struct font_desc	font_vga_8x8,
			font_vga_8x16,
@@ -48,7 +49,8 @@ extern const struct font_desc font_vga_8x8,
			font_mini_4x6,
			font_6x10,
			font_ter_16x32,
			font_6x8;
			font_6x8,
			font_ter_10x18;

/* Find a font with a specific name */

+12 −0
Original line number Diff line number Diff line
@@ -112,6 +112,17 @@ config FONT_SUN12x22
	  big letters (like the letters used in the SPARC PROM). If the
	  standard font is unreadable for you, say Y, otherwise say N.

config FONT_TER10x18
	bool "Terminus 10x18 font (not supported by all drivers)"
	depends on FRAMEBUFFER_CONSOLE || DRM_PANIC
	depends on !SPARC && FONTS || SPARC
	help
	  Terminus Font is a clean, fixed width bitmap font, designed
	  for long (8 and more hours per day) work with computers.
	  This is the high resolution version made for use with 13-16" laptops.
	  It fits between the normal 8x16 font and Terminus 16x32.
	  If other fonts are unreadable for you, say Y, otherwise say N.

config FONT_TER16x32
	bool "Terminus 16x32 font (not supported by all drivers)"
	depends on FRAMEBUFFER_CONSOLE || DRM_PANIC
@@ -140,6 +151,7 @@ config FONT_AUTOSELECT
	depends on !FONT_SUN8x16
	depends on !FONT_SUN12x22
	depends on !FONT_10x18
	depends on !FONT_TER10x18
	depends on !FONT_TER16x32
	depends on !FONT_6x8
	select FONT_8x16
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ font-objs-$(CONFIG_FONT_PEARL_8x8) += font_pearl_8x8.o
font-objs-$(CONFIG_FONT_ACORN_8x8) += font_acorn_8x8.o
font-objs-$(CONFIG_FONT_MINI_4x6)  += font_mini_4x6.o
font-objs-$(CONFIG_FONT_6x10)      += font_6x10.o
font-objs-$(CONFIG_FONT_TER10x18)  += font_ter10x18.o
font-objs-$(CONFIG_FONT_TER16x32)  += font_ter16x32.o
font-objs-$(CONFIG_FONT_6x8)       += font_6x8.o

+5143 −0

File added.

Preview size limit exceeded, changes collapsed.

+3 −0
Original line number Diff line number Diff line
@@ -54,6 +54,9 @@ static const struct font_desc *fonts[] = {
#ifdef CONFIG_FONT_6x10
	&font_6x10,
#endif
#ifdef CONFIG_FONT_TER10x18
	&font_ter_10x18,
#endif
#ifdef CONFIG_FONT_TER16x32
	&font_ter_16x32,
#endif