]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: menu "TrueType Fonts" depends on TrueType enabled 850/head
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 31 Dec 2025 14:13:44 +0000 (15:13 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 4 Feb 2026 16:41:48 +0000 (10:41 -0600)
The Kconfig menu "TrueType Fonts" should only be shown if TrueType is
enabled.

Put all TrueType dependent customization within one if statement.
Remove `depends TRUETYPE` clauses.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <simon.glass@canonical.com>
drivers/video/Kconfig
drivers/video/fonts/Kconfig

index d6c0d4fdfc4b91b2fd5fd3f9e40b01ffbb894e2e..08c9b0207884c04459b69e9e45ea5e808fac1193 100644 (file)
@@ -211,9 +211,10 @@ config CONSOLE_TRUETYPE
          With this option you can adjust the text size and use a variety of
          fonts. Note that this is noticeably slower than with normal console.
 
+if CONSOLE_TRUETYPE
+
 config CONSOLE_TRUETYPE_SIZE
        int "TrueType font size"
-       depends on CONSOLE_TRUETYPE
        default 18
        help
          This sets the font size for the console. The size is measured in
@@ -226,7 +227,6 @@ config CONSOLE_TRUETYPE_SIZE
 
 config CONSOLE_TRUETYPE_MAX_METRICS
        int "TrueType maximum number of font / size combinations"
-       depends on CONSOLE_TRUETYPE
        default 10 if EXPO
        default 1
        help
@@ -239,6 +239,10 @@ config CONSOLE_TRUETYPE_MAX_METRICS
          font metrics which are expensive to regenerate each time the font
          size changes.
 
+source "drivers/video/fonts/Kconfig"
+
+endif
+
 config SYS_WHITE_ON_BLACK
        bool "Display console as white on a black background"
        default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
@@ -309,8 +313,6 @@ config PANEL_HX8238D
          It can drive a maximum 960x240 dot graphics on a-TFT panel
          displays in 16M colors with dithering.
 
-source "drivers/video/fonts/Kconfig"
-
 config VIDEO_BOCHS
        bool "Enable Bochs video emulation for QEMU"
        help
index 2568e48ecf202778f200a3e65eda531ad6feb533..e56aef0a00d39aba4b124db81ff2c316b2516cd2 100644 (file)
@@ -6,7 +6,6 @@ menu "TrueType Fonts"
 
 config CONSOLE_TRUETYPE_NIMBUS
        bool "Nimbus Sans Regular"
-       depends on CONSOLE_TRUETYPE
        default y
        help
          Nimbus Sans L is a version of Nimbus Sans using Adobe font sources.
@@ -20,7 +19,6 @@ config CONSOLE_TRUETYPE_NIMBUS
 
 config CONSOLE_TRUETYPE_ANKACODER
        bool "Anka Coder Narrow"
-       depends on CONSOLE_TRUETYPE
        help
          The Anka/Coder family is a monospaced, courier-width font for source
          code and terminals, in two styles and weights. Anka/Coder Narrow was
@@ -32,7 +30,6 @@ config CONSOLE_TRUETYPE_ANKACODER
 
 config CONSOLE_TRUETYPE_RUFSCRIPT
        bool "Ruf Script"
-       depends on CONSOLE_TRUETYPE
        help
          A laid-back handwritten font.
          Font: https://fontlibrary.org/en/font/rufscript
@@ -41,7 +38,6 @@ config CONSOLE_TRUETYPE_RUFSCRIPT
 
 config CONSOLE_TRUETYPE_CANTORAONE
        bool "Cantoraone"
-       depends on CONSOLE_TRUETYPE
        help
          Cantora is a friendly semi formal, semi condensed, semi sans-serif
          with a hint of handwriting. Perfect for headlines.