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 ng0 <ng0@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 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
16 ;;; Copyright © 2016 Toni Reina <areina@riseup.net>
17 ;;; Copyright © 2017, 2018, 2019 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 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>
30 ;;; This file is part of GNU Guix.
32 ;;; GNU Guix is free software; you can redistribute it and/or modify it
33 ;;; under the terms of the GNU General Public License as published by
34 ;;; the Free Software Foundation; either version 3 of the License, or (at
35 ;;; your option) any later version.
37 ;;; GNU Guix is distributed in the hope that it will be useful, but
38 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
39 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 ;;; GNU General Public License for more details.
42 ;;; You should have received a copy of the GNU General Public License
43 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
45 (define-module (gnu packages fonts)
46 #:use-module (ice-9 regex)
47 #:use-module (guix utils)
48 #:use-module ((guix licenses) #:prefix license:)
49 #:use-module (guix packages)
50 #:use-module (guix download)
51 #:use-module (guix git-download)
52 #:use-module (guix build-system font)
53 #:use-module (guix build-system gnu)
54 #:use-module (guix build-system meson)
55 #:use-module (guix build-system trivial)
56 #:use-module (gnu packages base)
57 #:use-module (gnu packages compression)
58 #:use-module (gnu packages fontutils)
59 #:use-module (gnu packages gettext)
60 #:use-module (gnu packages glib)
61 #:use-module (gnu packages perl)
62 #:use-module (gnu packages pkg-config)
63 #:use-module (gnu packages python)
64 #:use-module (gnu packages xorg))
66 (define-public font-ibm-plex
68 (name "font-ibm-plex")
73 "https://github.com/IBM/plex/releases/download/"
74 "v" version "/OpenType.zip"))
77 "0nzxw9z6waixslam248yr26ci3fbk83c7jf6m90hncnaj6zxx795"))))
78 (build-system font-build-system)
79 (home-page "https://github.com/IBM/plex")
80 (synopsis "IBM Plex typeface")
81 (description "This package provides the Plex font family. It comes in a
82 Sans, Serif, Mono and Sans Condensed, all with roman and true italics. The
83 fonts have been designed to work well in user interface (UI) environments as
84 well as other mediums.")
85 (license license:silofl1.1)))
87 (define-public font-inconsolata
89 (name "font-inconsolata")
93 (uri "http://www.levien.com/type/myfonts/Inconsolata.otf")
96 "06js6znbcf7swn8y3b8ki416bz96ay7d3yvddqnvi88lqhbfcq8m"))))
97 (build-system font-build-system)
98 (home-page "http://levien.com/type/myfonts/inconsolata.html")
99 (synopsis "Monospace font")
100 (description "A monospace font, designed for code listings and the like,
101 in print. With attention to detail for high resolution rendering.")
102 (license license:silofl1.1)))
104 (define-public font-ubuntu
111 (url "https://salsa.debian.org/fonts-team/fonts-ubuntu")
112 (commit (string-append "upstream/" version))))
113 (file-name (git-file-name name version))
116 "1d2xrjpxy70f3nsgqiggwv6pj06qglf5vj2847pqx60w3ygi903g"))))
117 (build-system font-build-system)
118 (home-page "http://font.ubuntu.com/")
119 (synopsis "The Ubuntu Font Family")
120 (description "The Ubuntu Font Family is a unique, custom designed font
121 that has a very distinctive look and feel. This package provides the
122 TrueType (TTF) files.")
124 (license:non-copyleft
125 "http://font.ubuntu.com/ufl/ubuntu-font-licence-1.0.txt"
126 "Ubuntu Font License v1.0"))))
128 (define-public font-dejavu
134 (uri (string-append "mirror://sourceforge/dejavu/dejavu/"
135 version "/dejavu-fonts-ttf-"
139 "1mqpds24wfs5cmfhj57fsfs07mji2z8812i5c4pi5pbi738s977s"))))
140 (build-system font-build-system)
143 (modify-phases %standard-phases
144 (add-after 'install 'install-conf
145 (lambda* (#:key outputs #:allow-other-keys)
146 (let ((conf-dir (string-append (assoc-ref outputs "out")
147 "/share/fontconfig/conf.avail")))
148 (copy-recursively "fontconfig" conf-dir)
150 (home-page "https://dejavu-fonts.github.io/")
151 (synopsis "Vera font family derivate with additional characters")
152 (description "DejaVu provides an expanded version of the Vera font family
153 aiming for quality and broader Unicode coverage while retaining the original
154 Vera style. DejaVu currently works towards conformance to the Multilingual
155 European Standards (MES-1 and MES-2) for Unicode coverage. The DejaVu fonts
156 provide serif, sans and monospaced variants.")
159 "http://dejavu-fonts.org/"))))
161 (define-public font-bitstream-vera
163 (name "font-bitstream-vera")
167 (uri (string-append "mirror://gnome/sources/ttf-bitstream-vera/"
168 version "/ttf-bitstream-vera-"
172 "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv"))))
173 (build-system font-build-system)
174 (home-page "https://www.gnome.org/fonts/")
175 (synopsis "Bitstream Vera sans-serif typeface")
176 (description "Vera is a sans-serif typeface from Bitstream, Inc. This
177 package provides the TrueType (TTF) files.")
179 (license:fsdg-compatible
180 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts"
181 "The Font Software may be sold as part of a larger software package but
182 no copy of one or more of the Font Software typefaces may be sold by
185 (define-public font-cantarell
187 (name "font-abattis-cantarell")
191 (uri (string-append "mirror://gnome/sources/cantarell-fonts/"
192 (version-major+minor version)
193 "/cantarell-fonts-" version ".tar.xz"))
196 "05hpnhihwm9sxlq1qn993g03pwkmpjbn0dvnba71r1gfjv0jp2w5"))))
197 (build-system meson-build-system)
199 `(("appstream-glib" ,appstream-glib)
200 ("gettext" ,gettext-minimal))) ;for msgfmt
201 (home-page "https://wiki.gnome.org/Projects/CantarellFonts")
202 (synopsis "Cantarell sans-serif typeface")
203 (description "The Cantarell font family is a contemporary Humanist
204 sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.")
205 (license license:silofl1.1)))
207 (define-public font-lato
210 (version "2.010") ; also update description
212 (method url-fetch/zipbomb)
213 (uri (string-append "https://www.latofonts.com/download/Lato2OFL.zip"))
216 "1f5540g0ja1nx3ddd3ywn77xc81ssrxpq8n3gyb9sabyq2b4xda2"))))
217 (build-system font-build-system)
218 (home-page "https://www.latofonts.com/lato-free-fonts/")
219 (synopsis "Lato sans-serif typeface")
221 "Lato is a sanserif typeface family. It covers over 3000 glyphs per style.
222 The Lato 2.010 family supports more than 100 Latin-based languages, over
223 50 Cyrillic-based languages as well as Greek and IPA phonetics.")
224 (license license:silofl1.1)))
226 (define-public font-gnu-freefont-ttf
228 (name "font-gnu-freefont-ttf")
232 (uri (string-append "mirror://gnu/freefont/freefont-src-"
236 "0yk58blhcd4hm7nyincmqq4jrzjjk82wif2zmk1l3y2m4vif4qhd"))))
237 (build-system gnu-build-system)
239 `(#:phases (modify-phases %standard-phases
243 (let ((doc-dir (string-append %output "/share/doc/"
245 (font-dir (string-append %output
246 "/share/fonts/truetype")))
248 (substitute* "Makefile"
249 (("\\$\\(TMPDIR\\)") doc-dir)
250 (("sfd/\\*.ttf") ""))
251 (system* "make" "ttftar")
253 (for-each (lambda (file)
254 (install-file file font-dir))
256 (lambda (file) (string-suffix? "ttf" file))
257 (find-files "." "")))))))
258 #:test-target "tests"))
259 ;; replace python 3 with python 2
260 ;; python 3 support commits aren't yet released in 20120503
261 ;; so freefont needs python 2 support in fontforge
262 (native-inputs `(("fontforge" ,(package (inherit fontforge)
263 (inputs `(("python-2" ,python-2)
264 ,@(package-inputs fontforge)))))))
265 (home-page "https://www.gnu.org/software/freefont/")
266 (synopsis "Unicode-encoded outline fonts")
268 "The GNU Freefont project aims to provide a set of free outline
269 (PostScript Type0, TrueType, OpenType...) fonts covering the ISO
270 10646/Unicode UCS (Universal Character Set).")
271 (license license:gpl3+)
272 (properties '((upstream-name . "freefont")
273 (ftp-directory . "/gnu/freefont")))))
275 (define-public font-liberation
277 (name "font-liberation")
282 (uri (string-append "https://github.com/liberationfonts/liberation-fonts/"
283 "files/2926169/liberation-fonts-ttf-" version ".tar.gz"))
285 (base32 "0kdjsbf0y716k1kv0i0ixdpvg7b9b8xkcsg6favaxdc7pshg0kzi"))))
286 (build-system font-build-system)
287 (home-page "https://github.com/liberationfonts")
288 (synopsis "Fonts compatible with Arial, Times New Roman, and Courier New")
290 "The Liberation font family aims at metric compatibility with
291 Arial, Times New Roman, and Courier New.
292 There are three sets:
295 @item Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L, and
296 Bitstream Vera Sans);
297 @item Serif (a substitute for Times New Roman, Thorndale, Nimbus Roman, and
298 Bitstream Vera Serif);
299 @item Mono (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L,
300 and Bitstream Vera Sans Mono).
303 The Liberation Fonts are sponsored by Red Hat.")
304 (license license:silofl1.1)))
306 (define-public font-linuxlibertine
308 (name "font-linuxlibertine")
311 (method url-fetch/tarbomb)
312 (uri (string-append "mirror://sourceforge/linuxlibertine/"
313 "linuxlibertine/" version
314 "/LinLibertineSRC_" version "_2012_07_02.tgz"))
317 "0x7cz6hvhpil1rh03rax9zsfzm54bh7r4bbrq8rz673gl9h47v0v"))))
318 (build-system font-build-system)
321 (modify-phases %standard-phases
322 (add-before 'install 'build
327 "fontforge" "-lang=ff"
328 "-c" (string-append "Open('" name "');"
330 (basename name "sfd") ext
332 (for-each (lambda (name)
333 (and (compile name "ttf")
334 (compile name "otf")))
335 (find-files "." "\\.sfd$"))
338 `(("fontforge" ,fontforge)))
339 (home-page "http://www.linuxlibertine.org/")
340 (synopsis "Serif and sans serif typefaces")
341 (description "The Linux Libertine fonts is a set of typefaces containing
342 both a Serif version (\"Linux Libertine\") and a Sans Serif (\"Linux
343 Biolinum\") designed to be used together as an alternative for Times/Times New
344 Roman and Helvetica/Arial. The Serif typeface comes in two shapes and two
345 weights, and with a Small Capitals version of the regular typeface. Linux
346 Biolinum is available in both Regular and Bold weights.")
347 ;; The fonts are released under either of these licenses.
348 (license (list license:gpl2+ license:silofl1.1))))
350 (define-public font-terminus
352 (name "font-terminus")
357 (uri (string-append "mirror://sourceforge/terminus-font/terminus-font-"
358 version "/terminus-font-" version ".tar.gz"))
360 (base32 "15qjcpalcxjiwsjgjg5k88vkwp56cs2nnx4ghya6mqp4i1c206qg"))))
361 (build-system gnu-build-system)
362 (outputs (list "out" "pcf-8bit"))
364 `(#:tests? #f ; no test target in tarball
366 (modify-phases %standard-phases
367 (add-after 'build 'build-more-bits
368 ;; X11 8-bit code pages aren't installed by default (they were
369 ;; until version 4.46). Build and install them separately.
370 (lambda* (#:key make-flags #:allow-other-keys)
371 (apply invoke "make" "pcf-8bit" make-flags)))
372 (add-after 'install 'install-more-bits
373 (lambda* (#:key make-flags outputs #:allow-other-keys)
374 (let ((pcf-8bit (assoc-ref outputs "pcf-8bit")))
375 (apply invoke "make" "install-pcf-8bit" (string-append "prefix="
379 `(("bdftopcf" ,bdftopcf)
380 ("font-util" ,font-util)
381 ("mkfontdir" ,mkfontdir)
382 ("pkg-config" ,pkg-config)
384 (home-page "http://terminus-font.sourceforge.net/")
385 (synopsis "Simple bitmap programming font")
386 (description "Terminus Font is a clean, fixed-width bitmap font, designed
387 for long periods of working with computers (8 or more hours per day).")
388 (license license:silofl1.1)))
390 (define-public font-adobe-source-han-sans
392 (name "font-adobe-source-han-sans")
397 (url "https://github.com/adobe-fonts/source-han-sans.git")
398 (commit (string-append version "R"))))
399 (file-name (git-file-name name version))
402 "0zm884d8fp5gvirq324050kqv7am9khyqhs9kk4r4rr3jzn61jpk"))))
403 (outputs '("out" ; OpenType/CFF Collection (OTC), 121 MiB.
404 "cn" "jp" "kr" "tw")) ; Region-specific Subset OpenType/CFF.
405 (build-system trivial-build-system)
407 `(#:modules ((guix build utils))
410 (use-modules (guix build utils))
411 (let ((install-opentype-fonts
412 (lambda (fonts-dir out)
413 (copy-recursively fonts-dir
414 (string-append (assoc-ref %outputs out)
415 "/share/fonts/opentype")))))
416 (chdir (assoc-ref %build-inputs "source"))
417 (install-opentype-fonts "OTC" "out")
418 (install-opentype-fonts "SubsetOTF/CN" "cn")
419 (install-opentype-fonts "SubsetOTF/JP" "jp")
420 (install-opentype-fonts "SubsetOTF/KR" "kr")
421 (install-opentype-fonts "SubsetOTF/TW" "tw")
422 (for-each delete-file (find-files %output "\\.zip$"))
424 (home-page "https://github.com/adobe-fonts/source-han-sans")
425 (synopsis "Pan-CJK fonts")
427 "Source Han Sans is a sans serif Pan-CJK font family that is offered in
428 seven weights: ExtraLight, Light, Normal, Regular, Medium, Bold, and Heavy.
429 And in several OpenType/CFF-based deployment configurations to accommodate
430 various system requirements or limitations. As the name suggests, Pan-CJK
431 fonts are intended to support the characters necessary to render or display
432 text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.")
433 (license license:silofl1.1)))
435 (define-public font-cns11643
436 ;; Since upstream doesn't provide any version numbers, the date of the last
437 ;; edit is used, taken from https://data.gov.tw/dataset/5961
438 ;; XXX: The source is also updated in-place, so it may be desirable to mirror
439 ;; it elsewhere to avoid suddenly losing the current source file.
441 (name "font-cns11643")
442 (version "98.1.20180605")
445 (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
448 "000a9whrjr1cd4pjc23pbl60zwkq3wcb5g61p9qi7fn3hwkp0kyw"))))
449 (build-system font-build-system)
450 (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
451 (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
453 "@code{CNS 11643} character set (Chinese National Standard, or Chinese
454 Standard Interchange Code) is the standard character set of the Republic of
455 China (Taiwan) for Chinese Characters and other Unicode symbols. Contained
456 are six TrueType fonts based on two script styles, Regular script (Kai), and
457 Sung/Ming script, each with three variants:
460 @item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thousands
461 of CJK characters from frequency tables published by the Taiwanese
462 Ministry of Education. ISO 10646 and Unicode compatible encoding.
463 @item @code{Big-5 Plus}: Several thousand frequently used CJK characters
464 encoded in the user defined area of the Big-5 code.
465 @item @code{Big-5 Extended}: A Big-5 character set based on the
466 @code{Big-5 Plus} and @code{CNS 11643} character sets.
468 (license (license:non-copyleft
469 "http://data.gov.tw/license")))) ; CC-BY 4.0 compatible
471 (define-public font-cns11643-swjz
473 (name "font-cns11643-swjz")
478 (uri "https://www.moedict.tw/fonts/truetype/cns11643/ebas927.ttf")
481 "1qkljldbmb53zp1rcmpsb8rzy67rnsqcjxi549m9743ifk4isl78"))))
482 (build-system font-build-system)
484 (string-append "http://www.cns11643.gov.tw/AIDB/download.do"
485 "?name=%E5%AD%97%E5%9E%8B%E4%B8%8B%E8%BC%89"))
486 (synopsis "TrueType seal script font")
488 "@code{Shuowen Jiezi} is a TrueType seal script font based on the ancient
489 text of the same name published by the Executive Yuan of Taiwan. 6721 glyphs
490 are included, at Unicode compatible code points corresponding to their modern
492 ;; Original text only available in Chinese. More info at
493 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26703#11
494 (license (license:non-copyleft
495 "http://www.cns11643.gov.tw/AIDB/copyright.do"))))
497 (define-public font-wqy-zenhei
499 (name "font-wqy-zenhei")
504 "mirror://sourceforge/wqy/wqy-zenhei/" version
505 "%20%28Fighting-state%20RC1%29/wqy-zenhei-"
509 "1mkmxq8g2hjcglb3zajfqj20r4r88l78ymsp2xyl5yav8w3f7dz4"))))
510 (build-system font-build-system)
511 (home-page "https://wenq.org/wqy2/")
512 (synopsis "CJK font")
514 "WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese outline
515 font. It is designed for general purpose text formatting and on-screen
516 display of Chinese characters and symbols from many other languages.
517 WenQuanYi Zen Hei provides a rather complete coverage of Chinese Hanzi glyphs,
518 including both simplified and traditional forms. The total glyph number in
519 this font is over 35,000, including over 21,000 Chinese Hanzi. This font has
520 full coverage of the GBK (CP936) charset, CJK Unified Ideographs, as well as
521 the code-points needed for zh_cn, zh_sg, zh_tw, zh_hk, zh_mo, ja (Japanese) and
522 ko (Korean) locales for @code{fontconfig}.")
523 ;; GPLv2 with font embedding exception.
524 (license license:gpl2)))
526 (define-public font-wqy-microhei
528 (name "font-wqy-microhei")
529 (version "0.2.0-beta")
532 (uri (string-append "mirror://sourceforge/wqy/wqy-microhei/"
533 version "/wqy-microhei-" version ".tar.gz"))
536 "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8"))))
537 (build-system font-build-system)
538 (home-page "http://wenq.org/wqy2/")
539 (synopsis "CJK font")
541 "WenQuanYi Micro Hei is a Sans-Serif style (also known as Hei, Gothic or
542 Dotum among the Chinese/Japanese/Korean users) high quality CJK outline font.
543 It was derived from \"Droid Sans Fallback\" and \"Droid Sans\" released by
544 Google Inc. This font contains all the unified CJK Han glyphs in the range of
545 U+4E00-U+9FC3 defined in Unicode Standard 5.1, together with many other
546 languages unicode blocks, including Latins, Extended Latins, Hanguls and
547 Kanas. The font file is extremely compact (~4M) compared with most known CJK
549 ;; This font is licensed under Apache2.0 or GPLv3 with font embedding
551 (license license:gpl3)))
553 (define-public font-rachana
555 (name "font-rachana")
561 "https://gitlab.com/smc/rachana/repository/archive.tar.gz?ref=Version"
563 (file-name (string-append name "-" version ".tar.gz"))
566 "0jc091gshna6p1dd6lf507jxkgk6rsja835fc9dm71mcplq53bm1"))))
567 (build-system font-build-system)
568 (home-page "https://smc.org.in")
569 (synopsis "Malayalam font")
571 "Rachana is a Malayalam font designed by Hussain K H. The project was
572 part of Rachana Aksharavedi for the original script of Malayalam in computing.
573 Rachana has about 1,200+ glyphs for Malayalam and contains glyphs required for
574 printing old Malayalam books without compromising the writing style.")
575 ;; This font is licensed under SIL 1.1 or GPLv3+ with font embedding
577 (license (list license:silofl1.1 license:gpl3+))))
579 (define-public font-tex-gyre
581 (name "font-tex-gyre")
585 (method url-fetch/zipbomb)
586 (uri (string-append "http://www.gust.org.pl/projects/e-foundry/"
587 "tex-gyre/whole/tg-" version "otf.zip"))
590 "0kph9l3g7jb2bpmxdbdg5zl56wacmnvdvsdn7is1gc750sqvsn31"))))
591 (build-system font-build-system)
592 (home-page "http://www.gust.org.pl/projects/e-foundry/tex-gyre/")
593 (synopsis "Remake of Ghostscript fonts")
594 (description "The TeX Gyre collection of fonts is the result of an
595 extensive remake and extension of the freely available base PostScript fonts
596 distributed with Ghostscript version 4.00. The collection contains the
597 following fonts in the OpenType format: Adventor, Bonum, Chorus, Cursor,
598 Heros, Pagella, Schola, Termes.")
599 (license license:gfl1.0)))
601 (define-public font-anonymous-pro
603 (name "font-anonymous-pro")
608 "https://www.marksimonson.com/assets/content/fonts/"
609 "AnonymousPro-" version ".zip"))
612 "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
613 (build-system font-build-system)
614 (home-page "https://www.marksimonson.com/fonts/view/anonymous-pro")
615 (synopsis "Fixed-width fonts designed with coding in mind")
616 (description "Anonymous Pro is a family of four fixed-width fonts designed
617 with coding in mind. Anonymous Pro features an international, Unicode-based
618 character set, with support for most Western and Central European Latin-based
619 languages, plus Greek and Cyrillic.")
620 (license license:silofl1.1)))
622 (define-public font-anonymous-pro-minus
624 (inherit font-anonymous-pro)
625 (name "font-anonymous-pro-minus")
626 ;; The -Minus variant doesn't necessarily track the regular version above.
631 (uri (string-append "https://www.marksimonson.com/assets/content/fonts/"
632 "AnonymousProMinus-" version ".zip"))
634 (base32 "1p2n91jja37d2cshp5pjwld9lq0v7gnpk7ywwn2blq7k46q6vq38"))))
635 (synopsis "Fixed-width fonts designed with coding in mind, without bitmaps")
636 (description "Anonymous Pro is a family of four fixed-width fonts designed
637 with coding in mind. Anonymous Pro features an international, Unicode-based
638 character set, with support for most Western and Central European Latin-based
639 languages, plus Greek and Cyrillic.
641 Anonymous Pro Minus is identical to Anonymous Pro, minus its embedded bitmaps
642 for use at smaller text sizes")))
644 (define-public font-gnu-unifont
646 (name "font-gnu-unifont")
652 (string-append "http://unifoundry.com/pub/unifont/unifont-"
653 version "/unifont-" version ".tar.gz")
654 (string-append "mirror://gnu/unifont/unifont-"
655 version "/unifont-" version ".tar.gz")))
657 (base32 "12wdxnlyz5gl5d7h6pazcz8d7h81fwkng1xrayxsgrzh6bqdq4p8"))))
658 (build-system gnu-build-system)
659 (outputs '("out" ; TrueType version
660 "pcf" ; PCF (bitmap) version
661 "psf" ; PSF (console) version
662 "bin")) ; Utilities to manipulate '.hex' format
664 '(#:tests? #f ; no check target
666 (modify-phases %standard-phases
669 (lambda _ (setenv "CC" "gcc") #t))
672 (lambda* (#:key outputs #:allow-other-keys)
673 (let* ((ttf (string-append (assoc-ref outputs "out")
674 "/share/fonts/truetype"))
675 (pcf (string-append (assoc-ref outputs "pcf")
676 "/share/fonts/misc"))
677 (psf (string-append (assoc-ref outputs "psf")
678 "/share/consolefonts"))
679 (bin (assoc-ref outputs "bin")))
681 (string-append "PREFIX=" bin)
682 (string-append "TTFDEST=" ttf)
683 (string-append "PCFDEST=" pcf)
684 (string-append "CONSOLEDEST=" psf)
686 ;; Move Texinfo file to the right place.
687 (mkdir (string-append bin "/share/info"))
688 (invoke "gzip" "-9n" "doc/unifont.info")
689 (install-file "doc/unifont.info.gz"
690 (string-append bin "/share/info"))
693 `(("perl" ,perl))) ; for utilities
695 "Large bitmap font covering Unicode's Basic Multilingual Plane")
697 "GNU Unifont is a bitmap font covering essentially all of
698 Unicode's Basic Multilingual Plane. The package also includes
699 utilities to ease adding new glyphs to the font.")
700 (home-page "http://unifoundry.com/unifont.html")
701 (properties '((upstream-name . "unifont")))
702 (license license:gpl2+)))
704 (define-public font-google-noto
706 (name "font-google-noto")
710 (method url-fetch/zipbomb)
711 (uri (string-append "https://noto-website-2.storage.googleapis.com/"
712 "pkgs/Noto-hinted.zip"))
713 (file-name (string-append name "-" version ".zip"))
715 (base32 "1bp42whyin7xcgmrbnfvz3rvd98xmxaz3ywqybbjmqzwaa9llyw3"))))
716 (build-system font-build-system)
717 (home-page "https://www.google.com/get/noto/")
718 (synopsis "Fonts to cover all languages")
719 (description "Google Noto Fonts is a family of fonts designed to support
720 all languages with a consistent look and aesthetic. Its goal is to properly
721 display all Unicode symbols.")
722 (license license:silofl1.1)))
724 (define-public font-google-roboto
726 (name "font-google-roboto")
731 (uri (string-append "https://github.com/google/roboto/releases/download/"
732 "v" version "/roboto-hinted.zip"))
733 (file-name (string-append name "-" version ".zip"))
736 "0spscx08fad7i8qs7icns96iwcapniq8lwwqqvbf7bamvs8qfln4"))))
737 (build-system font-build-system)
738 (home-page "https://github.com/google/roboto")
739 (synopsis "The Roboto family of fonts")
741 "Roboto is Google’s signature family of fonts, the default font on Android
742 and Chrome OS, and the recommended font for the
743 visual language \"Material Design\".")
744 (license license:asl2.0)))
746 (define-public font-un
749 (version "1.0.2-080608")
753 "https://kldp.net/unfonts/release/2607-"
754 "un-fonts-core-" version ".tar.gz"))
755 (file-name (string-append name "-" version ".tar.gz"))
758 "13liaz2pmww3aqabm55la5npd08m1skh334ky7qfidxaz5s742iv"))))
759 (build-system font-build-system)
760 (home-page "https://kldp.net/projects/unfonts/")
761 (synopsis "Collection of Korean fonts")
763 "Un-fonts is a family of mainly Korean fonts.
764 It contains the following fonts and styles:
767 @item UnBatang, UnBatangBold: serif;
768 @item UnDotum, UnDotumBold: sans-serif;
769 @item UnGraphic, UnGraphicBold: sans-serif style;
770 @item UnDinaru, UnDinaruBold, UnDinaruLight;
771 @item UnPilgi, UnPilgiBold: script;
772 @item UnGungseo: cursive, brush-stroke.
774 (license license:gpl2+)))
776 (define-public font-fantasque-sans
778 (name "font-fantasque-sans")
784 (url "https://github.com/belluzj/fantasque-sans.git")
785 (commit (string-append "v" version))))
786 (file-name (git-file-name name version))
789 "1gjranq7qf20rfxnpxsckv1hl35nzsal0rjs475nhfbpqy5wmly6"))))
790 (build-system gnu-build-system)
792 `(("ttfautohint" ,ttfautohint)
793 ("woff-tools" ,woff-tools)
794 ("fontforge" ,fontforge)
799 `(#:tests? #f ;test target intended for visual inspection
800 #:phases (modify-phases %standard-phases
801 (delete 'configure) ;no configuration
802 (add-before 'build 'xrange->range
803 ;; Rather than use a python2 fontforge, just replace the
804 ;; offending function.
806 (substitute* "Scripts/fontbuilder.py"
807 (("xrange") "range"))
810 ;; 'make install' wants to install to ~/.fonts, install to
811 ;; output instead. Install only the "Normal" variant.
812 (lambda* (#:key outputs #:allow-other-keys)
813 (let* ((out (assoc-ref outputs "out"))
814 (font-dir (string-append out "/share/fonts"))
815 (truetype-dir (string-append font-dir "/truetype"))
816 (opentype-dir (string-append font-dir "/opentype"))
817 (webfonts-dir (string-append font-dir "/webfonts")))
818 (with-directory-excursion "Variants/Normal"
819 (copy-recursively "OTF" opentype-dir)
820 (for-each (lambda (f) (install-file f truetype-dir))
821 (find-files "." "\\.ttf$"))
822 (copy-recursively "Webfonts" webfonts-dir)
824 (synopsis "Font family with a monospaced variant for programmers")
826 "Fantasque Sans Mono is a programming font designed with functionality in
827 mind. The font includes a bold version and a good italic version with new
828 glyph designs, not just an added slant.")
829 (home-page "https://fontlibrary.org/en/font/fantasque-sans-mono")
830 (license license:silofl1.1)))
832 (define-public font-hack
837 (method url-fetch/zipbomb)
839 "https://github.com/source-foundry/Hack/releases/download/v"
840 version "/Hack-v" version "-ttf.zip"))
843 "1b4hh8zkrx92m2v2vfkja1napb0192p0j3laqr0m018z3dih89hc"))))
844 (build-system font-build-system)
845 (home-page "https://sourcefoundry.org/hack/")
846 (synopsis "Typeface designed for source code")
848 "Hack is designed to be a workhorse typeface for code. It expands upon
849 the Bitstream Vera & DejaVu projects, provides over 1,500 glyphs, and includes
852 ;; See https://github.com/source-foundry/Hack/issues/271 for details.
853 (list license:expat ; the Hack modifications to...
854 license:public-domain ; ...the DejaVu modifications to...
855 (license:x11-style ; ...the Bitstream Vera typeface
856 "file://LICENSE.md" "Bitstream Vera License")))))
858 (define-public font-adobe-source-code-pro
860 (name "font-adobe-source-code-pro")
861 (version "2.030R-ro-1.050R-it")
865 "https://github.com/adobe-fonts/source-code-pro/archive/"
866 (regexp-substitute/global
867 ;; The upstream tag uses "/" between the roman and italic
868 ;; versions, so substitute our "-" separator here.
869 #f "R-ro-" version 'pre "R-ro/" 'post) ".tar.gz"))
870 (file-name (string-append name "-" version ".tar.gz"))
873 "0arhhsf3i7ss39ykn73d1j8k4n8vx7115xph6jwkd970p1cxvr54"))))
874 (build-system font-build-system)
875 (home-page "https://github.com/adobe-fonts/source-code-pro")
877 "Monospaced font family for user interface and coding environments")
879 "Source Code Pro is a set of monospaced OpenType fonts that have been
880 designed to work well in user interface environments.")
881 (license license:silofl1.1)))
883 (define-public font-adobe-source-sans-pro
885 (name "font-adobe-source-sans-pro")
886 (version "2.040R-ro-1.090R-it")
890 "https://github.com/adobe-fonts/source-sans-pro/archive/"
891 (regexp-substitute/global
892 ;; The upstream tag uses "/" between the roman and italic
893 ;; versions, so substitute our "-" separator here.
894 #f "R-ro-" version 'pre "R-ro/" 'post) ".tar.gz"))
895 (file-name (string-append name "-" version ".tar.gz"))
898 "1wpbhd2idps53ph8rg1mhr3vz4lsgbpjprcq10nliwcxdz9d8lv0"))))
899 (build-system font-build-system)
900 (home-page "https://github.com/adobe-fonts/source-sans-pro")
902 "Sans serif font family for user interface environments")
904 "Source Sans Pro is a set of OpenType fonts that have been designed to
905 work well in user interface (UI) environments.")
906 (license license:silofl1.1)))
908 (define-public font-adobe-source-serif-pro
910 (name "font-adobe-source-serif-pro")
911 (version "2.007R-ro-1.007R-it")
915 "https://github.com/adobe-fonts/source-serif-pro/archive/"
916 (regexp-substitute/global
917 ;; The upstream tag uses "/" between the roman and italic
918 ;; versions, so substitute our "-" separator here.
919 #f "R-ro-" version 'pre "R-ro/" 'post) ".tar.gz"))
920 (file-name (string-append name "-" version ".tar.gz"))
923 "1sws9k26ldqk375qsigk1zv8cq1xlvadjwvv3dqrcc3qzm1c7hwc"))))
924 (build-system font-build-system)
925 (home-page "https://github.com/adobe-fonts/source-serif-pro")
927 "Serif typeface to complement Source Sans Pro for setting text")
929 "Source Serif Pro is a set of OpenType fonts to complement the Source
931 (license license:silofl1.1)))
933 (define-public font-fira-mono
935 (name "font-fira-mono")
939 (uri (string-append "https://carrois.com/downloads/fira_mono_3_2/"
941 (string-replace-substring version "." "")
945 "1z65x0dw5dq6rs6p9wyfrir50rlh95vgzsxr8jcd40nqazw4jhpi"))))
946 (build-system font-build-system)
947 (home-page "https://mozilla.github.io/Fira/")
948 (synopsis "Mozilla's monospace font")
949 (description "This is the typeface used by Mozilla in Firefox OS.")
950 (license license:silofl1.1)))
952 (define-public font-fira-sans
954 (name "font-fira-sans")
959 (url "https://github.com/mozilla/Fira.git")
961 (file-name (git-file-name name version))
964 "116j26gdj5g1r124b4669372f7490vfjqw7apiwp2ggl0am5xd0w"))))
965 (build-system font-build-system)
966 (home-page "https://mozilla.github.io/Fira/")
967 (synopsis "Mozilla's Fira Sans Font")
968 (description "This is the typeface used by Mozilla in Firefox OS.")
969 (license license:silofl1.1)))
971 (define-public font-fira-code
973 (name "font-fira-code")
976 (method url-fetch/zipbomb)
977 (uri (string-append "https://github.com/tonsky/FiraCode/releases/"
979 "/FiraCode_" version ".zip"))
982 "02r1lcp0c9135ps71v66wdvbsrcxwirrp0blqsa1xbjkkq2rwgj3"))))
983 (build-system font-build-system)
984 (home-page "https://mozilla.github.io/Fira/")
985 (synopsis "Monospaced font with programming ligatures")
987 "Fira Code is an extension of the Fira Mono font containing a set of ligatures
988 for common programming multi-character combinations. This is just a font rendering
989 feature: underlying code remains ASCII-compatible. This helps to read and understand
990 code faster. For some frequent sequences like .. or //, ligatures allow us to
992 (license license:silofl1.1)))
994 (define-public font-awesome
996 (name "font-awesome")
997 ;; XXX The build scripts of version 5 are not freely licensed and
998 ;; so we have to stick with version 4 for now:
999 ;; <https://bugs.gnu.org/32916>
1003 (uri (string-append "http://fontawesome.io/assets/"
1004 name "-" version ".zip"))
1007 "1m1rfwm4sjkv10j3xd2dhwk286a5912b2zgvc692cmxi5gxs68jf"))))
1008 (build-system font-build-system)
1009 (home-page "http://fontawesome.io")
1010 (synopsis "Font that contains a rich iconset")
1012 "Font Awesome is a full suite of pictographic icons for easy scalable
1014 (license license:silofl1.1)))
1016 (define-public font-tamzen
1018 (name "font-tamzen")
1024 (url "https://github.com/sunaku/tamzen-font.git")
1025 (commit (string-append "Tamzen-" version))))
1026 (file-name (git-file-name name version))
1029 "17kgmvg6q32mqhx9g44hjvzv0si0mnpprga4z7na930g2zdd8846"))))
1030 (build-system trivial-build-system)
1032 `(#:modules ((guix build utils))
1035 (use-modules (guix build utils))
1037 (let* ((out (assoc-ref %outputs "out"))
1038 (font-dir (string-append out "/share/fonts/misc"))
1039 (psf-dir (string-append out "/share/kbd/consolefonts")))
1040 (chdir (assoc-ref %build-inputs "source"))
1043 (for-each (lambda (pcf)
1044 (install-file pcf font-dir))
1045 (find-files "pcf" "\\.pcf$"))
1046 (for-each (lambda (psf)
1047 (install-file psf psf-dir))
1048 (find-files "psf" "\\.psf$"))
1050 (home-page "https://github.com/sunaku/tamzen-font")
1051 (synopsis "Monospaced bitmap font for console and X11")
1053 "Tamzen is a fork of the @code{Tamsyn} font. It is programmatically forked
1054 from @code{Tamsyn} version 1.11, backporting glyphs from older versions while
1055 deleting deliberately empty glyphs (which are marked as unimplemented) to
1056 allow secondary/fallback fonts to provide real glyphs at those codepoints.
1058 The @code{TamzenForPowerline} fonts provide additional @code{Powerline} symbols,
1059 which are programmatically injected with @code{bitmap-font-patcher} and
1060 later hand-tweaked with the gbdfed(1) editor:
1063 @item all icons are expanded to occupy the maximum available space
1064 @item the branch of the fork icon ( U+E0A0) was made larger than the trunk
1065 @item for the newline icon ( U+E0A1), the @emph{N} was made larger at the bottom
1066 @item the keyhole in the padlock icon ( U+E0A2) was replaced with @emph{//} lines.
1068 (license (license:non-copyleft "file://LICENSE"))))
1070 (define-public font-comic-neue
1072 (name "font-comic-neue")
1075 (method url-fetch/zipbomb)
1077 "http://www.comicneue.com/comic-neue-" version ".zip"))
1080 "1695hkpd8kqnr2a88p8xs496slgzxjjkzpa9aa33ml3pnh7519zk"))))
1081 (build-system font-build-system)
1084 (modify-phases %standard-phases
1085 ;; Delete Mac OS X specific files. If not deleted, these cause
1086 ;; several hidden files to be installed.
1087 (add-before 'install 'delete-macosx-files
1089 (delete-file-recursively "__MACOSX")
1091 (add-after 'install 'install-conf
1092 (lambda* (#:key outputs #:allow-other-keys)
1093 (let ((conf-dir (string-append (assoc-ref outputs "out")
1094 "/share/fontconfig/conf.avail")))
1096 (call-with-output-file
1097 (string-append conf-dir "/30-comic-neue.conf")
1099 (format port "<?xml version=\"1.0\"?>
1100 <!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">
1102 <!-- If Comic Sans is missing, use Comic Neue instead. -->
1104 <family>Comic Sans MS</family>
1106 <family>Comic Neue</family>
1109 </fontconfig>\n"))))
1111 (home-page "http://www.comicneue.com/")
1112 (synopsis "Font that fixes the shortcomings of Comic Sans")
1114 "Comic Neue is a font that attempts to create a respectable casual
1115 typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
1116 (license license:silofl1.1)))
1118 (define-public font-iosevka
1120 (name "font-iosevka")
1124 (method url-fetch/zipbomb)
1125 (uri (string-append "https://github.com/be5invis/Iosevka"
1126 "/releases/download/v" version
1127 "/ttc-iosevka-" version ".zip"))
1129 (base32 "14jfv6pkh1w44m89z2fn44kgmmqaf0057lk71advwfbm3q313y0x"))))
1130 (build-system font-build-system)
1131 (home-page "https://be5invis.github.io/Iosevka/")
1132 (synopsis "Coders' typeface, built from code")
1134 "Iosevka is a slender monospace sans-serif or slab-serif typeface inspired
1135 by Pragmata Pro, M+, and PF DIN Mono, designed to be the ideal font for
1136 programming. Iosevka is completely generated from its source code.")
1137 (license (list license:silofl1.1 ; build artifacts (i.e. the fonts)
1138 license:bsd-3)))) ; supporting code
1140 (define-public font-iosevka-slab
1142 (inherit font-iosevka)
1143 (name "font-iosevka-slab")
1144 (version (package-version font-iosevka))
1147 (method url-fetch/zipbomb)
1148 (uri (string-append "https://github.com/be5invis/Iosevka"
1149 "/releases/download/v" version
1150 "/ttc-iosevka-slab-" version ".zip"))
1152 (base32 "186d0pl13znysll3hvzm1ixn7ad616g6dhla55sbh6ki2j04b8ml"))))))
1154 (define-public font-go
1155 (let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
1159 (version (string-append "20170330-" revision "." (string-take commit 7)))
1161 (file-name (string-append "go-image-" version "-checkout"))
1164 (url "https://go.googlesource.com/image")
1168 "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
1169 (build-system font-build-system)
1172 (modify-phases %standard-phases
1173 (add-before 'install 'chdir
1175 (chdir "font/gofont/ttfs")
1177 (home-page "https://blog.golang.org/go-fonts")
1178 (synopsis "The Go font family")
1180 "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
1181 Holmes type foundry, released under the same license as the Go programming
1182 language. It includes a set of proportional, sans-serif fonts, and a set of
1183 monospace, slab-serif fonts.")
1184 (license license:bsd-3))))
1186 (define-public font-google-material-design-icons
1188 (name "font-google-material-design-icons")
1193 (url "https://github.com/google/material-design-icons.git")
1195 (file-name (git-file-name name version))
1198 "17q5brcqyyc8gbjdgpv38p89s60cwxjlwy2ljnrvas5cj0s62np0"))))
1199 (build-system font-build-system)
1200 (home-page "http://google.github.io/material-design-icons")
1201 (synopsis "Icon font of Google Material Design icons")
1203 "Material design system icons are simple, modern, friendly, and sometimes
1204 quirky. Each icon is created using our design guidelines to depict in simple
1205 and minimal forms the universal concepts used commonly throughout a UI.
1206 Ensuring readability and clarity at both large and small sizes, these icons
1207 have been optimized for beautiful display on all common platforms and display
1209 (license license:asl2.0)))
1211 (define-public font-open-dyslexic
1213 (name "font-open-dyslexic")
1214 (version "20160623")
1219 (url "https://github.com/antijingoist/open-dyslexic.git")
1220 (commit (string-append version "-Stable"))))
1221 (file-name (git-file-name name version))
1224 "0nr7s92nk1kbr459154idnib977ixc70z6g9mbra3lp73nyrmyvz"))))
1225 (build-system font-build-system)
1226 (home-page "https://opendyslexic.org")
1227 (synopsis "Font for dyslexics and high readability")
1228 (description "OpenDyslexic is a font designed to help readability for some
1229 of the symptoms of dyslexia. Letters have heavy weighted bottoms to provide
1230 an indication of orientation to make it more difficult to confuse with other
1231 similar letters. Consistently weighted bottoms can also help reinforce the
1232 line of text. The unique shapes of each letter can help prevent flipping and
1233 swapping. The italic style for OpenDyslexic has been crafted to be used for
1234 emphasis while still being readable.")
1236 (license:fsdg-compatible
1237 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts"
1238 "The Font Software may be sold as part of a larger software package but
1239 no copy of one or more of the Font Software typefaces may be sold by
1242 (define-public font-dosis
1248 (method url-fetch/zipbomb)
1249 (uri (string-append "http://www.impallari.com/media/releases/dosis-"
1250 "v" version ".zip"))
1253 "1qhci68f68mf87jd69vjf9qjq3wydgw1q7ivn3amjb65ls1s0c4s"))))
1254 (build-system font-build-system)
1255 (home-page "http://www.impallari.com/dosis")
1256 (synopsis "Very simple, rounded, sans serif family")
1258 "Dosis is a very simple, rounded, sans serif family.
1259 The lighter weights are minimalist. The bolder weights have more personality.
1260 The medium weight is nice and balanced. The overall result is a family
1261 that's clean and modern, and can express a wide range of voices & feelings.
1262 It comes in 7 incremental weights:
1263 ExtraLight, Light, Book, Medium, Semibold, Bold & ExtraBold")
1264 (license license:silofl1.1)))
1266 (define-public font-culmus
1268 (name "font-culmus")
1273 (uri (string-append "https://sourceforge.net/projects/"
1274 "culmus/files/culmus/" version "/culmus-src-"
1278 "02akysgsqhi15cck54xcacm16q5raf4l7shgb8fnj7xr3c1pbfyp"))))
1279 (build-system font-build-system)
1282 (modify-phases %standard-phases
1283 (add-before 'install 'build
1288 "fontforge" "-lang=ff"
1289 "-c" (string-append "Open('" name "');"
1291 (basename name "sfd") ext
1293 ;; This part based on the fonts shipped in the non-source package.
1294 (for-each (lambda (name)
1295 (compile name "ttf"))
1296 (find-files "." "^[^Nachlieli].*\\.sfd$"))
1297 (for-each (lambda (name)
1298 (compile name "otf"))
1299 (find-files "." "^Nachlieli.*\\.sfd$"))
1302 `(("fontforge" ,fontforge)))
1303 (home-page "http://culmus.sourceforge.net/")
1304 (synopsis "TrueType Hebrew Fonts for X11")
1305 (description "14 Hebrew trivial families. Contain ASCII glyphs from various
1306 sources. Those families provide a basic set of a serif (Frank Ruehl), sans
1307 serif (Nachlieli) and monospaced (Miriam Mono) trivials. Also included Miriam,
1308 Drugulin, Aharoni, David, Hadasim etc. Cantillation marks support is
1309 available in Keter YG.")
1310 (license license:gpl2))) ; consult the LICENSE file included
1312 (define-public font-lohit
1315 (version "20140220")
1319 (uri (string-append "https://releases.pagure.org/lohit/lohit-ttf-"
1323 "1rmgr445hw1n851ywy28csfvswz1i6hnc8mzp88qw2xk9j4dn32d"))))
1324 (build-system font-build-system)
1325 (home-page "https://pagure.io/lohit")
1326 (synopsis "Lohit TrueType Indic fonts")
1327 (description "Lohit is a font family designed to cover Indic scripts.
1328 Lohit supports the Assamese, Bengali, Devanagari (Hindi, Kashmiri, Konkani,
1329 Maithili, Marathi, Nepali, Sindhi, Santali, Bodo, Dogri languages), Gujarati,
1330 Kannada, Malayalam, Manipuri, Oriya, Punjabi, Tamil and Telugu scripts.")
1331 (license license:silofl1.1)))
1333 (define-public font-blackfoundry-inria
1335 (name "font-blackfoundry-inria")
1337 (home-page "https://github.com/BlackFoundry/InriaFonts")
1342 (commit (string-append "v" version))))
1345 "06775y99lyh6hj5hzvrx56iybdck8a8xfqkipqd5c4cldg0a9hh8"))
1346 (file-name (string-append name "-" version "-checkout"))))
1347 ;; XXX: There are .ufo directories (the "source") so in theory we should
1348 ;; be able to rebuild TTF and OTF files with FontForge. Unfortunately a
1351 ;; fontforge -lang=ff -c "Open('InriaSans-Regular.ufo'); Generate('foo.ttf');"
1353 ;; segfaults in '_UFOLoadGlyph', which calls out to libpython. :-/
1354 ;; In the meantime we ship the precompiled OTF and TTF files.
1355 (build-system font-build-system)
1356 (synopsis "Inria Sans and Inria Serif type family")
1358 "Inria Sans and Inria Serif are the two members of a type family designed
1359 for Inria, a public research institute in computer science and mathematics.")
1360 (license license:silofl1.1)))
1362 (define-public font-sil-gentium
1364 (name "font-sil-gentium")
1369 "https://software.sil.org/downloads/r/gentium/GentiumPlus-"
1373 "0m7189870hha217n1vgpmf89mwggrxkh679ffi1lxpnjggqi2n9k"))))
1374 ;; Note: The zip file provides TTF files only, but the developer release,
1375 ;; which contains additional files, has a 'SOURCES.txt' file that says
1376 ;; that "the primary source files for the fonts are the fonts themselves".
1377 ;; Thus it looks like the TTF can be considered source.
1378 (build-system font-build-system)
1379 (synopsis "Serif font for the Cyrillic, Greek, and Latin alphabets")
1381 "Gentium is a typeface family designed to enable the diverse ethnic
1382 groups around the world who use the Latin, Cyrillic and Greek scripts to
1383 produce readable, high-quality publications. The font comes with regular and
1384 italics shapes. This package provides only TrueType files (TTF).")
1385 (home-page "https://software.sil.org/gentium/")
1386 (license license:silofl1.1)))
1388 (define-public font-sil-andika
1390 (name "font-sil-andika")
1395 "https://software.sil.org/downloads/r/andika/Andika-"
1399 "01zm7p32gxfwmv7h3cfj2vx59846w2y6rxqy67grn2dyjh8pljv0"))))
1400 ;; As for Gentium (see above), the TTF files are considered source.
1401 (build-system font-build-system)
1402 (synopsis "Sans serif font designed especially for literacy use")
1404 "Andika SIL is a sans serif, Unicode-compliant font designed especially
1405 for literacy use, taking into account the needs of beginning readers. The
1406 focus is on clear, easy-to-perceive letterforms that will not be readily
1407 confused with one another. This package provides only TrueType files (TTF).")
1408 (home-page "https://software.sil.org/andika/")
1409 (license license:silofl1.1)))
1411 (define-public font-sil-charis
1413 (name "font-sil-charis")
1418 "https://software.sil.org/downloads/r/charis/CharisSIL-"
1422 "1zcvw37f1a7gkml3yfm6hxh93844llm7xj4w52600qq3ndrm8gjy"))))
1423 ;; As for Gentium (see above), the TTF files are considered source.
1424 (build-system font-build-system)
1425 (synopsis "Serif font for the Cyrillic and Latin alphabets")
1427 "Charis SIL is a Unicode-based font family that supports the wide range
1428 of languages that use the Latin and Cyrillic scripts. It is specially
1429 designed to make long texts pleasant and easy to read, even in less than ideal
1430 reproduction and display environments. This package provides only TrueType
1432 (home-page "https://software.sil.org/charis/")
1433 (license license:silofl1.1)))
1435 (define-public font-mononoki
1437 (name "font-mononoki")
1442 (url "https://github.com/madmalik/mononoki/")
1446 "1rkzyxn30rn8qv2h2xz324j7q15hzg2lci8790a7cdl1dfgic4xi"))
1447 (file-name (git-file-name name version))))
1448 (build-system font-build-system)
1449 (synopsis "Font for programming and code review")
1451 "Mononoki is a typeface by Matthias Tellen, created to enhance code
1453 (home-page "https://madmalik.github.io/mononoki/")
1454 (license license:silofl1.1)))
1456 (define-public font-public-sans
1458 (name "font-public-sans")
1463 (url "https://github.com/uswds/public-sans.git")
1464 (commit (string-append "v" version))))
1465 (file-name (git-file-name name version))
1468 "12ccj7ph3pg962d52d3slbvd44gwfm6bb2846dxyf1xc5h2iwhdv"))
1469 (modules '((guix build utils)))
1472 ;; remove versions of predecessor font
1473 (delete-file-recursively "fonts/_archive")
1475 (build-system font-build-system)
1476 (home-page "https://public-sans.digital.gov/")
1477 (synopsis "Neutral typeface for interfaces, text, and headings")
1479 "Public Sans is a strong, neutral, sans-serif typeface for text or
1480 display based on Libre Franklin.")
1481 (license license:silofl1.1)))
1483 (define-public font-hermit
1485 (name "font-hermit")
1488 (method url-fetch/tarbomb)
1489 (uri (string-append "https://pcaro.es/d/otf-hermit-" version
1493 "09rmy3sbf1j1hr8zidighjgqc8kp0wsra115y27vrnlf10ml6jy0"))))
1494 (build-system font-build-system)
1497 (home-page "https://pcaro.es/p/hermit/")
1498 (synopsis "Monospace font")
1500 "Hermit is a monospace font designed to be clear, pragmatic and very
1501 readable. Its creation has been focused on programming. Every glyph was
1502 carefully planned and calculated, according to defined principles and rules.
1503 For this reason, Hermit is coherent and regular.
1505 Symbols stand out from common text. Dots and commas are easily seen, and
1506 operators are clear even when not surrounded by spaces. Similar characters
1507 have been designed to be very distinguishable from each other.")
1508 (license license:silofl1.1)))