From: John Soo <jsoo1@asu.edu>
To: 36014@debbugs.gnu.org
Subject: bug#36014: [PATCH] Attempt to use console-fonts not provided by kbd if they are installed
Date: Thu, 11 Jul 2019 14:27:15 +0000 [thread overview]
Message-ID: <CAKf5CqUzP1oopvRZz-ss2Ksxoif7ikmpOtyen8o+B0RZ6g89MQ@mail.gmail.com> (raw)
In-Reply-To: <2B601D3D-75D4-4F3B-8324-E039395227CE@asu.edu>
[-- Attachment #1.1: Type: text/plain, Size: 360 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 441 bytes --]
[-- Attachment #2: 0001-gnu-Try-using-any-system-installed-console-fonts.patch --]
[-- Type: text/x-patch, Size: 1112 bytes --]
From 15aa08d212ecea31adcd86f922c0f68297cd423a Mon Sep 17 00:00:00 2001
From: John Soo <jsoo@panosoft.com>
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
next prev parent reply other threads:[~2019-07-11 14:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 19:21 bug#36014: Allow console-font service to use fonts other than those packaged with kbd John Soo
2019-07-11 14:27 ` John Soo [this message]
2019-07-11 20:49 ` bug#36014: [PATCH] Attempt to use console-fonts not provided by kbd if they are installed Ludovic Courtès
2019-07-11 22:29 ` John Soo
2019-07-12 16:05 ` John Soo
2019-07-12 20:40 ` Ludovic Courtès
2019-08-16 18:01 ` John Soo
2019-08-22 16:00 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKf5CqUzP1oopvRZz-ss2Ksxoif7ikmpOtyen8o+B0RZ6g89MQ@mail.gmail.com \
--to=jsoo1@asu.edu \
--cc=36014@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).