Skip to contentSkip to conversation

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

PATCH Superseded Pavel Nikulin 4 participants 6 messages Feb 26 – Mar 11

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v5 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.

---
V4 -> V5: Added changed font.h to the patch

 include/linux/font.h       |   42 +-
 lib/fonts/Kconfig          |  142 +-
 lib/fonts/Makefile         |   15 +
 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 +
 21 files changed, 22124 insertions(+), 7190 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
include/linux/font.h +36 -6
index fd8625cd76b2..edc607a44e47 100644
@@ -33,9 +33,24 @@ struct font_desc {
 #define ACORN8x8_IDX	8
 #define	MINI4x6_IDX	9
 #define FONT6x10_IDX	10
-#define TER16x32_IDX	11
-#define FONT6x8_IDX	12
-#define TER10x18_IDX	13
+#define TER6x12_IDX	11
+#define TER8x14_IDX	12
+#define TER8x14B_IDX	13
+#define TER8x16_IDX	14
+#define TER8x16B_IDX	15
+#define TER10x18_IDX	16
+#define TER10x18B_IDX	17
+#define TER10x20_IDX	18
+#define TER10x20B_IDX	19
+#define TER11x22_IDX	20
+#define TER11x22B_IDX	21
+#define TER12x24_IDX	22
+#define TER12x24B_IDX	23
+#define TER14x28_IDX	24
+#define TER14x28B_IDX	25
+#define TER16x32_IDX	26
+#define TER16x32B_IDX	27
+#define FONT6x8_IDX	28
 
 extern const struct font_desc	font_vga_8x8,
 			font_vga_8x16,
@@ -48,9 +63,24 @@ extern const struct font_desc	font_vga_8x8,
 			font_acorn_8x8,
 			font_mini_4x6,
 			font_6x10,
-			font_ter_16x32,
-			font_6x8,
-			font_ter_10x18;
+			font_ter_6x12,
+			font_ter_8x14,
+			font_ter_8x14b,
+			font_ter_8x16,
+			font_ter_8x16b,
+			font_ter_10x18,
+			font_ter_10x18b,
+			font_ter_10x20,
+			font_ter_10x20b,
+			font_ter_11x22,
+			font_ter_11x22b,
+			font_ter_12x24,
+			font_ter_12x24b,
+			font_ter_14x28,
+			font_ter_14x28b,
+ 			font_ter_16x32,
+			font_ter_16x32b,
+			font_6x8;
 
 /* Find a font with a specific name */
 
lib/fonts/Kconfig +136 -6

169 lines not on this page · raw message

lib/fonts/Makefile +15 -0
index 30a85a4292fa..55be143650b7 100644
@@ -14,8 +14,23 @@ 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_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_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,754 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.

#1 lore raw

Hi Pavel,

please include the graphics mailing lists (fbdev, dri-devel).

* Pavel Nikulin <[email protected]>:

Quoted 5 lines

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.

Sure, but you add a whole lot of fonts. Why are both bold and non-bold fonts needed? Why do we need all in-kernel?
They may be loaded after bootup via userspace too.

What does other people think?

Helge

Quoted 43 lines

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

---
V4 -> V5: Added changed font.h to the patch

 include/linux/font.h       |   42 +-
 lib/fonts/Kconfig          |  142 +-
 lib/fonts/Makefile         |   15 +
 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 +
 21 files changed, 22124 insertions(+), 7190 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
#2 lore raw

Hello Helge,

Quoted 1 line

Why are both bold and non-bold fonts needed?

Because people have different screen densities. On those 4k 10 inch screens, people would probably go for bolder versions regardless of how much text they want to fit in.

Quoted 1 line

They may be loaded after bootup via userspace too.

Too many fonts are already baked into the kernel, and I would've advocated for eventually adding a function for PSFs to be more easily added at config, or boot time.

Terminus is a good font for the kernel for the reason that it covers a very wide range of font sizes.

On the sidenote, the previously incorporated Terminus font patch seemingly has a wrong FONTDATAMAX value

#3 lore raw

PATCH v5 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.

---
V4 -> V5: Added changed font.h to the patch

 include/linux/font.h       |   42 +-
 lib/fonts/Kconfig          |  142 +-
 lib/fonts/Makefile         |   15 +
 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 +
 21 files changed, 22124 insertions(+), 7190 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
include/linux/font.h +36 -6
index fd8625cd76b2..edc607a44e47 100644
@@ -33,9 +33,24 @@ struct font_desc {
 #define ACORN8x8_IDX	8
 #define	MINI4x6_IDX	9
 #define FONT6x10_IDX	10
-#define TER16x32_IDX	11
-#define FONT6x8_IDX	12
-#define TER10x18_IDX	13
+#define TER6x12_IDX	11
+#define TER8x14_IDX	12
+#define TER8x14B_IDX	13
+#define TER8x16_IDX	14
+#define TER8x16B_IDX	15
+#define TER10x18_IDX	16
+#define TER10x18B_IDX	17
+#define TER10x20_IDX	18
+#define TER10x20B_IDX	19
+#define TER11x22_IDX	20
+#define TER11x22B_IDX	21
+#define TER12x24_IDX	22
+#define TER12x24B_IDX	23
+#define TER14x28_IDX	24
+#define TER14x28B_IDX	25
+#define TER16x32_IDX	26
+#define TER16x32B_IDX	27
+#define FONT6x8_IDX	28
 
 extern const struct font_desc	font_vga_8x8,
 			font_vga_8x16,
@@ -48,9 +63,24 @@ extern const struct font_desc	font_vga_8x8,
 			font_acorn_8x8,
 			font_mini_4x6,
 			font_6x10,
-			font_ter_16x32,
-			font_6x8,
-			font_ter_10x18;
+			font_ter_6x12,
+			font_ter_8x14,
+			font_ter_8x14b,
+			font_ter_8x16,
+			font_ter_8x16b,
+			font_ter_10x18,
+			font_ter_10x18b,
+			font_ter_10x20,
+			font_ter_10x20b,
+			font_ter_11x22,
+			font_ter_11x22b,
+			font_ter_12x24,
+			font_ter_12x24b,
+			font_ter_14x28,
+			font_ter_14x28b,
+ 			font_ter_16x32,
+			font_ter_16x32b,
+			font_6x8;
 
 /* Find a font with a specific name */
 
lib/fonts/Kconfig +136 -6

169 lines not on this page · raw message

lib/fonts/Makefile +15 -0
index 30a85a4292fa..55be143650b7 100644
@@ -14,8 +14,23 @@ 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_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_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,754 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.

maintainer
#4 lore raw
In reply to Pavel Nikulin

Hello Pavel,

Quoted 3 lines · Pavel Nikulin
Quoted 1 line

Why are both bold and non-bold fonts needed?

Because people have different screen densities. On those 4k 10 inch screens, people would probably go for bolder versions regardless of how much text they want to fit in.

Yes, but is there so much difference between 10x18, 10x18b,10x20,10x20b ?
I mean, this is a whole lot of source code (bloat?) which we would add to the kernel sources. Even more worse, if most people won't even compile it then....

Just looking at the number of possible fonts, I wouldn't know which one to use myself:

 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 +++
Quoted 1 line
Quoted 1 line

They may be loaded after bootup via userspace too.

And I still believe, that the fbconsole usually is used for:
a) older historic machines which can't use DRM/DRI, and
b) simple devices / embedded devices which still use fbdev, and
c) probably the majority: new x86 machines with DRM where it's only used shortly for bootup until graphical login appears.

For a) I believe the current fonts are sufficient (and mimic the architecture). For b) I believe one of the current fonts will be hardcoded by the vendor. For c) I think most people don't care about the additional fonts.

Quoted 3 lines

Too many fonts are already baked into the kernel, and I would've advocated for eventually adding a function for PSFs to be more easily added at config, or boot time.

Yes, a function to compile in some PSF-font at build-time would probably be more useful?

All that said, my believe is that we already ship enough fonts and don't need a whole bunch of additional fonts.

Any opinions from dri-devel folks on that?

Quoted 3 lines

Terminus is a good font for the kernel for the reason that it covers a very wide range of font sizes.

On the sidenote, the previously incorporated Terminus font patch seemingly has a wrong FONTDATAMAX value

Do you want to send a patch?

Helge

#5 lore raw
In reply to Helge Deller

Hi

Am 27.02.26 um 21:59 schrieb Helge Deller:

Quoted 9 lines

Hi Pavel,

please include the graphics mailing lists (fbdev, dri-devel).

* Pavel Nikulin <[email protected]>:

Quoted 4 lines

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.

Quoted 7 lines
Quoted 1 line

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

Sure, but you add a whole lot of fonts. Why are both bold and non-bold fonts needed? Why do we need all in-kernel?
They may be loaded after bootup via userspace too.

What does other people think?

I'm strongly against adding more fonts to the kernel. Fonts can (and should) be loaded from user space.

AFAICT this patch is just about someone trying to get their favorite font merged. Doing that is not going to work out long term.

Best regards
Thomas

Quoted 47 lines

Helge

Quoted 43 lines

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

---
V4 -> V5: Added changed font.h to the patch

  include/linux/font.h       |   42 +-
  lib/fonts/Kconfig          |  142 +-
  lib/fonts/Makefile         |   15 +
  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 +
  21 files changed, 22124 insertions(+), 7190 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

Signature · 6 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)