Subject: [PATCH] gnu: fcft: Enable shaping support
From: [email-masked]
To: [email-masked]
Date: Wed, 17 Jan 2024 20:50:58 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

From: Sören Tempel <[email-masked]>

While utf8proc is an optional dependency, it is required for shaping
support. Without utf8proc, fcft_rasterize_text_run_utf32() is a no-op.
This is a popular function used—among other things—by yambar, foot,
fuzzel and fnott. Therefore, many other Linux distributions (Arch,
Debian, Fedora, …) enable this feature and I think it would be nice
to have in Guix as well.

* gnu/packages/fontutils.scm (fcft): Depend on utf8proc.

Signed-off-by: Sören Tempel <[email-masked]>
---
 gnu/packages/fontutils.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 5bfdea1b27..d06287ff29 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -73,6 +73,7 @@ (define-module (gnu packages fontutils)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages tex)
+  #:use-module (gnu packages textutils)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix gexp)
   #:use-module (guix packages)
@@ -1907,6 +1908,7 @@ (define-public fcft
      (list check pkg-config scdoc))
     (propagated-inputs
      (list ;; Required by fcft.pc.
+           utf8proc
            fontconfig
            freetype
            harfbuzz

base-commit: 29c94dd522833b2603a651c14a5b06120bcf1829