diff options
| author | Luis Guilherme Coelho <lgcoelho@disroot.org> | 2026-02-01 15:37:31 -0300 |
|---|---|---|
| committer | 宋文武 <iyzsong@member.fsf.org> | 2026-02-07 13:05:05 +0800 |
| commit | df6b3fd09dd3e5455d3b64a69730e15dbf16ca83 (patch) | |
| tree | 8d3a21d5f6dbe9b6671d57e1b998b14bfa8cf0a7 /gnu | |
| parent | 301532acfe750d2d0a65e7a6d74cd20e84a42c9f (diff) | |
gnu: Add font-meslo-lg.
* gnu/packages/fonts (font-meslo-lg): New variable.
Closes: guix/guix#6059
Change-Id: If50b518978a6cafe941b4addb352b0b937e3ec67
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/fonts.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index c1583c4ad3..d6cfa4eea0 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -70,6 +70,7 @@ ;;; Copyright © 2025 Evgeny Pisemsky <mail@pisemsky.site> ;;; Copyright © 2025 Lee Thompson <lee.p.thomp@gmail.com> ;;; Copyright © 2025 Alexandre Hannud Abdo <abdo@member.fsf.org> +;;; Copyright © 2026 Luis Guilherme Coelho <lgcoelho@disroot.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -3859,6 +3860,52 @@ orthography of Roman glyphs of Meera Inimai are also based on this characteristic so that they sit smoothly with the Tamil glyphs.") (license license:silofl1.1))) +(define-public font-meslo-lg + (package + (name "font-meslo-lg") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/andreberg/Meslo-Font") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1594lxdk6788bb3i3c2fh74z4pwpzcp2r1xl3cz8cz77nrcjkl8m")))) + (build-system trivial-build-system) + (arguments + (list #:modules '((guix build utils) + (ice-9 ftw)) + #:builder + #~(let* ((orig #$(package-source this-package)) + (dist (string-append orig "/dist/v" #$version)) + (dest (string-append #$output "/share/fonts/truetype")) + (meslo-lg (string-append "Meslo LG v" #$version)) + (meslo-lg-dz (string-append "Meslo LG DZ v" #$version)) + (unzip (string-append #$(this-package-native-input "unzip") + "/bin/unzip"))) + (use-modules (guix build utils) (ice-9 ftw)) + (mkdir-p dest) + (for-each (lambda (variant) + (chdir dist) + (invoke unzip variant "-d" dest) + (chdir dest) + (for-each (lambda (file) + (when (string-suffix? ".ttf" file) + (copy-file (string-append variant "/" file) + file))) + (scandir variant)) + (delete-file-recursively variant)) + (list meslo-lg meslo-lg-dz))))) + (native-inputs (list unzip)) + (home-page "https://github.com/andreberg/Meslo-Font") + (synopsis "Font for dyslexics and high readability") + (description + "Meslo LG is a customized version of Apple's Menlo-Regular font (which is +a customized Bitstream Vera Sans Mono).") + (license license:silofl1.1))) + (define-public font-ipa (package (name "font-ipa") |
