Skip to contentSkip to conversation

Fonts: Adding all Terminus fronts from 12 to 32 in bold, and normal versions

PATCH Superseded Pavel Nikulin 1 participant 1 message Feb 23 Framebuffer console

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 Fonts: Adding all Terminus fronts from 12 to 32 in bold, and normal versions

This patch adds an option to compile-in all terminus fonts, and removed the old bold only terminus version

These fonts were converted from Terminus psf files with the help of psftools and a script.

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

I am placing my changes under the GPL 2.0 just as source Terminus font.

---
 lib/fonts/Kconfig          |  147 +-
 lib/fonts/Makefile         |   19 +
 lib/fonts/font_ter10x18.c  | 6412 ++++++++----------------------------
 lib/fonts/font_ter10x18b.c | 1305 ++++++++
 lib/fonts/font_ter10x20.c  | 1305 ++++++++
 lib/fonts/font_ter10x20b.c | 1305 ++++++++
 lib/fonts/font_ter11x22.c  | 1561 +++++++++
 lib/fonts/font_ter11x22b.c | 1561 +++++++++
 lib/fonts/font_ter12x24.c  | 1561 +++++++++
 lib/fonts/font_ter12x24b.c | 1561 +++++++++
 lib/fonts/font_ter14x28.c  | 1817 ++++++++++
 lib/fonts/font_ter14x28b.c | 1817 ++++++++++
 lib/fonts/font_ter16x32.c  | 4107 +++++++++++------------
 lib/fonts/font_ter16x32b.c | 2073 ++++++++++++
 lib/fonts/font_ter6x12.c   |  537 +++
 lib/fonts/font_ter8x14.c   |  537 +++
 lib/fonts/font_ter8x14b.c  |  537 +++
 lib/fonts/font_ter8x16.c   |  537 +++
 lib/fonts/font_ter8x16b.c  |  537 +++
 lib/fonts/fonts.c          |   45 +
 20 files changed, 22101 insertions(+), 7180 deletions(-)
 create mode 100644 lib/fonts/font_ter10x18b.c
 create mode 100644 lib/fonts/font_ter10x20.c
 create mode 100644 lib/fonts/font_ter10x20b.c
 create mode 100644 lib/fonts/font_ter11x22.c
 create mode 100644 lib/fonts/font_ter11x22b.c
 create mode 100644 lib/fonts/font_ter12x24.c
 create mode 100644 lib/fonts/font_ter12x24b.c
 create mode 100644 lib/fonts/font_ter14x28.c
 create mode 100644 lib/fonts/font_ter14x28b.c
 create mode 100644 lib/fonts/font_ter16x32b.c
 create mode 100644 lib/fonts/font_ter6x12.c
 create mode 100644 lib/fonts/font_ter8x14.c
 create mode 100644 lib/fonts/font_ter8x14b.c
 create mode 100644 lib/fonts/font_ter8x16.c
 create mode 100644 lib/fonts/font_ter8x16b.c
lib/fonts/Kconfig +145 -2
index 7d03823e46dc..220ae0e051eb 100644
@@ -112,6 +112,46 @@ 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_TER6x12
+	bool "Terminus 6x12 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.
+
+config FONT_TER8x14
+	bool "Terminus 8x14 font"
+	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.
+
+config FONT_TER8x14B
+	bool "Terminus 8x14 bold font"
+	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.
+
+config FONT_TER8x16
+	bool "Terminus 8x16 font"
+	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.
+
+config FONT_TER8x16B
+	bool "Terminus 8x16 bold font"
+	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.
+
 config FONT_TER10x18
 	bool "Terminus 10x18 font (not supported by all drivers)"
 	depends on FRAMEBUFFER_CONSOLE || DRM_PANIC
@@ -119,19 +159,103 @@ config FONT_TER10x18
 	help
 	  Terminus Font is a clean, fixed width bitmap font, designed
 	  for long (8 and more hours per day) work with computers.
+<<<<<<< HEAD
+
+config FONT_TER10x18B
+	bool "Terminus 10x18 bold 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.
+
+config FONT_TER10x20
+	bool "Terminus 10x20 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.
+
+config FONT_TER10x20B
+	bool "Terminus 10x20 bold 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.
+
+config FONT_TER11x22
+	bool "Terminus 11x22 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.
+
+config FONT_TER11x22B
+	bool "Terminus 11x22 bold 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.
+
+config FONT_TER12x24
+	bool "Terminus 12x24 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.
+
+config FONT_TER12x24B
+	bool "Terminus 12x24 bold 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.
+
+config FONT_TER14x28
+	bool "Terminus 14x28 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.
+
+config FONT_TER14x28B
+	bool "Terminus 14x28 bold 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.
+
+config FONT_TER16x32
+	bool "Terminus 16x32 font"
+	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.
+
+config FONT_TER16x32B
+	bool "Terminus 16x32 bold font"
+=======
 	  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)"
+>>>>>>> 32a92f8c89326985e05dce8b22d3f0aa07a3e1bd
 	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, large version for use with HiDPI screens.
-	  If the standard font is unreadable for you, say Y, otherwise say N.
 
 config FONT_6x8
 	bool "OLED 6x8 font" if FONTS
@@ -151,8 +275,27 @@ config FONT_AUTOSELECT
 	depends on !FONT_SUN8x16
 	depends on !FONT_SUN12x22
 	depends on !FONT_10x18
+<<<<<<< HEAD
+	depends on !FONT_TER6x12
+	depends on !FONT_TER8x14
+	depends on !FONT_TER8x14B
+	depends on !FONT_TER8x16
+	depends on !FONT_TER8x16B
+	depends on !FONT_TER10x18
+	depends on !FONT_TER10x18B
+	depends on !FONT_TER10x20
+	depends on !FONT_TER10x20B
+	depends on !FONT_TER11x22
+	depends on !FONT_TER11x22B
+	depends on !FONT_TER12x24
+	depends on !FONT_TER12x24B
+	depends on !FONT_TER14x28
+	depends on !FONT_TER14x28B
+=======
 	depends on !FONT_TER10x18
+>>>>>>> 32a92f8c89326985e05dce8b22d3f0aa07a3e1bd
 	depends on !FONT_TER16x32
+	depends on !FONT_TER16x32B
 	depends on !FONT_6x8
 	select FONT_8x16
 
lib/fonts/Makefile +19 -0
index 30a85a4292fa..c68e451ffd6d 100644
@@ -14,8 +14,27 @@ 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
+<<<<<<< HEAD
+font-objs-$(CONFIG_FONT_TER6x12)  += font_ter6x12.o
+font-objs-$(CONFIG_FONT_TER8x14)  += font_ter8x14.o
+font-objs-$(CONFIG_FONT_TER8x14B)  += font_ter8x14b.o
+font-objs-$(CONFIG_FONT_TER8x16)  += font_ter8x16.o
+font-objs-$(CONFIG_FONT_TER8x16B)  += font_ter8x16b.o
 font-objs-$(CONFIG_FONT_TER10x18)  += font_ter10x18.o
+font-objs-$(CONFIG_FONT_TER10x18B)  += font_ter10x18b.o
+font-objs-$(CONFIG_FONT_TER10x20)  += font_ter10x20.o
+font-objs-$(CONFIG_FONT_TER10x20B)  += font_ter10x20b.o
+font-objs-$(CONFIG_FONT_TER11x22)  += font_ter11x22.o
+font-objs-$(CONFIG_FONT_TER11x22B)  += font_ter11x22b.o
+font-objs-$(CONFIG_FONT_TER12x24)  += font_ter12x24.o
+font-objs-$(CONFIG_FONT_TER12x24B)  += font_ter12x24b.o
+font-objs-$(CONFIG_FONT_TER14x28)  += font_ter14x28.o
+font-objs-$(CONFIG_FONT_TER14x28B)  += font_ter14x28b.o
+=======
+font-objs-$(CONFIG_FONT_TER10x18)  += font_ter10x18.o
+>>>>>>> 32a92f8c89326985e05dce8b22d3f0aa07a3e1bd
 font-objs-$(CONFIG_FONT_TER16x32)  += font_ter16x32.o
+font-objs-$(CONFIG_FONT_TER16x32B)  += font_ter16x32b.o
 font-objs-$(CONFIG_FONT_6x8)       += font_6x8.o
 
 font-objs += $(font-objs-y)
lib/fonts/font_ter10x18.c +1287 -5125

2,795 lines not on this page · raw message

lib/fonts/font_ter10x18b.c new file +1305 -0

1,305 lines not on this page · raw message

lib/fonts/font_ter10x20.c new file +1305 -0

1,305 lines not on this page · raw message

lib/fonts/font_ter10x20b.c new file +1305 -0

1,305 lines not on this page · raw message

lib/fonts/font_ter11x22.c new file +1561 -0

1,561 lines not on this page · raw message

lib/fonts/font_ter11x22b.c new file +1561 -0

1,561 lines not on this page · raw message

lib/fonts/font_ter12x24.c new file +1561 -0

1,561 lines not on this page · raw message

lib/fonts/font_ter12x24b.c new file +1561 -0

1,561 lines not on this page · raw message

lib/fonts/font_ter14x28.c new file +1817 -0

1,817 lines not on this page · raw message

lib/fonts/font_ter14x28b.c new file +1817 -0

1,817 lines not on this page · raw message

lib/fonts/font_ter16x32.c +2054 -2053

4,107 lines not on this page · raw message

lib/fonts/font_ter16x32b.c new file +2073 -0

2,073 lines not on this page · raw message

lib/fonts/font_ter6x12.c new file +537 -0

537 lines not on this page · raw message

lib/fonts/font_ter8x14.c new file +537 -0

537 lines not on this page · raw message

lib/fonts/font_ter8x14b.c new file +537 -0

537 lines not on this page · raw message

lib/fonts/font_ter8x16.c new file +537 -0

537 lines not on this page · raw message

lib/fonts/font_ter8x16b.c new file +537 -0

537 lines not on this page · raw message

lib/fonts/fonts.c +45 -0

45 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

base-commit: 32a92f8c89326985e05dce8b22d3f0aa07a3e1bd

Signature · 1 line
2.52.0

Part of the diff is not shown here. View the raw message.