1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Font configuration
4#
5
6config FONT_SUPPORT
7	tristate
8
9if FONT_SUPPORT
10
11config FONTS
12	bool "Select compiled-in fonts"
13	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
14	help
15	  Say Y here if you would like to use fonts other than the default
16	  your frame buffer console usually use.
17
18	  Note that the answer to this question won't directly affect the
19	  kernel: saying N will just cause the configurator to skip all
20	  the questions about foreign fonts.
21
22	  If unsure, say N (the default choices are safe).
23
24config FONT_8x8
25	bool "VGA 8x8 font" if FONTS
26	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
27	default y if !SPARC && !FONTS
28	help
29	  This is the "high resolution" font for the VGA frame buffer (the one
30	  provided by the text console 80x50 (and higher) modes).
31
32	  Note that this is a poor quality font. The VGA 8x16 font is quite a
33	  lot more readable.
34
35	  Given the resolution provided by the frame buffer device, answer N
36	  here is safe.
37
38config FONT_8x16
39	bool "VGA 8x16 font" if FONTS
40	default y if !SPARC && !FONTS
41	help
42	  This is the "high resolution" font for the VGA frame buffer (the one
43	  provided by the VGA text console 80x25 mode.
44
45	  If unsure, say Y.
46
47config FONT_6x11
48	bool "Mac console 6x11 font (not supported by all drivers)" if FONTS
49	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
50	default y if !SPARC && !FONTS && MAC
51	help
52	  Small console font with Macintosh-style high-half glyphs.  Some Mac
53	  framebuffer drivers don't support this one at all.
54
55config FONT_7x14
56	bool "console 7x14 font (not supported by all drivers)" if FONTS
57	depends on FRAMEBUFFER_CONSOLE
58	help
59	  Console font with characters just a bit smaller than the default.
60	  If the standard 8x16 font is a little too big for you, say Y.
61	  Otherwise, say N.
62
63config FONT_PEARL_8x8
64	bool "Pearl (old m68k) console 8x8 font" if FONTS
65	depends on FRAMEBUFFER_CONSOLE
66	default y if !SPARC && !FONTS && AMIGA
67	help
68	  Small console font with PC-style control-character and high-half
69	  glyphs.
70
71config FONT_ACORN_8x8
72	bool "Acorn console 8x8 font" if FONTS
73	depends on FRAMEBUFFER_CONSOLE
74	default y if !SPARC && !FONTS && ARM && ARCH_ACORN
75	help
76	  Small console font with PC-style control characters and high-half
77	  glyphs.
78
79config FONT_MINI_4x6
80	bool "Mini 4x6 font"
81	depends on !SPARC && FONTS
82
83config FONT_6x10
84	bool "Medium-size 6x10 font"
85	depends on !SPARC && FONTS
86	help
87	  Medium-size console font. Suitable for framebuffer consoles on
88	  embedded devices with a 320x240 screen, to get a reasonable number
89	  of characters (53x24) that are still at a readable size.
90
91config FONT_10x18
92	bool "console 10x18 font (not supported by all drivers)" if FONTS
93	depends on FRAMEBUFFER_CONSOLE
94	help
95	  This is a high resolution console font for machines with very
96	  big letters. It fits between the sun 12x22 and the normal 8x16 font.
97	  If other fonts are too big or too small for you, say Y, otherwise say N.
98
99config FONT_SUN8x16
100	bool "Sparc console 8x16 font"
101	depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
102	help
103	  This is the high resolution console font for Sun machines. Say Y.
104
105config FONT_SUN12x22
106	bool "Sparc console 12x22 font (not supported by all drivers)"
107	depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
108	help
109	  This is the high resolution console font for Sun machines with very
110	  big letters (like the letters used in the SPARC PROM). If the
111	  standard font is unreadable for you, say Y, otherwise say N.
112
113config FONT_TER16x32
114	bool "Terminus 16x32 font (not supported by all drivers)"
115	depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
116	help
117	  Terminus Font is a clean, fixed width bitmap font, designed
118	  for long (8 and more hours per day) work with computers.
119	  This is the high resolution, large version for use with HiDPI screens.
120	  If the standard font is unreadable for you, say Y, otherwise say N.
121
122config FONT_6x8
123	bool "OLED 6x8 font" if FONTS
124	depends on FRAMEBUFFER_CONSOLE
125	help
126	  This font is useful for small displays (OLED).
127
128config FONT_AUTOSELECT
129	def_bool y
130	depends on !FONT_8x8
131	depends on !FONT_6x11
132	depends on !FONT_7x14
133	depends on !FONT_PEARL_8x8
134	depends on !FONT_ACORN_8x8
135	depends on !FONT_MINI_4x6
136	depends on !FONT_6x10
137	depends on !FONT_SUN8x16
138	depends on !FONT_SUN12x22
139	depends on !FONT_10x18
140	depends on !FONT_TER16x32
141	depends on !FONT_6x8
142	select FONT_8x16
143
144endif # FONT_SUPPORT
145