xref: /linux/lib/fonts/Kconfig (revision 594ce0b8a998aa4d05827cd7c0d0dcec9a1e3ae2)
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 && (FONTS || SPARC)) || \
102		   BOOTX_TEXT || EARLYFB
103	help
104	  This is the high resolution console font for Sun machines. Say Y.
105
106config FONT_SUN12x22
107	bool "Sparc console 12x22 font (not supported by all drivers)"
108	depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
109	help
110	  This is the high resolution console font for Sun machines with very
111	  big letters (like the letters used in the SPARC PROM). If the
112	  standard font is unreadable for you, say Y, otherwise say N.
113
114config FONT_TER16x32
115	bool "Terminus 16x32 font (not supported by all drivers)"
116	depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
117	help
118	  Terminus Font is a clean, fixed width bitmap font, designed
119	  for long (8 and more hours per day) work with computers.
120	  This is the high resolution, large version for use with HiDPI screens.
121	  If the standard font is unreadable for you, say Y, otherwise say N.
122
123config FONT_6x8
124	bool "OLED 6x8 font" if FONTS
125	depends on FRAMEBUFFER_CONSOLE
126	help
127	  This font is useful for small displays (OLED).
128
129config FONT_AUTOSELECT
130	def_bool y
131	depends on !FONT_8x8
132	depends on !FONT_6x11
133	depends on !FONT_7x14
134	depends on !FONT_PEARL_8x8
135	depends on !FONT_ACORN_8x8
136	depends on !FONT_MINI_4x6
137	depends on !FONT_6x10
138	depends on !FONT_SUN8x16
139	depends on !FONT_SUN12x22
140	depends on !FONT_10x18
141	depends on !FONT_TER16x32
142	depends on !FONT_6x8
143	select FONT_8x16
144
145endif # FONT_SUPPORT
146