From 5e7d72d7a23eefd862273a0c57dadd11117d5abf Mon Sep 17 00:00:00 2001 From: Alex Griffin Date: Wed, 31 May 2017 11:51:41 -0500 Subject: [PATCH 2/2] gnu: font-comic-neue: Add fontconfig alias. * gnu/packages/fonts.scm (font-comic-neue): Add fontconfig alias for Comic Sans. [arguments]: Add new 'install-conf' phase. --- gnu/packages/fonts.scm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index c2ce783c8..746981806 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -1181,7 +1181,26 @@ later hand-tweaked with the gbdfed(1) editor: (modify-phases %standard-phases (add-before 'install 'chdir (lambda _ - (chdir "Web")))))) + (chdir "Web"))) + (add-after 'install 'install-conf + (lambda* (#:key outputs #:allow-other-keys) + (let ((conf-dir (string-append (assoc-ref outputs "out") + "/share/fontconfig/conf.avail"))) + (mkdir-p conf-dir) + (call-with-output-file + (string-append conf-dir "/30-comic-neue.conf") + (lambda (port) + (format port " + + + + + Comic Sans MS + + Comic Neue + + +\n"))))))))) (home-page "http://www.comicneue.com/") (synopsis "Font that fixes the shortcomings of Comic Sans") (description -- 2.13.0