1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2017 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Joshua Grant <tadni@riseup.net>
5 ;;; Copyright © 2014 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
7 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
8 ;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
11 ;;; Copyright © 2016 Jookia <166291@gmail.com>
12 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
13 ;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
14 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016, 2020 Marius Bakke <mbakke@fastmail.com>
16 ;;; Copyright © 2016 Toni Reina <areina@riseup.net>
17 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
18 ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com>
19 ;;; Copyright © 2017 Alex Griffin <a@ajgrf.com>
20 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
21 ;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
22 ;;; Copyright © 2017, 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
23 ;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
24 ;;; Copyright © 2018 Charlie Ritter <chewzerita@posteo.net>
25 ;;; Copyright © 2018 Gabriel Hondet <gabrielhondet@gmail.com>
26 ;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk>
27 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
28 ;;; Copyright © 2019 Baptiste Strazzulla <bstrazzull@hotmail.fr>
29 ;;; Copyright © 2019 Alva <alva@skogen.is>
30 ;;; Copyright © 2019 Alexandros Theodotou <alex@zrythm.org>
31 ;;; Copyright © 2020 Damien Cassou <damien@cassou.me>
32 ;;; Copyright © 2020 Amin Bandali <bandali@gnu.org>
33 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
34 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
35 ;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
36 ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
38 ;;; This file is part of GNU Guix.
40 ;;; GNU Guix is free software; you can redistribute it and/or modify it
41 ;;; under the terms of the GNU General Public License as published by
42 ;;; the Free Software Foundation; either version 3 of the License, or (at
43 ;;; your option) any later version.
45 ;;; GNU Guix is distributed in the hope that it will be useful, but
46 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
47 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48 ;;; GNU General Public License for more details.
50 ;;; You should have received a copy of the GNU General Public License
51 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
53 (define-module (gnu packages fonts)
54 #:use-module (ice-9 regex)
55 #:use-module (guix utils)
56 #:use-module ((guix licenses) #:prefix license:)
57 #:use-module (guix packages)
58 #:use-module (guix download)
59 #:use-module (guix git-download)
60 #:use-module (guix build-system font)
61 #:use-module (guix build-system gnu)
62 #:use-module (guix build-system meson)
63 #:use-module (guix build-system trivial)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages compression)
66 #:use-module (gnu packages fontutils)
67 #:use-module (gnu packages gettext)
68 #:use-module (gnu packages glib)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages perl)
71 #:use-module (gnu packages pkg-config)
72 #:use-module (gnu packages python)
73 #:use-module (gnu packages python-xyz)
74 #:use-module (gnu packages xorg))
76 (define-public font-ibm-plex
78 (name "font-ibm-plex")
83 "https://github.com/IBM/plex/releases/download/"
84 "v" version "/OpenType.zip"))
87 "17bd84ic7z9hkcjy4bwnh4z51bnkh2vrjzwvs9g6lwzmxjswa5b6"))))
88 (build-system font-build-system)
89 (home-page "https://github.com/IBM/plex")
90 (synopsis "IBM Plex typeface")
91 (description "This package provides the Plex font family. It comes in a
92 Sans, Serif, Mono and Sans Condensed, all with roman and true italics. The
93 fonts have been designed to work well in user interface (UI) environments as
94 well as other mediums.")
95 (license license:silofl1.1)))
97 (define-public font-inconsolata
99 (name "font-inconsolata")
104 (uri (string-append "https://github.com/googlefonts/Inconsolata/"
105 "releases/download/v" version "/fonts_otf.zip"))
107 (base32 "1wavvv86nwsqm5sbmnkv1bprj7l7zdrkxpvjy6w8yag93k6hrlx1"))))
108 (build-system font-build-system)
109 (home-page "https://levien.com/type/myfonts/inconsolata.html")
110 (synopsis "Monospace font")
111 (description "A monospace font, designed for code listings and the like,
112 in print. With attention to detail for high resolution rendering.")
113 (license license:silofl1.1)))
115 (define-public font-ubuntu
122 (url "https://salsa.debian.org/fonts-team/fonts-ubuntu")
123 (commit (string-append "upstream/" version))))
124 (file-name (git-file-name name version))
127 "1d2xrjpxy70f3nsgqiggwv6pj06qglf5vj2847pqx60w3ygi903g"))))
128 (build-system font-build-system)
129 (home-page "http://font.ubuntu.com/")
130 (synopsis "The Ubuntu Font Family")
131 (description "The Ubuntu Font Family is a unique, custom designed font
132 that has a very distinctive look and feel. This package provides the
133 TrueType (TTF) files.")
135 (license:non-copyleft
136 "http://font.ubuntu.com/ufl/ubuntu-font-licence-1.0.txt"
137 "Ubuntu Font License v1.0"))))
139 (define-public font-dejavu
145 (uri (string-append "mirror://sourceforge/dejavu/dejavu/"
146 version "/dejavu-fonts-ttf-"
150 "1mqpds24wfs5cmfhj57fsfs07mji2z8812i5c4pi5pbi738s977s"))))
151 (build-system font-build-system)
154 (modify-phases %standard-phases
155 (add-after 'install 'install-conf
156 (lambda* (#:key outputs #:allow-other-keys)
157 (let ((conf-dir (string-append (assoc-ref outputs "out")
158 "/share/fontconfig/conf.avail")))
159 (copy-recursively "fontconfig" conf-dir)
161 (home-page "https://dejavu-fonts.github.io/")
162 (synopsis "Vera font family derivate with additional characters")
163 (description "DejaVu provides an expanded version of the Vera font family
164 aiming for quality and broader Unicode coverage while retaining the original
165 Vera style. DejaVu currently works towards conformance to the Multilingual
166 European Standards (MES-1 and MES-2) for Unicode coverage. The DejaVu fonts
167 provide serif, sans and monospaced variants.")
170 "http://dejavu-fonts.org/"))))
172 (define-public font-bitstream-vera
174 (name "font-bitstream-vera")
178 (uri (string-append "mirror://gnome/sources/ttf-bitstream-vera/"
179 version "/ttf-bitstream-vera-"
183 "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv"))))
184 (build-system font-build-system)
185 (home-page "https://www.gnome.org/fonts/")
186 (synopsis "Bitstream Vera sans-serif typeface")
187 (description "Vera is a sans-serif typeface from Bitstream, Inc. This
188 package provides the TrueType (TTF) files.")
190 (license:fsdg-compatible
191 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts"
192 "The Font Software may be sold as part of a larger software package but
193 no copy of one or more of the Font Software typefaces may be sold by
196 (define-public font-cantarell
198 (name "font-abattis-cantarell")
202 (uri (string-append "mirror://gnome/sources/cantarell-fonts/"
203 (version-major+minor version)
204 "/cantarell-fonts-" version ".tar.xz"))
207 "0qwqmkczqy09fdj8l11nr841ks0dwsydqg55qyms12m4yvjn87xn"))))
208 (build-system meson-build-system)
210 `(("gettext" ,gettext-minimal))) ; for msgfmt
211 (home-page "https://wiki.gnome.org/Projects/CantarellFonts")
212 (synopsis "Cantarell sans-serif typeface")
213 (description "The Cantarell font family is a contemporary Humanist
214 sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.")
215 (license license:silofl1.1)))
217 (define-public font-lato
220 (version "2.015") ; also update description
222 (method url-fetch/zipbomb)
223 (uri (string-append "https://www.latofonts.com/download/Lato2OFL.zip"))
226 "1f5540g0ja1nx3ddd3ywn77xc81ssrxpq8n3gyb9sabyq2b4xda2"))))
227 (build-system font-build-system)
228 (home-page "https://www.latofonts.com/lato-free-fonts/")
229 (synopsis "Lato sans-serif typeface")
231 "Lato is a sanserif typeface family. It covers over 3000 glyphs per style.
232 The Lato 2.010 family supports more than 100 Latin-based languages, over
233 50 Cyrillic-based languages as well as Greek and IPA phonetics.")
234 (license license:silofl1.1)))
236 (define-public font-gnu-freefont
238 (name "font-gnu-freefont")
239 ;; Note: Remove the special FontForge input and package once the 2020
244 (uri (string-append "mirror://gnu/freefont/freefont-src-"
248 "0yk58blhcd4hm7nyincmqq4jrzjjk82wif2zmk1l3y2m4vif4qhd"))))
249 (build-system gnu-build-system)
251 `(#:phases (modify-phases %standard-phases
255 (let ((doc-dir (string-append %output "/share/doc/"
257 (ttf-font-dir (string-append %output
258 "/share/fonts/truetype"))
259 (otf-font-dir (string-append %output
260 "/share/fonts/opentype"))
261 (woff-font-dir (string-append %output
262 "/share/fonts/webfonts")))
264 (substitute* "Makefile"
265 (("\\$\\(TMPDIR\\)") doc-dir)
268 (("sfd/\\*.woff") ""))
269 ;; XXX The FreeFont Makefile tries to use the current
270 ;; time and date as names for generated files, and fails
271 ;; silently. But the fonts are still installed, so we
272 ;; leave the issue alone for now.
273 ;; See <https://bugs.gnu.org/40783>
274 (system* "make" "ttftar" "otftar" "wofftar")
275 (mkdir-p ttf-font-dir)
276 (mkdir-p otf-font-dir)
277 (mkdir-p woff-font-dir)
278 (for-each (lambda (file)
279 (install-file file ttf-font-dir))
281 (lambda (file) (string-suffix? "ttf" file))
282 (find-files "." "")))
283 (for-each (lambda (file)
284 (install-file file otf-font-dir))
286 (lambda (file) (string-suffix? "otf" file))
287 (find-files "." "")))
288 (for-each (lambda (file)
289 (install-file file woff-font-dir))
291 (lambda (file) (string-suffix? "woff" file))
292 (find-files "." "")))))))
293 #:test-target "tests"))
294 ;; FreeFont anno 2012 requires a FontForge built with Python 2.
295 (native-inputs `(("fontforge" ,fontforge-20190801)))
296 (home-page "https://www.gnu.org/software/freefont/")
297 (synopsis "Unicode-encoded outline fonts")
299 "The GNU Freefont project aims to provide a set of free outline
300 (PostScript Type0, TrueType, OpenType...) fonts covering the ISO
301 10646/Unicode UCS (Universal Character Set).")
302 (license license:gpl3+)
303 (properties '((upstream-name . "freefont")
304 (ftp-directory . "/gnu/freefont")))))
306 (define-public font-gnu-freefont-ttf
307 (deprecated-package "font-gnu-freefont-ttf" font-gnu-freefont))
309 (define-public font-liberation
311 (name "font-liberation")
316 (uri (string-append "https://github.com/liberationfonts/liberation-fonts/"
317 "files/2926169/liberation-fonts-ttf-" version ".tar.gz"))
319 (base32 "0kdjsbf0y716k1kv0i0ixdpvg7b9b8xkcsg6favaxdc7pshg0kzi"))))
320 (build-system font-build-system)
321 (home-page "https://github.com/liberationfonts")
322 (synopsis "Fonts compatible with Arial, Times New Roman, and Courier New")
324 "The Liberation font family aims at metric compatibility with
325 Arial, Times New Roman, and Courier New.
326 There are three sets:
329 @item Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L, and
330 Bitstream Vera Sans);
331 @item Serif (a substitute for Times New Roman, Thorndale, Nimbus Roman, and
332 Bitstream Vera Serif);
333 @item Mono (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L,
334 and Bitstream Vera Sans Mono).
337 The Liberation Fonts are sponsored by Red Hat.")
338 (license license:silofl1.1)))
340 (define-public font-linuxlibertine
342 (name "font-linuxlibertine")
345 (method url-fetch/tarbomb)
346 (uri (string-append "mirror://sourceforge/linuxlibertine/"
347 "linuxlibertine/" version
348 "/LinLibertineSRC_" version "_2012_07_02.tgz"))
351 "0x7cz6hvhpil1rh03rax9zsfzm54bh7r4bbrq8rz673gl9h47v0v"))))
352 (build-system font-build-system)
355 (modify-phases %standard-phases
356 (add-before 'install 'build
361 "fontforge" "-lang=ff"
362 "-c" (string-append "Open('" name "');"
364 (basename name "sfd") ext
366 (for-each (lambda (name)
367 (and (compile name "ttf")
368 (compile name "otf")))
369 (find-files "." "\\.sfd$"))
372 `(("fontforge" ,fontforge)))
373 (home-page "http://www.linuxlibertine.org/")
374 (synopsis "Serif and sans serif typefaces")
375 (description "The Linux Libertine fonts is a set of typefaces containing
376 both a Serif version (\"Linux Libertine\") and a Sans Serif (\"Linux
377 Biolinum\") designed to be used together as an alternative for Times/Times New
378 Roman and Helvetica/Arial. The Serif typeface comes in two shapes and two
379 weights, and with a Small Capitals version of the regular typeface. Linux
380 Biolinum is available in both Regular and Bold weights.")
381 ;; The fonts are released under either of these licenses.
382 (license (list license:gpl2+ license:silofl1.1))))
384 (define-public font-terminus
386 (name "font-terminus")
391 (uri (string-append "mirror://sourceforge/terminus-font/terminus-font-"
392 version "/terminus-font-" version ".tar.gz"))
394 (base32 "1bwlkj39rqbyq57v5yssayav6hzv1n11b9ml2s0dpiyfsn6rqy9l"))))
395 (build-system gnu-build-system)
396 (outputs (list "out" "pcf-8bit"))
398 `(#:tests? #f ; no test target in tarball
400 (modify-phases %standard-phases
401 (add-after 'build 'build-more-bits
402 ;; X11 8-bit code pages aren't installed by default (they were
403 ;; until version 4.46). Build and install them separately.
404 (lambda* (#:key make-flags #:allow-other-keys)
405 (apply invoke "make" "pcf-8bit" make-flags)))
406 (add-after 'install 'install-more-bits
407 (lambda* (#:key make-flags outputs #:allow-other-keys)
408 (let ((pcf-8bit (assoc-ref outputs "pcf-8bit")))
409 (apply invoke "make" "install-pcf-8bit" (string-append "prefix="
413 `(("bdftopcf" ,bdftopcf)
414 ("font-util" ,font-util)
415 ("mkfontdir" ,mkfontdir)
416 ("pkg-config" ,pkg-config)
418 (home-page "http://terminus-font.sourceforge.net/")
419 (synopsis "Simple bitmap programming font")
420 (description "Terminus Font is a clean, fixed-width bitmap font, designed
421 for long periods of working with computers (8 or more hours per day).")
422 (license license:silofl1.1)))
424 (define-public font-adobe-source-han-sans
426 (name "font-adobe-source-han-sans")
431 (url "https://github.com/adobe-fonts/source-han-sans.git")
432 (commit (string-append version "R"))))
433 (file-name (git-file-name name version))
436 "0zm884d8fp5gvirq324050kqv7am9khyqhs9kk4r4rr3jzn61jpk"))))
437 (outputs '("out" ; OpenType/CFF Collection (OTC), 121 MiB.
438 "cn" "jp" "kr" "tw")) ; Region-specific Subset OpenType/CFF.
439 (build-system trivial-build-system)
441 `(#:modules ((guix build utils))
444 (use-modules (guix build utils))
445 (let ((install-opentype-fonts
446 (lambda (fonts-dir out)
447 (copy-recursively fonts-dir
448 (string-append (assoc-ref %outputs out)
449 "/share/fonts/opentype")))))
450 (chdir (assoc-ref %build-inputs "source"))
451 (install-opentype-fonts "OTC" "out")
452 (install-opentype-fonts "SubsetOTF/CN" "cn")
453 (install-opentype-fonts "SubsetOTF/JP" "jp")
454 (install-opentype-fonts "SubsetOTF/KR" "kr")
455 (install-opentype-fonts "SubsetOTF/TW" "tw")
456 (for-each delete-file (find-files %output "\\.zip$"))
458 (home-page "https://github.com/adobe-fonts/source-han-sans")
459 (synopsis "Pan-CJK fonts")
461 "Source Han Sans is a sans serif Pan-CJK font family that is offered in
462 seven weights: ExtraLight, Light, Normal, Regular, Medium, Bold, and Heavy.
463 And in several OpenType/CFF-based deployment configurations to accommodate
464 various system requirements or limitations. As the name suggests, Pan-CJK
465 fonts are intended to support the characters necessary to render or display
466 text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.")
467 (license license:silofl1.1)))
469 (define-public font-cns11643
470 ;; Since upstream doesn't provide any version numbers, the date of the last
471 ;; edit is used, taken from https://data.gov.tw/dataset/5961
472 ;; XXX: The source is also updated in-place, so it may be desirable to mirror
473 ;; it elsewhere to avoid suddenly losing the current source file.
475 (name "font-cns11643")
476 (version "98.1.20180605")
479 (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
482 "000a9whrjr1cd4pjc23pbl60zwkq3wcb5g61p9qi7fn3hwkp0kyw"))))
483 (build-system font-build-system)
484 (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
485 (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
487 "@code{CNS 11643} character set (Chinese National Standard, or Chinese
488 Standard Interchange Code) is the standard character set of the Republic of
489 China (Taiwan) for Chinese Characters and other Unicode symbols. Contained
490 are six TrueType fonts based on two script styles, Regular script (Kai), and
491 Sung/Ming script, each with three variants:
494 @item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thousands
495 of CJK characters from frequency tables published by the Taiwanese
496 Ministry of Education. ISO 10646 and Unicode compatible encoding.
497 @item @code{Big-5 Plus}: Several thousand frequently used CJK characters
498 encoded in the user defined area of the Big-5 code.
499 @item @code{Big-5 Extended}: A Big-5 character set based on the
500 @code{Big-5 Plus} and @code{CNS 11643} character sets.
502 (license (license:non-copyleft
503 "http://data.gov.tw/license")))) ; CC-BY 4.0 compatible
505 (define-public font-cns11643-swjz
507 (name "font-cns11643-swjz")
512 (uri "https://www.moedict.tw/fonts/truetype/cns11643/ebas927.ttf")
515 "1qkljldbmb53zp1rcmpsb8rzy67rnsqcjxi549m9743ifk4isl78"))))
516 (build-system font-build-system)
518 (string-append "http://www.cns11643.gov.tw/AIDB/download.do"
519 "?name=%E5%AD%97%E5%9E%8B%E4%B8%8B%E8%BC%89"))
520 (synopsis "TrueType seal script font")
522 "@code{Shuowen Jiezi} is a TrueType seal script font based on the ancient
523 text of the same name published by the Executive Yuan of Taiwan. 6721 glyphs
524 are included, at Unicode compatible code points corresponding to their modern
526 ;; Original text only available in Chinese. More info at
527 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26703#11
528 (license (license:non-copyleft
529 "http://www.cns11643.gov.tw/AIDB/copyright.do"))))
531 (define-public font-wqy-zenhei
533 (name "font-wqy-zenhei")
538 "mirror://sourceforge/wqy/wqy-zenhei/" version
539 "%20%28Fighting-state%20RC1%29/wqy-zenhei-"
543 "1mkmxq8g2hjcglb3zajfqj20r4r88l78ymsp2xyl5yav8w3f7dz4"))))
544 (build-system font-build-system)
545 (home-page "http://wenq.org/wqy2/")
546 (synopsis "CJK font")
548 "WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese outline
549 font. It is designed for general purpose text formatting and on-screen
550 display of Chinese characters and symbols from many other languages.
551 WenQuanYi Zen Hei provides a rather complete coverage of Chinese Hanzi glyphs,
552 including both simplified and traditional forms. The total glyph number in
553 this font is over 35,000, including over 21,000 Chinese Hanzi. This font has
554 full coverage of the GBK (CP936) charset, CJK Unified Ideographs, as well as
555 the code-points needed for zh_cn, zh_sg, zh_tw, zh_hk, zh_mo, ja (Japanese) and
556 ko (Korean) locales for @code{fontconfig}.")
557 ;; GPLv2 with font embedding exception.
558 (license license:gpl2)))
560 (define-public font-wqy-microhei
562 (name "font-wqy-microhei")
563 (version "0.2.0-beta")
566 (uri (string-append "mirror://sourceforge/wqy/wqy-microhei/"
567 version "/wqy-microhei-" version ".tar.gz"))
570 "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8"))))
571 (build-system font-build-system)
572 (home-page "http://wenq.org/wqy2/")
573 (synopsis "CJK font")
575 "WenQuanYi Micro Hei is a Sans-Serif style (also known as Hei, Gothic or
576 Dotum among the Chinese/Japanese/Korean users) high quality CJK outline font.
577 It was derived from \"Droid Sans Fallback\" and \"Droid Sans\" released by
578 Google Inc. This font contains all the unified CJK Han glyphs in the range of
579 U+4E00-U+9FC3 defined in Unicode Standard 5.1, together with many other
580 languages unicode blocks, including Latins, Extended Latins, Hanguls and
581 Kanas. The font file is extremely compact (~4M) compared with most known CJK
583 ;; This font is licensed under Apache2.0 or GPLv3 with font embedding
585 (license license:gpl3)))
587 (define-public font-rachana
589 (name "font-rachana")
595 (url "https://gitlab.com/smc/fonts/rachana")
596 (commit (string-append "Version" version))))
598 (base32 "0r100pvk56y1s38nbv24d78s8nd7dkblgasbn8s887dzj6dps23d"))
599 (file-name (git-file-name name version))))
600 (build-system font-build-system)
601 (home-page "https://smc.org.in")
602 (synopsis "Malayalam font")
604 "Rachana is a Malayalam font designed by Hussain K H. The project was
605 part of Rachana Aksharavedi for the original script of Malayalam in computing.
606 Rachana has about 1,200+ glyphs for Malayalam and contains glyphs required for
607 printing old Malayalam books without compromising the writing style.")
608 ;; This font is licensed under SIL 1.1 or GPLv3+ with font embedding
610 (license (list license:silofl1.1 license:gpl3+))))
612 (define-public font-tex-gyre
614 (name "font-tex-gyre")
618 (method url-fetch/zipbomb)
619 (uri (string-append "http://www.gust.org.pl/projects/e-foundry/"
620 "tex-gyre/whole/tg-" version "otf.zip"))
623 "0kph9l3g7jb2bpmxdbdg5zl56wacmnvdvsdn7is1gc750sqvsn31"))))
624 (build-system font-build-system)
625 (home-page "http://www.gust.org.pl/projects/e-foundry/tex-gyre/")
626 (synopsis "Remake of Ghostscript fonts")
627 (description "The TeX Gyre collection of fonts is the result of an
628 extensive remake and extension of the freely available base PostScript fonts
629 distributed with Ghostscript version 4.00. The collection contains the
630 following fonts in the OpenType format: Adventor, Bonum, Chorus, Cursor,
631 Heros, Pagella, Schola, Termes.")
632 (license license:gfl1.0)))
634 (define-public font-anonymous-pro
636 (name "font-anonymous-pro")
641 "https://www.marksimonson.com/assets/content/fonts/"
642 "AnonymousPro-" version ".zip"))
645 "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
646 (build-system font-build-system)
647 (home-page "https://www.marksimonson.com/fonts/view/anonymous-pro")
648 (synopsis "Fixed-width fonts designed with coding in mind")
649 (description "Anonymous Pro is a family of four fixed-width fonts designed
650 with coding in mind. Anonymous Pro features an international, Unicode-based
651 character set, with support for most Western and Central European Latin-based
652 languages, plus Greek and Cyrillic.")
653 (license license:silofl1.1)))
655 (define-public font-anonymous-pro-minus
657 (inherit font-anonymous-pro)
658 (name "font-anonymous-pro-minus")
659 ;; The -Minus variant doesn't necessarily track the regular version above.
664 (uri (string-append "https://www.marksimonson.com/assets/content/fonts/"
665 "AnonymousProMinus-" version ".zip"))
667 (base32 "1p2n91jja37d2cshp5pjwld9lq0v7gnpk7ywwn2blq7k46q6vq38"))))
668 (synopsis "Fixed-width fonts designed with coding in mind, without bitmaps")
669 (description "Anonymous Pro is a family of four fixed-width fonts designed
670 with coding in mind. Anonymous Pro features an international, Unicode-based
671 character set, with support for most Western and Central European Latin-based
672 languages, plus Greek and Cyrillic.
674 Anonymous Pro Minus is identical to Anonymous Pro, minus its embedded bitmaps
675 for use at smaller text sizes")))
677 (define-public font-gnu-unifont
679 (name "font-gnu-unifont")
685 (string-append "http://unifoundry.com/pub/unifont/unifont-"
686 version "/unifont-" version ".tar.gz")
687 (string-append "mirror://gnu/unifont/unifont-"
688 version "/unifont-" version ".tar.gz")))
690 (base32 "1fg908qadh14kfbpzqfj3vgzlxgx68sdlwhl2prz7arq5r45dami"))))
691 (build-system gnu-build-system)
692 (outputs '("out" ; TrueType version
693 "pcf" ; PCF (bitmap) version
694 "psf" ; PSF (console) version
695 "bin")) ; Utilities to manipulate '.hex' format
697 '(#:tests? #f ; no check target
699 (modify-phases %standard-phases
702 (lambda _ (setenv "CC" "gcc") #t))
705 (lambda* (#:key outputs #:allow-other-keys)
706 (let* ((ttf (string-append (assoc-ref outputs "out")
707 "/share/fonts/truetype"))
708 (pcf (string-append (assoc-ref outputs "pcf")
709 "/share/fonts/misc"))
710 (psf (string-append (assoc-ref outputs "psf")
711 "/share/consolefonts"))
712 (bin (assoc-ref outputs "bin")))
714 (string-append "PREFIX=" bin)
715 (string-append "TTFDEST=" ttf)
716 (string-append "PCFDEST=" pcf)
717 (string-append "CONSOLEDEST=" psf)
719 ;; Move Texinfo file to the right place.
720 (mkdir (string-append bin "/share/info"))
721 (invoke "gzip" "-9n" "doc/unifont.info")
722 (install-file "doc/unifont.info.gz"
723 (string-append bin "/share/info"))
726 `(("perl" ,perl))) ; for utilities
728 "Large bitmap font covering Unicode's Basic Multilingual Plane")
730 "GNU Unifont is a bitmap font covering essentially all of
731 Unicode's Basic Multilingual Plane. The package also includes
732 utilities to ease adding new glyphs to the font.")
733 (home-page "http://unifoundry.com/unifont/index.html")
734 (properties '((upstream-name . "unifont")))
735 (license license:gpl2+)))
737 (define-public font-google-noto
739 (name "font-google-noto")
743 (method url-fetch/zipbomb)
744 (uri (string-append "https://noto-website-2.storage.googleapis.com/"
745 "pkgs/Noto-hinted.zip"))
746 (file-name (string-append name "-" version ".zip"))
748 (base32 "1bp42whyin7xcgmrbnfvz3rvd98xmxaz3ywqybbjmqzwaa9llyw3"))))
749 (build-system font-build-system)
750 (home-page "https://www.google.com/get/noto/")
751 (synopsis "Fonts to cover all languages")
752 (description "Google Noto Fonts is a family of fonts designed to support
753 all languages with a consistent look and aesthetic. Its goal is to properly
754 display all Unicode symbols.")
755 (license license:silofl1.1)))
757 (define-public font-google-roboto
759 (name "font-google-roboto")
764 (uri (string-append "https://github.com/google/roboto/releases/download/"
765 "v" version "/roboto-hinted.zip"))
766 (file-name (string-append name "-" version ".zip"))
769 "0spscx08fad7i8qs7icns96iwcapniq8lwwqqvbf7bamvs8qfln4"))))
770 (build-system font-build-system)
771 (home-page "https://github.com/google/roboto")
772 (synopsis "The Roboto family of fonts")
774 "Roboto is Google’s signature family of fonts, the default font on Android
775 and Chrome OS, and the recommended font for the
776 visual language \"Material Design\".")
777 (license license:asl2.0)))
779 (define-public font-un
782 (version "1.0.2-080608")
786 "https://kldp.net/unfonts/release/2607-"
787 "un-fonts-core-" version ".tar.gz"))
788 (file-name (string-append name "-" version ".tar.gz"))
791 "13liaz2pmww3aqabm55la5npd08m1skh334ky7qfidxaz5s742iv"))))
792 (build-system font-build-system)
793 (home-page "https://kldp.net/projects/unfonts/")
794 (synopsis "Collection of Korean fonts")
796 "Un-fonts is a family of mainly Korean fonts.
797 It contains the following fonts and styles:
800 @item UnBatang, UnBatangBold: serif;
801 @item UnDotum, UnDotumBold: sans-serif;
802 @item UnGraphic, UnGraphicBold: sans-serif style;
803 @item UnDinaru, UnDinaruBold, UnDinaruLight;
804 @item UnPilgi, UnPilgiBold: script;
805 @item UnGungseo: cursive, brush-stroke.
807 (license license:gpl2+)))
809 (define-public font-fantasque-sans
811 (name "font-fantasque-sans")
817 (url "https://github.com/belluzj/fantasque-sans.git")
818 (commit (string-append "v" version))))
819 (file-name (git-file-name name version))
821 (base32 "17l18488qyl9gdj80r8pcym3gp3jkgsdikwalnrp5rgvwidqx507"))))
822 (build-system gnu-build-system)
824 `(("ttfautohint" ,ttfautohint)
825 ("woff-tools" ,woff-tools)
826 ("fontforge" ,fontforge)
830 `(#:tests? #f ;test target intended for visual inspection
831 #:phases (modify-phases %standard-phases
832 (delete 'configure) ;no configuration
833 (add-before 'build 'support-python@3
834 ;; Rather than use a Python 2 fontforge, replace Python-2-
835 ;; specific code with a passable Python 3 equivalent.
837 (substitute* "Scripts/fontbuilder.py"
838 (("xrange") "range"))
839 (substitute* "Scripts/features.py"
840 (("f\\.write\\(fea_code\\)")
841 "f.write(str.encode(fea_code))"))
844 ;; 'make install' wants to install to ~/.fonts, install to
845 ;; output instead. Install only the "Normal" variant.
846 (lambda* (#:key outputs #:allow-other-keys)
847 (let* ((out (assoc-ref outputs "out"))
848 (font-dir (string-append out "/share/fonts"))
849 (truetype-dir (string-append font-dir "/truetype"))
850 (opentype-dir (string-append font-dir "/opentype"))
851 (webfonts-dir (string-append font-dir "/webfonts")))
852 (with-directory-excursion "Variants/Normal"
853 (copy-recursively "OTF" opentype-dir)
854 (for-each (lambda (f) (install-file f truetype-dir))
855 (find-files "." "\\.ttf$"))
856 (copy-recursively "Webfonts" webfonts-dir)
858 (synopsis "Font family with a monospaced variant for programmers")
860 "Fantasque Sans Mono is a programming font designed with functionality in
861 mind. The font includes a bold version and a good italic version with new
862 glyph designs, not just an added slant.")
863 (home-page "https://fontlibrary.org/en/font/fantasque-sans-mono")
864 (license license:silofl1.1)))
866 (define-public font-hack
871 (method url-fetch/zipbomb)
873 "https://github.com/source-foundry/Hack/releases/download/v"
874 version "/Hack-v" version "-ttf.zip"))
877 "1b4hh8zkrx92m2v2vfkja1napb0192p0j3laqr0m018z3dih89hc"))))
878 (build-system font-build-system)
879 (home-page "https://sourcefoundry.org/hack/")
880 (synopsis "Typeface designed for source code")
882 "Hack is designed to be a workhorse typeface for code. It expands upon
883 the Bitstream Vera & DejaVu projects, provides over 1,500 glyphs, and includes
886 ;; See https://github.com/source-foundry/Hack/issues/271 for details.
887 (list license:expat ; the Hack modifications to...
888 license:public-domain ; ...the DejaVu modifications to...
889 (license:x11-style ; ...the Bitstream Vera typeface
890 "file://LICENSE.md" "Bitstream Vera License")))))
892 (define-public font-adobe-source-code-pro
894 (name "font-adobe-source-code-pro")
895 (version "2.030R-ro-1.050R-it")
900 (url "https://github.com/adobe-fonts/source-code-pro.git")
901 (commit (regexp-substitute/global
902 ;; The upstream tag uses "/" between the roman and italic
903 ;; versions, so substitute our "-" separator here.
904 #f "R-ro-" version 'pre "R-ro/" 'post))))
905 (file-name (git-file-name name version))
907 (base32 "0hc5kflr8xzqgdm0c3gbgb1paygznxmnivkylid69ipc7wnicx1n"))))
908 (build-system font-build-system)
909 (home-page "https://github.com/adobe-fonts/source-code-pro")
911 "Monospaced font family for user interface and coding environments")
913 "Source Code Pro is a set of monospaced OpenType fonts that have been
914 designed to work well in user interface environments.")
915 (license license:silofl1.1)))
917 (define-public font-adobe-source-sans-pro
919 (name "font-adobe-source-sans-pro")
920 (version "2.040R-ro-1.090R-it")
925 (url "https://github.com/adobe-fonts/source-sans-pro.git")
926 (commit (regexp-substitute/global
927 ;; The upstream tag uses "/" between the roman and italic
928 ;; versions, so substitute our "-" separator here.
929 #f "R-ro-" version 'pre "R-ro/" 'post))))
930 (file-name (git-file-name name version))
932 (base32 "1lzin2hfwidbvhps7shs201p1bpxy6220xmhhprv9fc8bknd4c45"))))
933 (build-system font-build-system)
934 (home-page "https://github.com/adobe-fonts/source-sans-pro")
936 "Sans serif font family for user interface environments")
938 "Source Sans Pro is a set of OpenType fonts that have been designed to
939 work well in user interface (UI) environments.")
940 (license license:silofl1.1)))
942 (define-public font-adobe-source-serif-pro
944 (name "font-adobe-source-serif-pro")
945 (version "2.007R-ro-1.007R-it")
950 (url "https://github.com/adobe-fonts/source-serif-pro.git")
951 (commit (regexp-substitute/global
952 ;; The upstream tag uses "/" between the roman and italic
953 ;; versions, so substitute our "-" separator here.
954 #f "R-ro-" version 'pre "R-ro/" 'post))))
955 (file-name (git-file-name name version))
957 (base32 "1vvzfhjpi47m84bzkapylkd5fri8bdm8qng2hiylmmlw0wk4gpas"))))
958 (build-system font-build-system)
959 (home-page "https://github.com/adobe-fonts/source-serif-pro")
961 "Serif typeface to complement Source Sans Pro for setting text")
963 "Source Serif Pro is a set of OpenType fonts to complement the Source
965 (license license:silofl1.1)))
967 (define-public font-fira-mono
969 (name "font-fira-mono")
973 (uri (string-append "https://carrois.com/downloads/fira_mono_3_2/"
975 (string-replace-substring version "." "")
979 "1z65x0dw5dq6rs6p9wyfrir50rlh95vgzsxr8jcd40nqazw4jhpi"))))
980 (build-system font-build-system)
981 (home-page "https://mozilla.github.io/Fira/")
982 (synopsis "Mozilla's monospace font")
983 (description "This is the typeface used by Mozilla in Firefox OS.")
984 (license license:silofl1.1)))
986 (define-public font-fira-sans
988 (name "font-fira-sans")
993 (url "https://github.com/mozilla/Fira.git")
995 (file-name (git-file-name name version))
998 "116j26gdj5g1r124b4669372f7490vfjqw7apiwp2ggl0am5xd0w"))))
999 (build-system font-build-system)
1000 (home-page "https://mozilla.github.io/Fira/")
1001 (synopsis "Mozilla's Fira Sans Font")
1002 (description "This is the typeface used by Mozilla in Firefox OS.")
1003 (license license:silofl1.1)))
1005 (define-public font-fira-code
1007 (name "font-fira-code")
1010 (method url-fetch/zipbomb)
1011 (uri (string-append "https://github.com/tonsky/FiraCode/releases/"
1013 "/FiraCode_" version ".zip"))
1016 "02r1lcp0c9135ps71v66wdvbsrcxwirrp0blqsa1xbjkkq2rwgj3"))))
1017 (build-system font-build-system)
1018 (home-page "https://mozilla.github.io/Fira/")
1019 (synopsis "Monospaced font with programming ligatures")
1021 "Fira Code is an extension of the Fira Mono font containing a set of ligatures
1022 for common programming multi-character combinations. This is just a font rendering
1023 feature: underlying code remains ASCII-compatible. This helps to read and understand
1024 code faster. For some frequent sequences like .. or //, ligatures allow us to
1026 (license license:silofl1.1)))
1028 (define-public font-awesome
1030 (name "font-awesome")
1031 ;; XXX The build scripts of version 5 are not freely licensed and
1032 ;; so we have to stick with version 4 for now:
1033 ;; <https://bugs.gnu.org/32916>
1038 (url "https://github.com/FortAwesome/Font-Awesome.git")
1039 (commit (string-append "v" version))))
1040 (file-name (git-file-name name version))
1043 "0w30y26jp8nvxa3iiw7ayl6rkza1rz62msl9xw3srvxya1c77grc"))))
1044 (build-system font-build-system)
1047 (modify-phases %standard-phases
1049 (lambda* (#:key outputs #:allow-other-keys)
1050 (let* ((out (assoc-ref outputs "out"))
1051 (source (string-append (getcwd) "/fonts"))
1052 (fonts (string-append out "/share/fonts")))
1053 (for-each (lambda (file)
1054 (install-file file (string-append fonts "/truetype")))
1055 (find-files source "\\.(ttf|ttc)$"))
1056 (for-each (lambda (file)
1057 (install-file file (string-append fonts "/opentype")))
1058 (find-files source "\\.(otf|otc)$"))
1060 (home-page "https://fontawesome.com/")
1061 (synopsis "Font that contains a rich iconset")
1063 "Font Awesome is a full suite of pictographic icons for easy scalable
1065 (license license:silofl1.1)))
1067 (define-public font-tamzen
1069 (name "font-tamzen")
1075 (url "https://github.com/sunaku/tamzen-font.git")
1076 (commit (string-append "Tamzen-" version))))
1077 (file-name (git-file-name name version))
1080 "17kgmvg6q32mqhx9g44hjvzv0si0mnpprga4z7na930g2zdd8846"))))
1081 (build-system trivial-build-system)
1083 `(#:modules ((guix build utils))
1086 (use-modules (guix build utils))
1088 (let* ((out (assoc-ref %outputs "out"))
1089 (font-dir (string-append out "/share/fonts/misc"))
1090 (psf-dir (string-append out "/share/kbd/consolefonts")))
1091 (chdir (assoc-ref %build-inputs "source"))
1094 (for-each (lambda (pcf)
1095 (install-file pcf font-dir))
1096 (find-files "pcf" "\\.pcf$"))
1097 (for-each (lambda (psf)
1098 (install-file psf psf-dir))
1099 (find-files "psf" "\\.psf$"))
1101 (home-page "https://github.com/sunaku/tamzen-font")
1102 (synopsis "Monospaced bitmap font for console and X11")
1104 "Tamzen is a fork of the @code{Tamsyn} font. It is programmatically forked
1105 from @code{Tamsyn} version 1.11, backporting glyphs from older versions while
1106 deleting deliberately empty glyphs (which are marked as unimplemented) to
1107 allow secondary/fallback fonts to provide real glyphs at those codepoints.
1109 The @code{TamzenForPowerline} fonts provide additional @code{Powerline} symbols,
1110 which are programmatically injected with @code{bitmap-font-patcher} and
1111 later hand-tweaked with the gbdfed(1) editor:
1114 @item all icons are expanded to occupy the maximum available space
1115 @item the branch of the fork icon ( U+E0A0) was made larger than the trunk
1116 @item for the newline icon ( U+E0A1), the @emph{N} was made larger at the bottom
1117 @item the keyhole in the padlock icon ( U+E0A2) was replaced with @emph{//} lines.
1119 (license (license:non-copyleft "file://LICENSE"))))
1121 (define-public font-comic-neue
1123 (name "font-comic-neue")
1126 (method url-fetch/zipbomb)
1128 "http://www.comicneue.com/comic-neue-" version ".zip"))
1131 "1ng0m0zs7qr91qy5ff0l01l27npr76961c6zfkxnhxf68zpwz5k4"))))
1132 (build-system font-build-system)
1135 (modify-phases %standard-phases
1136 ;; Delete Mac OS X specific files. If not deleted, these cause
1137 ;; several hidden files to be installed.
1138 (add-before 'install 'delete-macosx-files
1140 (delete-file-recursively "__MACOSX")
1142 (add-after 'install 'install-conf
1143 (lambda* (#:key outputs #:allow-other-keys)
1144 (let ((conf-dir (string-append (assoc-ref outputs "out")
1145 "/share/fontconfig/conf.avail")))
1147 (call-with-output-file
1148 (string-append conf-dir "/30-comic-neue.conf")
1150 (format port "<?xml version=\"1.0\"?>
1151 <!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">
1153 <!-- If Comic Sans is missing, use Comic Neue instead. -->
1155 <family>Comic Sans MS</family>
1157 <family>Comic Neue</family>
1160 </fontconfig>\n"))))
1162 (home-page "http://www.comicneue.com/")
1163 (synopsis "Font that fixes the shortcomings of Comic Sans")
1165 "Comic Neue is a font that attempts to create a respectable casual
1166 typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
1167 (license license:silofl1.1)))
1169 (define-public font-iosevka
1171 (name "font-iosevka")
1172 ;; When updating, also update the hash of the Iosevka variant(s) below.
1176 (method url-fetch/zipbomb)
1177 (uri (string-append "https://github.com/be5invis/Iosevka"
1178 "/releases/download/v" version
1179 "/ttc-iosevka-" version ".zip"))
1181 (base32 "0jkv5rkg5hi0avhwyhcjiqzjslp6zjj77f09vxx2gj9l93byz731"))))
1182 (build-system font-build-system)
1183 (home-page "https://be5invis.github.io/Iosevka/")
1184 (synopsis "Coders' typeface, built from code")
1186 "Iosevka is a slender monospace sans-serif or slab-serif typeface inspired
1187 by Pragmata Pro, M+, and PF DIN Mono, designed to be the ideal font for
1188 programming. Iosevka is completely generated from its source code.")
1189 (license (list license:silofl1.1 ; build artifacts (i.e. the fonts)
1190 license:bsd-3)))) ; supporting code
1192 (define-public font-iosevka-slab
1194 (inherit font-iosevka)
1195 (name "font-iosevka-slab")
1196 (version (package-version font-iosevka))
1199 (method url-fetch/zipbomb)
1200 (uri (string-append "https://github.com/be5invis/Iosevka"
1201 "/releases/download/v" version
1202 "/ttc-iosevka-slab-" version ".zip"))
1204 (base32 "1rkmgi08kknc1fg54zpa6w92m3b3v7pc8cpwygz22kgd2h0mdrr8"))))))
1206 (define-public font-iosevka-term
1208 (inherit font-iosevka)
1209 (name "font-iosevka-term")
1210 (version (package-version font-iosevka))
1213 (method url-fetch/zipbomb)
1214 (uri (string-append "https://github.com/be5invis/Iosevka"
1215 "/releases/download/v" version
1216 "/02-iosevka-term-" version ".zip"))
1219 "1mxlb3qf64nykjd0x4gjfvib3k5kyv9ssv9iyzxxgk2z80bydz00"))))
1222 (modify-phases %standard-phases
1223 (add-before 'install 'make-files-writable
1225 (for-each make-file-writable (find-files "." ".*"))
1228 (define-public font-iosevka-term-slab
1230 (inherit font-iosevka)
1231 (name "font-iosevka-term-slab")
1232 (version (package-version font-iosevka))
1235 (method url-fetch/zipbomb)
1236 (uri (string-append "https://github.com/be5invis/Iosevka"
1237 "/releases/download/v" version
1238 "/06-iosevka-term-slab-" version ".zip"))
1241 "1gc16hih157qy6vpa8f88psq0fnksiigi3msqazc75zsm3z4kzqj"))))
1244 (modify-phases %standard-phases
1245 (add-before 'install 'make-files-writable
1247 (for-each make-file-writable (find-files "." ".*"))
1250 (define-public font-go
1251 (let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
1255 (version (string-append "20170330-" revision "." (string-take commit 7)))
1257 (file-name (string-append "go-image-" version "-checkout"))
1260 (url "https://go.googlesource.com/image")
1264 "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
1265 (build-system font-build-system)
1268 (modify-phases %standard-phases
1269 (add-before 'install 'chdir
1271 (chdir "font/gofont/ttfs")
1273 (home-page "https://blog.golang.org/go-fonts")
1274 (synopsis "The Go font family")
1276 "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
1277 Holmes type foundry, released under the same license as the Go programming
1278 language. It includes a set of proportional, sans-serif fonts, and a set of
1279 monospace, slab-serif fonts.")
1280 (license license:bsd-3))))
1282 (define-public font-google-material-design-icons
1284 (name "font-google-material-design-icons")
1289 (url "https://github.com/google/material-design-icons.git")
1291 (file-name (git-file-name name version))
1294 "17q5brcqyyc8gbjdgpv38p89s60cwxjlwy2ljnrvas5cj0s62np0"))))
1295 (build-system font-build-system)
1296 (home-page "https://google.github.io/material-design-icons")
1297 (synopsis "Icon font of Google Material Design icons")
1299 "Material design system icons are simple, modern, friendly, and sometimes
1300 quirky. Each icon is created using our design guidelines to depict in simple
1301 and minimal forms the universal concepts used commonly throughout a UI.
1302 Ensuring readability and clarity at both large and small sizes, these icons
1303 have been optimized for beautiful display on all common platforms and display
1305 (license license:asl2.0)))
1307 (define-public font-opendyslexic
1309 (name "font-opendyslexic")
1313 (method url-fetch/zipbomb)
1314 (uri (string-append "https://github.com/antijingoist/opendyslexic/"
1315 "releases/download/v" version
1316 "/opendyslexic-0.910.12-rc2-2019.10.17.zip"))
1319 "11ml7v4iyf3hr0fbnkwz8afb8vi58wbcfnmn4gyvrwh9jk5pybdr"))))
1320 (build-system font-build-system)
1321 (native-inputs `(("unzip" ,unzip)))
1322 (home-page "https://opendyslexic.org/")
1323 (synopsis "Font for dyslexics and high readability")
1324 (description "OpenDyslexic is a font designed to help readability for some
1325 of the symptoms of dyslexia. Letters have heavy weighted bottoms to provide
1326 an indication of orientation to make it more difficult to confuse with other
1327 similar letters. Consistently weighted bottoms can also help reinforce the
1328 line of text. The unique shapes of each letter can help prevent flipping and
1329 swapping. The italic style for OpenDyslexic has been crafted to be used for
1330 emphasis while still being readable.")
1331 (license license:silofl1.1)))
1333 (define-public font-open-dyslexic
1334 (deprecated-package "font-open-dyslexic" font-opendyslexic))
1336 (define-public font-dosis
1342 (method url-fetch/zipbomb)
1343 (uri (string-append "https://web.archive.org/web/20180228233737/"
1344 "https://www.impallari.com/media/releases/dosis-"
1345 "v" version ".zip"))
1347 (base32 "1qhci68f68mf87jd69vjf9qjq3wydgw1q7ivn3amjb65ls1s0c4s"))))
1348 (build-system font-build-system)
1349 (home-page (string-append "https://web.archive.org/web/20180228233737/"
1350 "https://www.impallari.com/dosis"))
1351 (synopsis "Very simple, rounded, sans serif family")
1353 "Dosis is a very simple, rounded, sans serif family.
1354 The lighter weights are minimalist. The bolder weights have more personality.
1355 The medium weight is nice and balanced. The overall result is a family
1356 that's clean and modern, and can express a wide range of voices & feelings.
1357 It comes in 7 incremental weights:
1358 ExtraLight, Light, Book, Medium, Semibold, Bold & ExtraBold")
1359 (license license:silofl1.1)))
1361 (define-public font-culmus
1363 (name "font-culmus")
1368 (uri (string-append "https://sourceforge.net/projects/"
1369 "culmus/files/culmus/" version "/culmus-src-"
1373 "02akysgsqhi15cck54xcacm16q5raf4l7shgb8fnj7xr3c1pbfyp"))))
1374 (build-system font-build-system)
1377 (modify-phases %standard-phases
1378 (add-before 'install 'build
1383 "fontforge" "-lang=ff"
1384 "-c" (string-append "Open('" name "');"
1386 (basename name "sfd") ext
1388 ;; This part based on the fonts shipped in the non-source package.
1389 (for-each (lambda (name)
1390 (compile name "ttf"))
1391 (find-files "." "^[^Nachlieli].*\\.sfd$"))
1392 (for-each (lambda (name)
1393 (compile name "otf"))
1394 (find-files "." "^Nachlieli.*\\.sfd$"))
1397 `(("fontforge" ,fontforge)))
1398 (home-page "http://culmus.sourceforge.net/")
1399 (synopsis "TrueType Hebrew Fonts for X11")
1400 (description "14 Hebrew trivial families. Contain ASCII glyphs from various
1401 sources. Those families provide a basic set of a serif (Frank Ruehl), sans
1402 serif (Nachlieli) and monospaced (Miriam Mono) trivials. Also included Miriam,
1403 Drugulin, Aharoni, David, Hadasim etc. Cantillation marks support is
1404 available in Keter YG.")
1405 (license license:gpl2))) ; consult the LICENSE file included
1407 (define-public font-lohit
1410 (version "20140220")
1414 (uri (string-append "https://releases.pagure.org/lohit/lohit-ttf-"
1418 "1rmgr445hw1n851ywy28csfvswz1i6hnc8mzp88qw2xk9j4dn32d"))))
1419 (build-system font-build-system)
1420 (home-page "https://pagure.io/lohit")
1421 (synopsis "Lohit TrueType Indic fonts")
1422 (description "Lohit is a font family designed to cover Indic scripts.
1423 Lohit supports the Assamese, Bengali, Devanagari (Hindi, Kashmiri, Konkani,
1424 Maithili, Marathi, Nepali, Sindhi, Santali, Bodo, Dogri languages), Gujarati,
1425 Kannada, Malayalam, Manipuri, Oriya, Punjabi, Tamil and Telugu scripts.")
1426 (license license:silofl1.1)))
1428 (define-public font-blackfoundry-inria
1430 (name "font-blackfoundry-inria")
1432 (home-page "https://github.com/BlackFoundry/InriaFonts")
1437 (commit (string-append "v" version))))
1440 "06775y99lyh6hj5hzvrx56iybdck8a8xfqkipqd5c4cldg0a9hh8"))
1441 (file-name (string-append name "-" version "-checkout"))))
1442 ;; XXX: There are .ufo directories (the "source") so in theory we should
1443 ;; be able to rebuild TTF and OTF files with FontForge. Unfortunately a
1446 ;; fontforge -lang=ff -c "Open('InriaSans-Regular.ufo'); Generate('foo.ttf');"
1448 ;; segfaults in '_UFOLoadGlyph', which calls out to libpython. :-/
1449 ;; In the meantime we ship the precompiled OTF and TTF files.
1450 (build-system font-build-system)
1451 (synopsis "Inria Sans and Inria Serif type family")
1453 "Inria Sans and Inria Serif are the two members of a type family designed
1454 for Inria, a public research institute in computer science and mathematics.")
1455 (license license:silofl1.1)))
1457 (define-public font-sil-gentium
1459 (name "font-sil-gentium")
1464 "https://software.sil.org/downloads/r/gentium/GentiumPlus-"
1468 "0m7189870hha217n1vgpmf89mwggrxkh679ffi1lxpnjggqi2n9k"))))
1469 ;; Note: The zip file provides TTF files only, but the developer release,
1470 ;; which contains additional files, has a 'SOURCES.txt' file that says
1471 ;; that "the primary source files for the fonts are the fonts themselves".
1472 ;; Thus it looks like the TTF can be considered source.
1473 (build-system font-build-system)
1474 (synopsis "Serif font for the Cyrillic, Greek, and Latin alphabets")
1476 "Gentium is a typeface family designed to enable the diverse ethnic
1477 groups around the world who use the Latin, Cyrillic and Greek scripts to
1478 produce readable, high-quality publications. The font comes with regular and
1479 italics shapes. This package provides only TrueType files (TTF).")
1480 (home-page "https://software.sil.org/gentium/")
1481 (license license:silofl1.1)))
1483 (define-public font-sil-andika
1485 (name "font-sil-andika")
1490 "https://software.sil.org/downloads/r/andika/Andika-"
1494 "01zm7p32gxfwmv7h3cfj2vx59846w2y6rxqy67grn2dyjh8pljv0"))))
1495 ;; As for Gentium (see above), the TTF files are considered source.
1496 (build-system font-build-system)
1497 (synopsis "Sans serif font designed especially for literacy use")
1499 "Andika SIL is a sans serif, Unicode-compliant font designed especially
1500 for literacy use, taking into account the needs of beginning readers. The
1501 focus is on clear, easy-to-perceive letterforms that will not be readily
1502 confused with one another. This package provides only TrueType files (TTF).")
1503 (home-page "https://software.sil.org/andika/")
1504 (license license:silofl1.1)))
1506 (define-public font-sil-charis
1508 (name "font-sil-charis")
1513 "https://software.sil.org/downloads/r/charis/CharisSIL-"
1517 "1zcvw37f1a7gkml3yfm6hxh93844llm7xj4w52600qq3ndrm8gjy"))))
1518 ;; As for Gentium (see above), the TTF files are considered source.
1519 (build-system font-build-system)
1520 (synopsis "Serif font for the Cyrillic and Latin alphabets")
1522 "Charis SIL is a Unicode-based font family that supports the wide range
1523 of languages that use the Latin and Cyrillic scripts. It is specially
1524 designed to make long texts pleasant and easy to read, even in less than ideal
1525 reproduction and display environments. This package provides only TrueType
1527 (home-page "https://software.sil.org/charis/")
1528 (license license:silofl1.1)))
1530 (define-public font-mononoki
1532 (name "font-mononoki")
1537 (url "https://github.com/madmalik/mononoki/")
1541 "1rkzyxn30rn8qv2h2xz324j7q15hzg2lci8790a7cdl1dfgic4xi"))
1542 (file-name (git-file-name name version))))
1543 (build-system font-build-system)
1544 (synopsis "Font for programming and code review")
1546 "Mononoki is a typeface by Matthias Tellen, created to enhance code
1548 (home-page "https://madmalik.github.io/mononoki/")
1549 (license license:silofl1.1)))
1551 (define-public font-public-sans
1553 (name "font-public-sans")
1559 (url "https://github.com/uswds/public-sans.git")
1560 (commit (string-append "v" version))))
1561 (file-name (git-file-name name version))
1563 (base32 "1qhyxbjv1rnydfpqzd18fbiyz75p4sabphy8yj07hyq0hidp5xsf"))))
1564 (build-system font-build-system)
1565 (home-page "https://public-sans.digital.gov/")
1566 (synopsis "Neutral typeface for interfaces, text, and headings")
1568 "Public Sans is a strong, neutral, sans-serif typeface for text or
1569 display based on Libre Franklin.")
1570 (license license:silofl1.1)))
1572 (define-public font-hermit
1574 (name "font-hermit")
1577 (method url-fetch/tarbomb)
1578 (uri (string-append "https://pcaro.es/d/otf-hermit-" version
1582 "09rmy3sbf1j1hr8zidighjgqc8kp0wsra115y27vrnlf10ml6jy0"))))
1583 (build-system font-build-system)
1586 (home-page "https://pcaro.es/p/hermit/")
1587 (synopsis "Monospace font")
1589 "Hermit is a monospace font designed to be clear, pragmatic and very
1590 readable. Its creation has been focused on programming. Every glyph was
1591 carefully planned and calculated, according to defined principles and rules.
1592 For this reason, Hermit is coherent and regular.
1594 Symbols stand out from common text. Dots and commas are easily seen, and
1595 operators are clear even when not surrounded by spaces. Similar characters
1596 have been designed to be very distinguishable from each other.")
1597 (license license:silofl1.1)))
1599 (define-public font-dseg
1605 (method url-fetch/zipbomb)
1607 (string-append "https://github.com/keshikan/DSEG/"
1608 "releases/download/v" version
1610 (string-concatenate (string-split version #\.))
1614 "0v8sghh4vl286faf8pvi74znz07pyf0qii8z4wjllisqwc35sx72"))))
1615 (build-system font-build-system)
1618 (modify-phases %standard-phases
1620 (lambda* (#:key outputs #:allow-other-keys)
1621 (let* ((out (assoc-ref outputs "out"))
1622 (font-dir (string-append out "/share/fonts"))
1623 (truetype-dir (string-append font-dir "/truetype")))
1624 (with-directory-excursion
1625 (string-append "fonts-DSEG_v"
1626 (apply string-append (string-split ,version
1628 (for-each (lambda (f) (install-file f truetype-dir))
1629 (find-files "." "\\.ttf$"))
1631 (home-page "https://www.keshikan.net/fonts-e.html")
1632 (synopsis "DSEG: 7-segment and 14-segment fonts")
1634 "DSEG is a font family that imitates seven- and fourteen-segment LCD
1635 displays (7SEG, 14SEG). DSEG includes the roman alphabet and symbol glyphs.
1636 This package provides the TrueType fonts.")
1637 (license license:silofl1.1)))
1639 (define-public font-jetbrains-mono
1641 (name "font-jetbrains-mono")
1647 (string-append "https://download.jetbrains.com/fonts/"
1648 "JetBrainsMono-" version ".zip"))
1650 (base32 "0zvhwmpdwpm4vywmm6i9a4najz0c7vfi411yikgkd66l5hwd1p6f"))))
1651 (build-system font-build-system)
1652 (home-page "https://www.jetbrains.com/lp/mono/")
1653 (synopsis "Mono typeface for developers")
1655 "JetBrains Mono is a font family dedicated to developers. JetBrains
1656 Mono’s typeface forms are simple and free from unnecessary details. Rendered
1657 in small sizes, the text looks crisper.")
1658 (license license:asl2.0)))
1660 (define-public font-vazir
1666 (method url-fetch/zipbomb)
1668 (string-append "https://github.com/rastikerdar/vazir-font/"
1669 "releases/download/v" version
1670 "/vazir-font-v" version ".zip"))
1673 "0w3gwb5q33x5llw7cfs8qhaxr4ssg6rsx4b9day3993zn24xq031"))))
1674 (build-system font-build-system)
1675 (home-page "https://rastikerdar.github.io/vazir-font/")
1676 (synopsis "Vazir Persian typeface")
1678 "Vazir is a beautiful and elegant Persian typeface originally based on
1679 DejaVu, and comes in six variants: Thin, Light, Normal, Medium, Bold, and
1680 Black. This package provides four versions of Vazir:
1683 @item @code{Vazir}: The main version; includes Latin glyphs from Roboto.
1684 @item @code{Vazir-FD}: Like @code{Vazir}, but (always) uses Farsi digit glyphs
1685 instead of Latin ones.
1686 @item @code{Vazir-WOL}: Like @code{Vazir}, but without Roboto's Latin glyphs.
1687 @item @code{Vazir-FD-WOL}: Combination of @code{Vazir-FD} and @code{Vazir-WOL}:
1688 always uses Farsi digits, and does not include Latin glyphs from Roboto.
1691 ;; See https://github.com/rastikerdar/vazir-font/blob/master/LICENSE for
1693 (list license:public-domain ; the Vazir modifications to DejaVu
1694 ; and the DejaVu modifications to...
1695 (license:x11-style ; ...the Bitstream Vera typeface
1696 "file://LICENSE" "Bitstream Vera License")
1697 license:asl2.0)))) ; Latin glyphs from Roboto
1699 (define-public font-meera-inimai
1701 (name "font-meera-inimai")
1707 (url "https://gitlab.com/smc/meera-inimai")
1708 (commit "0f39cdd7dbf1b6d1bed7df85834d33789dce20a7")))
1709 (file-name (git-file-name name version))
1712 "1x5mhrpx24imh0r4l83mkaiszxgwi1q4ppyyvq63h3ddwk20cwdg"))))
1713 (build-system gnu-build-system)
1715 `(("fontforge" ,fontforge)
1716 ("harfbuzz" ,harfbuzz "bin")
1717 ("python" ,python-minimal)
1718 ("python-fonttools" ,python-fonttools)
1719 ("python-google-brotli" ,python-google-brotli)))
1721 `(#:make-flags (list "PY=python3"
1722 (string-append "DESTDIR=" %output)
1723 "fontpath=/share/fonts/truetype")
1724 #:test-target "test"
1726 (modify-phases %standard-phases
1727 (delete 'configure))))
1728 (home-page "https://gitlab.com/smc/meera-inimai")
1729 (synopsis "Meera Inimai Tamil font")
1730 (description "Meera Inimai is a Unicode font for the Tamil Script. Meera
1731 Inimai is a san-serif typeface. It is best used as a screen font for body
1732 text. It is also useful for body text of printed pamphlets or single page
1733 designs. Meera Inimai can be thought of as similar to Helvetica and its
1734 variation Arial. Tamil characters are inherently vertically-elliptical. The
1735 orthography of Roman glyphs of Meera Inimai are also based on this
1736 characteristic so that they sit smoothly with the Tamil glyphs.")
1737 (license license:silofl1.1)))
1739 (define-public font-ipa-mj-mincho
1741 (name "font-ipa-mj-mincho")
1744 (method url-fetch/zipbomb)
1745 (uri (string-append "https://mojikiban.ipa.go.jp/OSCDL/IPAmjMincho"
1746 "/ipamjm" (string-join (string-split version #\.) "")
1750 "0s2vs9p7vd7ajnn6c2icli069sjwi4d45a39fczqpwwn507lwj9m"))))
1751 (build-system font-build-system)
1754 (modify-phases %standard-phases
1755 (add-after 'install 'install-doc
1756 (lambda* (#:key outputs #:allow-other-keys)
1757 (let ((doc-dir (string-append (assoc-ref outputs "out")
1758 "/share/doc/font-ipa-mj-mincho")))
1760 (copy-file "Readme.txt" (string-append doc-dir "/README"))
1761 (copy-file "IPA_Font_License_Agreement_v1.0.txt"
1762 (string-append doc-dir "/LICENSE"))
1764 (home-page "https://mojikiban.ipa.go.jp/1300.html")
1765 (synopsis "Japanese font from the Information-technology Promotion Agency")
1766 (description "MJM Mincho is a font that aims at, for example, allowing you
1767 to write people's name, or for formal business situations where it is necessary
1768 to have a detailed and proper character style.")
1769 (license license:ipa)))