Subject: bug#40120: closed (Re: [bug#40120] [PATCH] doc: guix.texi: Add console-font-service-type to Base Services.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 22 Mar 2020 21:01:01 +0000

Your bug report

#40120: [PATCH] doc: guix.texi: Add console-font-service-type to Base Services.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
40120: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40120
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#40120] [PATCH] doc: guix.texi: Add console-font-service-type to Base Services.
From: Ludovic Courtès <[email-masked]>
To: John Soo <[email-masked]>
Cc: [email-masked]
Date: Sun, 22 Mar 2020 21:59:54 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

John Soo <[email-masked]> skribis:

> From cb4cf2b72766d4416fe5d2dc69a03914ec3c06c4 Mon Sep 17 00:00:00 2001
> From: John Soo <[email-masked]>
> Date: Wed, 18 Mar 2020 08:33:59 -0700
> Subject: [PATCH] doc: guix.texi: Add console-font-service-type to Base
>  Services.
>
> * doc/guix.texi (Base Services): Add console-font-service-type.

Applied with this changes:

> +@defvr {Scheme Variable} console-font-service-type @var{tty-font-pairs}

Remove @var{tty-font-pairs}.

> +@lisp
> +'((\"tty1\" . \"LatGrkCyr-8x16\")
> +  (\"tty2\" . (file-append
> +                font-tamzen
> +                \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))

Changed to quasiquote/unquote as needed (same in gnu/services/base.scm,
which had the same typo), and \" → ".

Thanks,
Ludo’.

Subject: [PATCH] doc: guix.texi: Add console-font-service-type to Base Services.
From: John Soo <[email-masked]>
To: [email-masked]
Date: Wed, 18 Mar 2020 15:45:01 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi guix,

I struggled with the console-font-service-type for a long time (mostly
becase setfont does not state you can specify a path). Documenting it
in the info pages would have helped.

Thanks!

John
From 6a7204a6396781c1bbc1db1defee362c0a8142f9 Mon Sep 17 00:00:00 2001
From: John Soo <[email-masked]>
Date: Wed, 18 Mar 2020 08:33:59 -0700
Subject: [PATCH] doc: guix.texi: Add console-font-service-type to Base
 Services.

* doc/guix.texi (console-font-service-type): Add it.
---
 doc/guix.texi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 28808b0cd5..0626beffac 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -12287,6 +12287,23 @@ symlink:
 Return a service that sets the host name to @var{name}.
 @end deffn
 
+@deffn {Scheme Procedure} console-font-service-type @var{tty-font-pairs}
+Install the given fonts on the specified ttys (fonts are per
+virtual console on the kernel Linux).  The value of this service is a list of
+tty/font pairs.  The font can be the name of a font provided by the @code{kbd}
+package or any valid argument to @command{setfont}, as in this example:
+
+@lisp
+'((\"tty1\" . \"LatGrkCyr-8x16\")
+  (\"tty2\" . (file-append
+                font-tamzen
+                \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))
+  (\"tty3\" . (file-append
+                font-terminus
+                \"/share/consolefonts/ter-132n\"))) ; for HDPI
+@end lisp
+@end deffn
+
 @deffn {Scheme Procedure} login-service @var{config}
 Return a service to run login according to @var{config}, a
 @code{<login-configuration>} object, which specifies the message of the day,
-- 
2.25.1