From df6b3fd09dd3e5455d3b64a69730e15dbf16ca83 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sun, 1 Feb 2026 15:37:31 -0300 Subject: gnu: Add font-meslo-lg. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/fonts (font-meslo-lg): New variable. Closes: guix/guix#6059 Change-Id: If50b518978a6cafe941b4addb352b0b937e3ec67 Signed-off-by: 宋文武 --- gnu/packages/fonts.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'gnu') 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 ;;; Copyright © 2025 Lee Thompson ;;; Copyright © 2025 Alexandre Hannud Abdo +;;; Copyright © 2026 Luis Guilherme Coelho ;;; ;;; 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") -- cgit v1.3