Subject: [PATCH] Attempt to use console-fonts not provided by kbd if they are installed

From: John Soo <[email-masked]>
Date: Thu, 11 Jul 2019 14:27:15 +0000

Hi maintainers,

I looked hard at a nicer way to provide a flag to start kbd pointing to a
directory or file. There is a flag to point to a file for a font which
could be nice. However setfont also prioritizes the current directory over
the kbd directory. The following patch attempts to chdir to a directory
where more console fonts may be installed.

- John
From 15aa08d212ecea31adcd86f922c0f68297cd423a Mon Sep 17 00:00:00 2001
From: John Soo <[email-masked]>
Date: Wed, 10 Jul 2019 06:51:41 -0700
Subject: [PATCH] gnu: Try using any system installed console fonts.

---
 gnu/services/base.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 537d30add5..60d03df9ed 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -775,6 +775,13 @@ to add @var{device} to the kernel's entropy pool.  The service will fail if
                             (usleep 500)
                             (loop (- i 1))))
 
+                        ;; Try to use any other installed system fonts.
+                        (catch #t
+                          (lambda _
+                            (chdir
+                             "/run/current-system/profile/share/kbd/consolefonts"))
+                          (lambda _ #t))
+
                         ;; Assume the VT is already in UTF-8 mode, thanks to
                         ;; the 'virtual-terminal' service.
                         ;;
-- 
2.22.0