[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: Add font-scientifica.
From: |
guix-commits |
Subject: |
branch master updated: gnu: Add font-scientifica. |
Date: |
Mon, 15 May 2023 05:51:40 -0400 |
This is an automated email from the git hooks/post-receive script.
iyzsong pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new bf4b2ed165 gnu: Add font-scientifica.
bf4b2ed165 is described below
commit bf4b2ed1651a2cad6f803d75a1c9602157707774
Author: Ahmad Draidi <a.r.draidi@redscript.org>
AuthorDate: Mon May 15 00:21:17 2023 +0400
gnu: Add font-scientifica.
* gnu/packages/fonts.scm (font-scientifica): New variable.
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
---
gnu/packages/fonts.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index e4c53dbc73..c5bbce2592 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -3152,3 +3152,55 @@ The 5x8 and 6x12 versions only contain printable ASCII
characters,
Spleen also has support for Powerline symbols out of the box.")
(license license:bsd-2)))
+
+(define-public font-scientifica
+ (package
+ (name "font-scientifica")
+ (version "2.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+
"https://github.com/nerdypepper/scientifica/releases/download/"
+ "v" version "/scientifica.tar"))
+ (sha256
+ (base32
+ "0zwa3s75lvbky2vn73i1fmxa37hi3zfm7f6wfpqwcip8l1lpi1gh"))))
+ (build-system font-build-system)
+ (outputs '("out" ;OTB
+ "bdf" "ttf"))
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((otb (assoc-ref outputs "out"))
+ (bdf (assoc-ref outputs "bdf"))
+ (ttf (assoc-ref outputs "ttf"))
+ (otb-font-dir (string-append (assoc-ref
+ outputs "out")
+ "/share/fonts/misc"))
+ (ttf-font-dir (string-append (assoc-ref
+ outputs "ttf")
+ "/share/fonts/truetype"))
+ (bdf-font-dir (string-append (assoc-ref
+ outputs "bdf")
+ "/share/fonts/misc")))
+ (mkdir-p otb-font-dir)
+ (mkdir-p bdf-font-dir)
+ (mkdir-p ttf-font-dir)
+ (for-each (lambda (otb)
+ (install-file otb otb-font-dir))
+ (find-files "." "\\.otb$"))
+ (for-each (lambda (bdf)
+ (install-file bdf bdf-font-dir))
+ (find-files "." "\\.bdf$"))
+ (for-each (lambda (ttf)
+ (install-file ttf ttf-font-dir))
+ (find-files "." "\\.ttf$"))) #t)))))
+ (home-page "https://github.com/nerdypepper/scientifica")
+ (synopsis "Tall and condensed bitmap font for geeks")
+ (description
+ "@code{scientifica} is largely based on
+@url{https://github.com/romeovs/creep, @code{creep}}, with a number of
+minor tweaks to improve readability (a matter of taste of course).
+Most characters are just 4px wide, which is brilliant for low dpi(90-120)
displays.")
+ (license license:silofl1.1)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: Add font-scientifica.,
guix-commits <=