162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Font configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig FONT_SUPPORT
762306a36Sopenharmony_ci	tristate
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciif FONT_SUPPORT
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciconfig FONTS
1262306a36Sopenharmony_ci	bool "Select compiled-in fonts"
1362306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
1462306a36Sopenharmony_ci	help
1562306a36Sopenharmony_ci	  Say Y here if you would like to use fonts other than the default
1662306a36Sopenharmony_ci	  your frame buffer console usually use.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci	  Note that the answer to this question won't directly affect the
1962306a36Sopenharmony_ci	  kernel: saying N will just cause the configurator to skip all
2062306a36Sopenharmony_ci	  the questions about foreign fonts.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci	  If unsure, say N (the default choices are safe).
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciconfig FONT_8x8
2562306a36Sopenharmony_ci	bool "VGA 8x8 font" if FONTS
2662306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
2762306a36Sopenharmony_ci	default y if !SPARC && !FONTS
2862306a36Sopenharmony_ci	help
2962306a36Sopenharmony_ci	  This is the "high resolution" font for the VGA frame buffer (the one
3062306a36Sopenharmony_ci	  provided by the text console 80x50 (and higher) modes).
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	  Note that this is a poor quality font. The VGA 8x16 font is quite a
3362306a36Sopenharmony_ci	  lot more readable.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci	  Given the resolution provided by the frame buffer device, answer N
3662306a36Sopenharmony_ci	  here is safe.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciconfig FONT_8x16
3962306a36Sopenharmony_ci	bool "VGA 8x16 font" if FONTS
4062306a36Sopenharmony_ci	default y if !SPARC && !FONTS
4162306a36Sopenharmony_ci	help
4262306a36Sopenharmony_ci	  This is the "high resolution" font for the VGA frame buffer (the one
4362306a36Sopenharmony_ci	  provided by the VGA text console 80x25 mode.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci	  If unsure, say Y.
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ciconfig FONT_6x11
4862306a36Sopenharmony_ci	bool "Mac console 6x11 font (not supported by all drivers)" if FONTS
4962306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
5062306a36Sopenharmony_ci	default y if !SPARC && !FONTS && MAC
5162306a36Sopenharmony_ci	help
5262306a36Sopenharmony_ci	  Small console font with Macintosh-style high-half glyphs.  Some Mac
5362306a36Sopenharmony_ci	  framebuffer drivers don't support this one at all.
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ciconfig FONT_7x14
5662306a36Sopenharmony_ci	bool "console 7x14 font (not supported by all drivers)" if FONTS
5762306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE
5862306a36Sopenharmony_ci	help
5962306a36Sopenharmony_ci	  Console font with characters just a bit smaller than the default.
6062306a36Sopenharmony_ci	  If the standard 8x16 font is a little too big for you, say Y.
6162306a36Sopenharmony_ci	  Otherwise, say N.
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ciconfig FONT_PEARL_8x8
6462306a36Sopenharmony_ci	bool "Pearl (old m68k) console 8x8 font" if FONTS
6562306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE
6662306a36Sopenharmony_ci	default y if !SPARC && !FONTS && AMIGA
6762306a36Sopenharmony_ci	help
6862306a36Sopenharmony_ci	  Small console font with PC-style control-character and high-half
6962306a36Sopenharmony_ci	  glyphs.
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ciconfig FONT_ACORN_8x8
7262306a36Sopenharmony_ci	bool "Acorn console 8x8 font" if FONTS
7362306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE
7462306a36Sopenharmony_ci	default y if !SPARC && !FONTS && ARM && ARCH_ACORN
7562306a36Sopenharmony_ci	help
7662306a36Sopenharmony_ci	  Small console font with PC-style control characters and high-half
7762306a36Sopenharmony_ci	  glyphs.
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ciconfig FONT_MINI_4x6
8062306a36Sopenharmony_ci	bool "Mini 4x6 font"
8162306a36Sopenharmony_ci	depends on !SPARC && FONTS
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ciconfig FONT_6x10
8462306a36Sopenharmony_ci	bool "Medium-size 6x10 font"
8562306a36Sopenharmony_ci	depends on !SPARC && FONTS
8662306a36Sopenharmony_ci	help
8762306a36Sopenharmony_ci	  Medium-size console font. Suitable for framebuffer consoles on
8862306a36Sopenharmony_ci	  embedded devices with a 320x240 screen, to get a reasonable number
8962306a36Sopenharmony_ci	  of characters (53x24) that are still at a readable size.
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ciconfig FONT_10x18
9262306a36Sopenharmony_ci	bool "console 10x18 font (not supported by all drivers)" if FONTS
9362306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE
9462306a36Sopenharmony_ci	help
9562306a36Sopenharmony_ci	  This is a high resolution console font for machines with very
9662306a36Sopenharmony_ci	  big letters. It fits between the sun 12x22 and the normal 8x16 font.
9762306a36Sopenharmony_ci	  If other fonts are too big or too small for you, say Y, otherwise say N.
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ciconfig FONT_SUN8x16
10062306a36Sopenharmony_ci	bool "Sparc console 8x16 font"
10162306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
10262306a36Sopenharmony_ci	help
10362306a36Sopenharmony_ci	  This is the high resolution console font for Sun machines. Say Y.
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ciconfig FONT_SUN12x22
10662306a36Sopenharmony_ci	bool "Sparc console 12x22 font (not supported by all drivers)"
10762306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
10862306a36Sopenharmony_ci	help
10962306a36Sopenharmony_ci	  This is the high resolution console font for Sun machines with very
11062306a36Sopenharmony_ci	  big letters (like the letters used in the SPARC PROM). If the
11162306a36Sopenharmony_ci	  standard font is unreadable for you, say Y, otherwise say N.
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ciconfig FONT_TER16x32
11462306a36Sopenharmony_ci	bool "Terminus 16x32 font (not supported by all drivers)"
11562306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
11662306a36Sopenharmony_ci	help
11762306a36Sopenharmony_ci	  Terminus Font is a clean, fixed width bitmap font, designed
11862306a36Sopenharmony_ci	  for long (8 and more hours per day) work with computers.
11962306a36Sopenharmony_ci	  This is the high resolution, large version for use with HiDPI screens.
12062306a36Sopenharmony_ci	  If the standard font is unreadable for you, say Y, otherwise say N.
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ciconfig FONT_6x8
12362306a36Sopenharmony_ci	bool "OLED 6x8 font" if FONTS
12462306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE
12562306a36Sopenharmony_ci	help
12662306a36Sopenharmony_ci	  This font is useful for small displays (OLED).
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ciconfig FONT_AUTOSELECT
12962306a36Sopenharmony_ci	def_bool y
13062306a36Sopenharmony_ci	depends on !FONT_8x8
13162306a36Sopenharmony_ci	depends on !FONT_6x11
13262306a36Sopenharmony_ci	depends on !FONT_7x14
13362306a36Sopenharmony_ci	depends on !FONT_PEARL_8x8
13462306a36Sopenharmony_ci	depends on !FONT_ACORN_8x8
13562306a36Sopenharmony_ci	depends on !FONT_MINI_4x6
13662306a36Sopenharmony_ci	depends on !FONT_6x10
13762306a36Sopenharmony_ci	depends on !FONT_SUN8x16
13862306a36Sopenharmony_ci	depends on !FONT_SUN12x22
13962306a36Sopenharmony_ci	depends on !FONT_10x18
14062306a36Sopenharmony_ci	depends on !FONT_TER16x32
14162306a36Sopenharmony_ci	depends on !FONT_6x8
14262306a36Sopenharmony_ci	select FONT_8x16
14362306a36Sopenharmony_ci
14462306a36Sopenharmony_ciendif # FONT_SUPPORT
145