mailmap: Update entries for Nikita.
[jackhill/guix/guix.git] / gnu / packages / fonts.scm
CommitLineData
86f1537d 1;;; GNU Guix --- Functional package management for GNU
4c89dc35 2;;; Copyright © 2013, 2014, 2015, 2016, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
b18e5945 3;;; Copyright © 2014, 2017 Mark H Weaver <mhw@netris.org>
822efdff 4;;; Copyright © 2014 Joshua Grant <tadni@riseup.net>
16191117 5;;; Copyright © 2014 Alex Kost <alezost@gmail.com>
692784dd 6;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
e93b88f7 7;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
d28fa5cc 8;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
df320991 9;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
3c986a7d 10;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
b6ecac93 11;;; Copyright © 2016 Jookia <166291@gmail.com>
f85cafde 12;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
73c8d39c 13;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
30acf2f9 14;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
4affa918 15;;; Copyright © 2016, 2020 Marius Bakke <mbakke@fastmail.com>
c3e2a247 16;;; Copyright © 2016 Toni Reina <areina@riseup.net>
5dc8a3ad 17;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
83421fc7 18;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com>
446e1d51 19;;; Copyright © 2017 Alex Griffin <a@ajgrf.com>
d5b09129 20;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
dcfa0acd 21;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
ed248424 22;;; Copyright © 2017, 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
42ecb96e 23;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
270750d4 24;;; Copyright © 2018 Charlie Ritter <chewzerita@posteo.net>
3c5e1364 25;;; Copyright © 2018 Gabriel Hondet <gabrielhondet@gmail.com>
27e65afc 26;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk>
1a6482d4 27;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
50867421 28;;; Copyright © 2019 Baptiste Strazzulla <bstrazzull@hotmail.fr>
93b3ef19 29;;; Copyright © 2019 Alva <alva@skogen.is>
600f680d 30;;; Copyright © 2019 Alexandros Theodotou <alex@zrythm.org>
5d94702e 31;;; Copyright © 2020 Damien Cassou <damien@cassou.me>
c2cf286c 32;;; Copyright © 2020 Amin Bandali <bandali@gnu.org>
3bf45ff4 33;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
0161862d 34;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
5483a2d0 35;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
86f1537d
AE
36;;;
37;;; This file is part of GNU Guix.
38;;;
39;;; GNU Guix is free software; you can redistribute it and/or modify it
40;;; under the terms of the GNU General Public License as published by
41;;; the Free Software Foundation; either version 3 of the License, or (at
42;;; your option) any later version.
43;;;
44;;; GNU Guix is distributed in the hope that it will be useful, but
45;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47;;; GNU General Public License for more details.
48;;;
49;;; You should have received a copy of the GNU General Public License
50;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
51
52(define-module (gnu packages fonts)
6e1d7aa9 53 #:use-module (ice-9 regex)
71be99b8 54 #:use-module (guix utils)
b5b73a82 55 #:use-module ((guix licenses) #:prefix license:)
86f1537d
AE
56 #:use-module (guix packages)
57 #:use-module (guix download)
49dbae54 58 #:use-module (guix git-download)
b2f89c19 59 #:use-module (guix build-system font)
d41bb065 60 #:use-module (guix build-system gnu)
bd15da3a 61 #:use-module (guix build-system meson)
86f1537d 62 #:use-module (guix build-system trivial)
56b7a338 63 #:use-module (gnu packages base)
d41bb065 64 #:use-module (gnu packages compression)
47268eec 65 #:use-module (gnu packages fontutils)
bd15da3a
KK
66 #:use-module (gnu packages gettext)
67 #:use-module (gnu packages glib)
ed248424 68 #:use-module (gnu packages gtk)
d41bb065 69 #:use-module (gnu packages perl)
47268eec
AE
70 #:use-module (gnu packages pkg-config)
71 #:use-module (gnu packages python)
ed248424 72 #:use-module (gnu packages python-xyz)
148585c2 73 #:use-module (gnu packages xorg))
86f1537d 74
270750d4
CR
75(define-public font-ibm-plex
76 (package
77 (name "font-ibm-plex")
57680360 78 (version "4.0.2")
270750d4
CR
79 (source (origin
80 (method url-fetch)
81 (uri (string-append
82 "https://github.com/IBM/plex/releases/download/"
83 "v" version "/OpenType.zip"))
84 (sha256
85 (base32
57680360 86 "17bd84ic7z9hkcjy4bwnh4z51bnkh2vrjzwvs9g6lwzmxjswa5b6"))))
270750d4
CR
87 (build-system font-build-system)
88 (home-page "https://github.com/IBM/plex")
89 (synopsis "IBM Plex typeface")
90 (description "This package provides the Plex font family. It comes in a
91Sans, Serif, Mono and Sans Condensed, all with roman and true italics. The
92fonts have been designed to work well in user interface (UI) environments as
93well as other mediums.")
94 (license license:silofl1.1)))
95
477ac94b 96(define-public font-inconsolata
dede51a1
ED
97 (package
98 (name "font-inconsolata")
901f2607
TGR
99 (version "3.000")
100 (source
101 (origin
102 (method url-fetch)
103 (uri (string-append "https://github.com/googlefonts/Inconsolata/"
104 "releases/download/v" version "/fonts_otf.zip"))
105 (sha256
106 (base32 "1wavvv86nwsqm5sbmnkv1bprj7l7zdrkxpvjy6w8yag93k6hrlx1"))))
b2f89c19 107 (build-system font-build-system)
fb7e50bd 108 (home-page "https://levien.com/type/myfonts/inconsolata.html")
dede51a1
ED
109 (synopsis "Monospace font")
110 (description "A monospace font, designed for code listings and the like,
111in print. With attention to detail for high resolution rendering.")
112 (license license:silofl1.1)))
113
e93b88f7
ED
114(define-public font-ubuntu
115 (package
116 (name "font-ubuntu")
29f9abb4 117 (version "0.83")
e93b88f7 118 (source (origin
96cae1b4
JN
119 (method git-fetch)
120 (uri (git-reference
121 (url "https://salsa.debian.org/fonts-team/fonts-ubuntu")
122 (commit (string-append "upstream/" version))))
123 (file-name (git-file-name name version))
e93b88f7
ED
124 (sha256
125 (base32
96cae1b4 126 "1d2xrjpxy70f3nsgqiggwv6pj06qglf5vj2847pqx60w3ygi903g"))))
59786588 127 (build-system font-build-system)
e93b88f7
ED
128 (home-page "http://font.ubuntu.com/")
129 (synopsis "The Ubuntu Font Family")
130 (description "The Ubuntu Font Family is a unique, custom designed font
131that has a very distinctive look and feel. This package provides the
132TrueType (TTF) files.")
133 (license
134 (license:non-copyleft
135 "http://font.ubuntu.com/ufl/ubuntu-font-licence-1.0.txt"
136 "Ubuntu Font License v1.0"))))
137
5e6bdf06 138(define-public font-dejavu
72f210ea 139 (package
5e6bdf06 140 (name "font-dejavu")
d7284b6a 141 (version "2.37")
72f210ea
MW
142 (source (origin
143 (method url-fetch)
de67e922 144 (uri (string-append "mirror://sourceforge/dejavu/dejavu/"
72f210ea
MW
145 version "/dejavu-fonts-ttf-"
146 version ".tar.bz2"))
147 (sha256
148 (base32
d7284b6a 149 "1mqpds24wfs5cmfhj57fsfs07mji2z8812i5c4pi5pbi738s977s"))))
2e884019 150 (build-system font-build-system)
72f210ea 151 (arguments
2e884019
AI
152 `(#:phases
153 (modify-phases %standard-phases
154 (add-after 'install 'install-conf
155 (lambda* (#:key outputs #:allow-other-keys)
156 (let ((conf-dir (string-append (assoc-ref outputs "out")
157 "/share/fontconfig/conf.avail")))
38ef437b
MW
158 (copy-recursively "fontconfig" conf-dir)
159 #t))))))
db369e91 160 (home-page "https://dejavu-fonts.github.io/")
72f210ea
MW
161 (synopsis "Vera font family derivate with additional characters")
162 (description "DejaVu provides an expanded version of the Vera font family
163aiming for quality and broader Unicode coverage while retaining the original
b4774d87 164Vera style. DejaVu currently works towards conformance to the Multilingual
72f210ea
MW
165European Standards (MES-1 and MES-2) for Unicode coverage. The DejaVu fonts
166provide serif, sans and monospaced variants.")
167 (license
168 (license:x11-style
169 "http://dejavu-fonts.org/"))))
170
5e6bdf06 171(define-public font-bitstream-vera
86f1537d 172 (package
5e6bdf06 173 (name "font-bitstream-vera")
86f1537d
AE
174 (version "1.10")
175 (source (origin
176 (method url-fetch)
177 (uri (string-append "mirror://gnome/sources/ttf-bitstream-vera/"
178 version "/ttf-bitstream-vera-"
179 version ".tar.bz2"))
180 (sha256
181 (base32
182 "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv"))))
e46e0de1 183 (build-system font-build-system)
f032d0be 184 (home-page "https://www.gnome.org/fonts/")
86f1537d
AE
185 (synopsis "Bitstream Vera sans-serif typeface")
186 (description "Vera is a sans-serif typeface from Bitstream, Inc. This
187package provides the TrueType (TTF) files.")
188 (license
d5b09129
CL
189 (license:fsdg-compatible
190 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts"
191 "The Font Software may be sold as part of a larger software package but
192no copy of one or more of the Font Software typefaces may be sold by
193itself."))))
86f1537d 194
71be99b8
LC
195(define-public font-cantarell
196 (package
197 (name "font-abattis-cantarell")
bd15da3a 198 (version "0.111")
71be99b8
LC
199 (source (origin
200 (method url-fetch)
201 (uri (string-append "mirror://gnome/sources/cantarell-fonts/"
202 (version-major+minor version)
203 "/cantarell-fonts-" version ".tar.xz"))
204 (sha256
205 (base32
bd15da3a
KK
206 "05hpnhihwm9sxlq1qn993g03pwkmpjbn0dvnba71r1gfjv0jp2w5"))))
207 (build-system meson-build-system)
208 (native-inputs
209 `(("appstream-glib" ,appstream-glib)
210 ("gettext" ,gettext-minimal))) ;for msgfmt
71be99b8
LC
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
214sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.")
215 (license license:silofl1.1)))
216
4eb47420 217(define-public font-lato
218 (package
219 (name "font-lato")
5dc8a3ad 220 (version "2.015") ; also update description
4eb47420 221 (source (origin
803b9e8b 222 (method url-fetch/zipbomb)
253a4bb2 223 (uri (string-append "https://www.latofonts.com/download/Lato2OFL.zip"))
4eb47420 224 (sha256
225 (base32
226 "1f5540g0ja1nx3ddd3ywn77xc81ssrxpq8n3gyb9sabyq2b4xda2"))))
803b9e8b 227 (build-system font-build-system)
253a4bb2 228 (home-page "https://www.latofonts.com/lato-free-fonts/")
4eb47420 229 (synopsis "Lato sans-serif typeface")
230 (description
231 "Lato is a sanserif typeface family. It covers over 3000 glyphs per style.
232The Lato 2.010 family supports more than 100 Latin-based languages, over
23350 Cyrillic-based languages as well as Greek and IPA phonetics.")
234 (license license:silofl1.1)))
235
5483a2d0 236(define-public font-gnu-freefont
86f1537d 237 (package
5483a2d0 238 (name "font-gnu-freefont")
4affa918
MB
239 ;; Note: Remove the special FontForge input and package once the 2020
240 ;; release is out.
47268eec 241 (version "20120503")
86f1537d
AE
242 (source (origin
243 (method url-fetch)
47268eec 244 (uri (string-append "mirror://gnu/freefont/freefont-src-"
86f1537d
AE
245 version ".tar.gz"))
246 (sha256
247 (base32
47268eec
AE
248 "0yk58blhcd4hm7nyincmqq4jrzjjk82wif2zmk1l3y2m4vif4qhd"))))
249 (build-system gnu-build-system)
86f1537d 250 (arguments
47268eec
AE
251 `(#:phases (modify-phases %standard-phases
252 (delete 'configure)
253 (replace 'install
254 (lambda _
255 (let ((doc-dir (string-append %output "/share/doc/"
256 ,name "-" ,version))
5483a2d0
RG
257 (ttf-font-dir (string-append %output
258 "/share/fonts/ttf"))
259 (otf-font-dir (string-append %output
260 "/share/fonts/otf"))
261 (woff-font-dir (string-append %output
262 "/share/fonts/woff")))
47268eec
AE
263 (mkdir-p doc-dir)
264 (substitute* "Makefile"
265 (("\\$\\(TMPDIR\\)") doc-dir)
5483a2d0
RG
266 (("sfd/\\*.ttf") "")
267 (("sfd/\\*.otf") "")
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)
47268eec 278 (for-each (lambda (file)
5483a2d0 279 (install-file file ttf-font-dir))
47268eec
AE
280 (filter
281 (lambda (file) (string-suffix? "ttf" file))
5483a2d0
RG
282 (find-files "." "")))
283 (for-each (lambda (file)
284 (install-file file otf-font-dir))
285 (filter
286 (lambda (file) (string-suffix? "otf" file))
287 (find-files "." "")))
288 (for-each (lambda (file)
289 (install-file file woff-font-dir))
290 (filter
291 (lambda (file) (string-suffix? "woff" file))
47268eec
AE
292 (find-files "." "")))))))
293 #:test-target "tests"))
4affa918
MB
294 ;; FreeFont anno 2012 requires a FontForge built with Python 2.
295 (native-inputs `(("fontforge" ,fontforge-20190801)))
6fd52309 296 (home-page "https://www.gnu.org/software/freefont/")
86f1537d
AE
297 (synopsis "Unicode-encoded outline fonts")
298 (description
299 "The GNU Freefont project aims to provide a set of free outline
300 (PostScript Type0, TrueType, OpenType...) fonts covering the ISO
30110646/Unicode UCS (Universal Character Set).")
63e8bb12
LC
302 (license license:gpl3+)
303 (properties '((upstream-name . "freefont")
304 (ftp-directory . "/gnu/freefont")))))
d41bb065 305
8e2a4238
LF
306(define-public font-gnu-freefont-ttf
307 (deprecated-package "font-gnu-freefont-ttf" font-gnu-freefont))
308
16191117
AK
309(define-public font-liberation
310 (package
311 (name "font-liberation")
0754f29a
TGR
312 (version "2.00.5")
313 (source
314 (origin
315 (method url-fetch)
316 (uri (string-append "https://github.com/liberationfonts/liberation-fonts/"
317 "files/2926169/liberation-fonts-ttf-" version ".tar.gz"))
318 (sha256
319 (base32 "0kdjsbf0y716k1kv0i0ixdpvg7b9b8xkcsg6favaxdc7pshg0kzi"))))
45d32e24 320 (build-system font-build-system)
0754f29a
TGR
321 (home-page "https://github.com/liberationfonts")
322 (synopsis "Fonts compatible with Arial, Times New Roman, and Courier New")
16191117
AK
323 (description
324 "The Liberation font family aims at metric compatibility with
325Arial, Times New Roman, and Courier New.
16191117
AK
326There are three sets:
327
0102fba2 328@enumerate
ec460a2a 329@item Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L, and
16191117 330Bitstream Vera Sans);
ec460a2a 331@item Serif (a substitute for Times New Roman, Thorndale, Nimbus Roman, and
16191117 332Bitstream Vera Serif);
ec460a2a 333@item Mono (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L,
16191117 334and Bitstream Vera Sans Mono).
0102fba2 335@end enumerate
16191117
AK
336
337The Liberation Fonts are sponsored by Red Hat.")
338 (license license:silofl1.1)))
339
d28fa5cc
RW
340(define-public font-linuxlibertine
341 (package
342 (name "font-linuxlibertine")
343 (version "5.3.0")
344 (source (origin
345 (method url-fetch/tarbomb)
346 (uri (string-append "mirror://sourceforge/linuxlibertine/"
347 "linuxlibertine/" version
348 "/LinLibertineSRC_" version "_2012_07_02.tgz"))
349 (sha256
350 (base32
351 "0x7cz6hvhpil1rh03rax9zsfzm54bh7r4bbrq8rz673gl9h47v0v"))))
15795e07 352 (build-system font-build-system)
d28fa5cc 353 (arguments
15795e07 354 `(#:phases
d28fa5cc 355 (modify-phases %standard-phases
15795e07 356 (add-before 'install 'build
d28fa5cc
RW
357 (lambda _
358 (let ((compile
359 (lambda (name ext)
15795e07
AI
360 (invoke
361 "fontforge" "-lang=ff"
362 "-c" (string-append "Open('" name "');"
363 "Generate('"
364 (basename name "sfd") ext
365 "')")))))
366 (for-each (lambda (name)
367 (and (compile name "ttf")
368 (compile name "otf")))
369 (find-files "." "\\.sfd$"))
d28fa5cc
RW
370 #t))))))
371 (native-inputs
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
376both a Serif version (\"Linux Libertine\") and a Sans Serif (\"Linux
377Biolinum\") designed to be used together as an alternative for Times/Times New
378Roman and Helvetica/Arial. The Serif typeface comes in two shapes and two
379weights, and with a Small Capitals version of the regular typeface. Linux
380Biolinum 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))))
383
5e6bdf06 384(define-public font-terminus
d41bb065 385 (package
5e6bdf06 386 (name "font-terminus")
3fd67ec6 387 (version "4.48")
d41bb065 388 (source
73c5c482
TGR
389 (origin
390 (method url-fetch)
391 (uri (string-append "mirror://sourceforge/terminus-font/terminus-font-"
392 version "/terminus-font-" version ".tar.gz"))
393 (sha256
3fd67ec6 394 (base32 "1bwlkj39rqbyq57v5yssayav6hzv1n11b9ml2s0dpiyfsn6rqy9l"))))
d41bb065 395 (build-system gnu-build-system)
a431e213
TGR
396 (outputs (list "out" "pcf-8bit"))
397 (arguments
398 `(#:tests? #f ; no test target in tarball
399 #:phases
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="
410 pcf-8bit)
411 make-flags)))))))
d41bb065 412 (native-inputs
73c5c482 413 `(("bdftopcf" ,bdftopcf)
b3546174 414 ("font-util" ,font-util)
73c5c482
TGR
415 ("mkfontdir" ,mkfontdir)
416 ("pkg-config" ,pkg-config)
417 ("python" ,python)))
d41bb065
JG
418 (home-page "http://terminus-font.sourceforge.net/")
419 (synopsis "Simple bitmap programming font")
b4774d87
TGR
420 (description "Terminus Font is a clean, fixed-width bitmap font, designed
421for long periods of working with computers (8 or more hours per day).")
380f2ab6 422 (license license:silofl1.1)))
692784dd
SB
423
424(define-public font-adobe-source-han-sans
425 (package
426 (name "font-adobe-source-han-sans")
2666a126 427 (version "1.004")
692784dd 428 (source (origin
8f4dccf7
EF
429 (method git-fetch)
430 (uri (git-reference
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))
692784dd
SB
434 (sha256
435 (base32
8f4dccf7 436 "0zm884d8fp5gvirq324050kqv7am9khyqhs9kk4r4rr3jzn61jpk"))))
2666a126 437 (outputs '("out" ; OpenType/CFF Collection (OTC), 121 MiB.
692784dd
SB
438 "cn" "jp" "kr" "tw")) ; Region-specific Subset OpenType/CFF.
439 (build-system trivial-build-system)
440 (arguments
441 `(#:modules ((guix build utils))
442 #:builder
443 (begin
444 (use-modules (guix build utils))
8f4dccf7 445 (let ((install-opentype-fonts
692784dd
SB
446 (lambda (fonts-dir out)
447 (copy-recursively fonts-dir
448 (string-append (assoc-ref %outputs out)
449 "/share/fonts/opentype")))))
8f4dccf7 450 (chdir (assoc-ref %build-inputs "source"))
692784dd
SB
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")
2666a126 455 (install-opentype-fonts "SubsetOTF/TW" "tw")
e3cfef22
MW
456 (for-each delete-file (find-files %output "\\.zip$"))
457 #t))))
692784dd
SB
458 (home-page "https://github.com/adobe-fonts/source-han-sans")
459 (synopsis "Pan-CJK fonts")
460 (description
461 "Source Han Sans is a sans serif Pan-CJK font family that is offered in
462seven weights: ExtraLight, Light, Normal, Regular, Medium, Bold, and Heavy.
463And in several OpenType/CFF-based deployment configurations to accommodate
464various system requirements or limitations. As the name suggests, Pan-CJK
465fonts are intended to support the characters necessary to render or display
e881752c 466text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.")
2666a126 467 (license license:silofl1.1)))
192b4802 468
840b7136 469(define-public font-cns11643
377fad00
BT
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.
840b7136
BT
474 (package
475 (name "font-cns11643")
377fad00 476 (version "98.1.20180605")
840b7136
BT
477 (source (origin
478 (method url-fetch)
479 (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
480 (sha256
481 (base32
377fad00 482 "000a9whrjr1cd4pjc23pbl60zwkq3wcb5g61p9qi7fn3hwkp0kyw"))))
8c5ad448 483 (build-system font-build-system)
840b7136
BT
484 (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
485 (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
486 (description
487 "@code{CNS 11643} character set (Chinese National Standard, or Chinese
488Standard Interchange Code) is the standard character set of the Republic of
489China (Taiwan) for Chinese Characters and other Unicode symbols. Contained
490are six TrueType fonts based on two script styles, Regular script (Kai), and
491Sung/Ming script, each with three variants:
492
493@itemize
494@item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thousands
495of CJK characters from frequency tables published by the Taiwanese
496Ministry of Education. ISO 10646 and Unicode compatible encoding.
497@item @code{Big-5 Plus}: Several thousand frequently used CJK characters
498encoded 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.
501@end itemize\n")
502 (license (license:non-copyleft
503 "http://data.gov.tw/license")))) ; CC-BY 4.0 compatible
504
f3744a01
BT
505(define-public font-cns11643-swjz
506 (package
507 (name "font-cns11643-swjz")
508 (version "1")
509 (source
510 (origin
511 (method url-fetch)
512 (uri "https://www.moedict.tw/fonts/truetype/cns11643/ebas927.ttf")
513 (sha256
514 (base32
515 "1qkljldbmb53zp1rcmpsb8rzy67rnsqcjxi549m9743ifk4isl78"))))
a5ce48c8 516 (build-system font-build-system)
f3744a01
BT
517 (home-page
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")
521 (description
522 "@code{Shuowen Jiezi} is a TrueType seal script font based on the ancient
523text of the same name published by the Executive Yuan of Taiwan. 6721 glyphs
524are included, at Unicode compatible code points corresponding to their modern
525variants.")
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"))))
530
192b4802
RW
531(define-public font-wqy-zenhei
532 (package
533 (name "font-wqy-zenhei")
534 (version "0.9.45")
535 (source (origin
536 (method url-fetch)
537 (uri (string-append
de67e922
LF
538 "mirror://sourceforge/wqy/wqy-zenhei/" version
539 "%20%28Fighting-state%20RC1%29/wqy-zenhei-"
192b4802 540 version ".tar.gz"))
192b4802
RW
541 (sha256
542 (base32
543 "1mkmxq8g2hjcglb3zajfqj20r4r88l78ymsp2xyl5yav8w3f7dz4"))))
371ca85f 544 (build-system font-build-system)
332cc03b 545 (home-page "http://wenq.org/wqy2/")
192b4802
RW
546 (synopsis "CJK font")
547 (description
548 "WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese outline
549font. It is designed for general purpose text formatting and on-screen
550display of Chinese characters and symbols from many other languages.
b4774d87 551WenQuanYi Zen Hei provides a rather complete coverage of Chinese Hanzi glyphs,
192b4802
RW
552including both simplified and traditional forms. The total glyph number in
553this font is over 35,000, including over 21,000 Chinese Hanzi. This font has
b4774d87
TGR
554full coverage of the GBK (CP936) charset, CJK Unified Ideographs, as well as
555the code-points needed for zh_cn, zh_sg, zh_tw, zh_hk, zh_mo, ja (Japanese) and
556ko (Korean) locales for @code{fontconfig}.")
78cda0bc 557 ;; GPLv2 with font embedding exception.
192b4802 558 (license license:gpl2)))
3f88152d 559
12b8f6b4
FS
560(define-public font-wqy-microhei
561 (package
562 (name "font-wqy-microhei")
563 (version "0.2.0-beta")
564 (source (origin
565 (method url-fetch)
566 (uri (string-append "mirror://sourceforge/wqy/wqy-microhei/"
567 version "/wqy-microhei-" version ".tar.gz"))
568 (sha256
569 (base32
570 "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8"))))
7fc6ce46 571 (build-system font-build-system)
12b8f6b4
FS
572 (home-page "http://wenq.org/wqy2/")
573 (synopsis "CJK font")
574 (description
575 "WenQuanYi Micro Hei is a Sans-Serif style (also known as Hei, Gothic or
576Dotum among the Chinese/Japanese/Korean users) high quality CJK outline font.
577It was derived from \"Droid Sans Fallback\" and \"Droid Sans\" released by
578Google Inc. This font contains all the unified CJK Han glyphs in the range of
579U+4E00-U+9FC3 defined in Unicode Standard 5.1, together with many other
580languages unicode blocks, including Latins, Extended Latins, Hanguls and
581Kanas. The font file is extremely compact (~4M) compared with most known CJK
582fonts.")
583 ;; This font is licensed under Apache2.0 or GPLv3 with font embedding
584 ;; exceptions.
585 (license license:gpl3)))
586
42ecb96e
MS
587(define-public font-rachana
588 (package
589 (name "font-rachana")
0736d973 590 (version "7.0.3")
42ecb96e
MS
591 (source
592 (origin
61e079d6
TGR
593 (method git-fetch)
594 (uri (git-reference
595 (url "https://gitlab.com/smc/fonts/rachana")
596 (commit (string-append "Version" version))))
42ecb96e 597 (sha256
61e079d6
TGR
598 (base32 "0r100pvk56y1s38nbv24d78s8nd7dkblgasbn8s887dzj6dps23d"))
599 (file-name (git-file-name name version))))
42ecb96e
MS
600 (build-system font-build-system)
601 (home-page "https://smc.org.in")
602 (synopsis "Malayalam font")
603 (description
604 "Rachana is a Malayalam font designed by Hussain K H. The project was
605part of Rachana Aksharavedi for the original script of Malayalam in computing.
606Rachana has about 1,200+ glyphs for Malayalam and contains glyphs required for
607printing old Malayalam books without compromising the writing style.")
608 ;; This font is licensed under SIL 1.1 or GPLv3+ with font embedding
609 ;; exceptions.
610 (license (list license:silofl1.1 license:gpl3+))))
611
3f88152d
RW
612(define-public font-tex-gyre
613 (package
614 (name "font-tex-gyre")
615 (version "2.005")
616 (source
617 (origin
c226f06c 618 (method url-fetch/zipbomb)
3f88152d
RW
619 (uri (string-append "http://www.gust.org.pl/projects/e-foundry/"
620 "tex-gyre/whole/tg-" version "otf.zip"))
621 (sha256
622 (base32
623 "0kph9l3g7jb2bpmxdbdg5zl56wacmnvdvsdn7is1gc750sqvsn31"))))
c226f06c 624 (build-system font-build-system)
3f88152d
RW
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
628extensive remake and extension of the freely available base PostScript fonts
629distributed with Ghostscript version 4.00. The collection contains the
630following fonts in the OpenType format: Adventor, Bonum, Chorus, Cursor,
631Heros, Pagella, Schola, Termes.")
632 (license license:gfl1.0)))
761b3d44
LF
633
634(define-public font-anonymous-pro
635 (package
636 (name "font-anonymous-pro")
637 (version "1.002")
638 (source (origin
639 (method url-fetch)
640 (uri (string-append
bba5bb30 641 "https://www.marksimonson.com/assets/content/fonts/"
761b3d44
LF
642 "AnonymousPro-" version ".zip"))
643 (sha256
644 (base32
645 "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
bbb1a1d2 646 (build-system font-build-system)
bba5bb30 647 (home-page "https://www.marksimonson.com/fonts/view/anonymous-pro")
761b3d44
LF
648 (synopsis "Fixed-width fonts designed with coding in mind")
649 (description "Anonymous Pro is a family of four fixed-width fonts designed
650with coding in mind. Anonymous Pro features an international, Unicode-based
651character set, with support for most Western and Central European Latin-based
652languages, plus Greek and Cyrillic.")
653 (license license:silofl1.1)))
d032d965 654
4fce1ff1
TGR
655(define-public font-anonymous-pro-minus
656 (package
657 (inherit font-anonymous-pro)
658 (name "font-anonymous-pro-minus")
659 ;; The -Minus variant doesn't necessarily track the regular version above.
660 (version "1.003")
661 (source
662 (origin
663 (method url-fetch)
664 (uri (string-append "https://www.marksimonson.com/assets/content/fonts/"
665 "AnonymousProMinus-" version ".zip"))
666 (sha256
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
670with coding in mind. Anonymous Pro features an international, Unicode-based
671character set, with support for most Western and Central European Latin-based
672languages, plus Greek and Cyrillic.
673
674Anonymous Pro Minus is identical to Anonymous Pro, minus its embedded bitmaps
675for use at smaller text sizes")))
676
d032d965
SB
677(define-public font-gnu-unifont
678 (package
679 (name "font-gnu-unifont")
dbb58f28 680 (version "13.0.01")
f990bda4
TGR
681 (source
682 (origin
683 (method url-fetch)
684 (uri (list
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")))
689 (sha256
dbb58f28 690 (base32 "1svzm3xahb2m8r79ha9gb1z3zlckykx9d87cghswj7dxn9868j4b"))))
d032d965 691 (build-system gnu-build-system)
f21058dc
EF
692 (outputs '("out" ; TrueType version
693 "pcf" ; PCF (bitmap) version
694 "psf" ; PSF (console) version
695 "bin")) ; Utilities to manipulate '.hex' format
d032d965 696 (arguments
f21058dc 697 '(#:tests? #f ; no check target
d032d965
SB
698 #:phases
699 (modify-phases %standard-phases
c88bee0a
EF
700 (replace
701 'configure
702 (lambda _ (setenv "CC" "gcc") #t))
d032d965
SB
703 (replace
704 'install
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")))
5b47ea94
EF
713 (invoke "make"
714 (string-append "PREFIX=" bin)
715 (string-append "TTFDEST=" ttf)
716 (string-append "PCFDEST=" pcf)
717 (string-append "CONSOLEDEST=" psf)
718 "install")
d032d965
SB
719 ;; Move Texinfo file to the right place.
720 (mkdir (string-append bin "/share/info"))
c1352b4b
LC
721 (invoke "gzip" "-9n" "doc/unifont.info")
722 (install-file "doc/unifont.info.gz"
723 (string-append bin "/share/info"))
d032d965
SB
724 #t))))))
725 (inputs
726 `(("perl" ,perl))) ; for utilities
727 (synopsis
728 "Large bitmap font covering Unicode's Basic Multilingual Plane")
729 (description
730 "GNU Unifont is a bitmap font covering essentially all of
731Unicode's Basic Multilingual Plane. The package also includes
732utilities to ease adding new glyphs to the font.")
dbb58f28 733 (home-page "http://unifoundry.com/unifont/index.html")
fc19cee1 734 (properties '((upstream-name . "unifont")))
d032d965 735 (license license:gpl2+)))
b6ecac93
J
736
737(define-public font-google-noto
738 (package
739 (name "font-google-noto")
66d6b7c3
TGR
740 (version "20171025")
741 (source
742 (origin
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"))
747 (sha256
748 (base32 "1bp42whyin7xcgmrbnfvz3rvd98xmxaz3ywqybbjmqzwaa9llyw3"))))
2f7966c8 749 (build-system font-build-system)
b6ecac93 750 (home-page "https://www.google.com/get/noto/")
b4774d87
TGR
751 (synopsis "Fonts to cover all languages")
752 (description "Google Noto Fonts is a family of fonts designed to support
753all languages with a consistent look and aesthetic. Its goal is to properly
754display all Unicode symbols.")
b6ecac93 755 (license license:silofl1.1)))
aae6b4b9 756
bb0756c7 757(define-public font-google-roboto
758 (package
759 (name "font-google-roboto")
760 (version "2.136")
761 (source
762 (origin
763 (method url-fetch)
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"))
767 (sha256
768 (base32
769 "0spscx08fad7i8qs7icns96iwcapniq8lwwqqvbf7bamvs8qfln4"))))
9713b31e 770 (build-system font-build-system)
bb0756c7 771 (home-page "https://github.com/google/roboto")
772 (synopsis "The Roboto family of fonts")
773 (description
774 "Roboto is Google’s signature family of fonts, the default font on Android
775and Chrome OS, and the recommended font for the
776visual language \"Material Design\".")
777 (license license:asl2.0)))
778
aae6b4b9 779(define-public font-un
780 (package
781 (name "font-un")
782 (version "1.0.2-080608")
aae6b4b9 783 (source (origin
784 (method url-fetch)
99a61dad 785 (uri (string-append
786 "https://kldp.net/unfonts/release/2607-"
787 "un-fonts-core-" version ".tar.gz"))
aae6b4b9 788 (file-name (string-append name "-" version ".tar.gz"))
789 (sha256
790 (base32
791 "13liaz2pmww3aqabm55la5npd08m1skh334ky7qfidxaz5s742iv"))))
6084d9b4 792 (build-system font-build-system)
aae6b4b9 793 (home-page "https://kldp.net/projects/unfonts/")
794 (synopsis "Collection of Korean fonts")
795 (description
796 "Un-fonts is a family of mainly Korean fonts.
797It contains the following fonts and styles:
798
799@enumerate
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.
806@end enumerate\n")
807 (license license:gpl2+)))
f85cafde
EB
808
809(define-public font-fantasque-sans
810 (package
811 (name "font-fantasque-sans")
0d197a63 812 (version "1.8.0")
f85cafde
EB
813 (source
814 (origin
5882078e
EB
815 (method git-fetch)
816 (uri (git-reference
817 (url "https://github.com/belluzj/fantasque-sans.git")
818 (commit (string-append "v" version))))
819 (file-name (git-file-name name version))
f85cafde 820 (sha256
0d197a63 821 (base32 "17l18488qyl9gdj80r8pcym3gp3jkgsdikwalnrp5rgvwidqx507"))))
f85cafde
EB
822 (build-system gnu-build-system)
823 (native-inputs
824 `(("ttfautohint" ,ttfautohint)
825 ("woff-tools" ,woff-tools)
826 ("fontforge" ,fontforge)
827 ("woff2" ,woff2)
5882078e 828 ("zip" ,zip)))
f85cafde
EB
829 (arguments
830 `(#:tests? #f ;test target intended for visual inspection
831 #:phases (modify-phases %standard-phases
832 (delete 'configure) ;no configuration
0d197a63
TGR
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.
5882078e
EB
836 (lambda _
837 (substitute* "Scripts/fontbuilder.py"
838 (("xrange") "range"))
0d197a63
TGR
839 (substitute* "Scripts/features.py"
840 (("f\\.write\\(fea_code\\)")
841 "f.write(str.encode(fea_code))"))
5882078e 842 #t))
f85cafde
EB
843 (replace 'install
844 ;; 'make install' wants to install to ~/.fonts, install to
5882078e 845 ;; output instead. Install only the "Normal" variant.
f85cafde
EB
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")))
5882078e
EB
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)
857 #t)))))))
f85cafde
EB
858 (synopsis "Font family with a monospaced variant for programmers")
859 (description
860 "Fantasque Sans Mono is a programming font designed with functionality in
861mind. The font includes a bold version and a good italic version with new
862glyph designs, not just an added slant.")
863 (home-page "https://fontlibrary.org/en/font/fantasque-sans-mono")
864 (license license:silofl1.1)))
73c8d39c 865
866(define-public font-hack
867 (package
868 (name "font-hack")
9296d4b6 869 (version "3.003")
73c8d39c 870 (source (origin
8069f889 871 (method url-fetch/zipbomb)
73c8d39c 872 (uri (string-append
77aa706a
TGR
873 "https://github.com/source-foundry/Hack/releases/download/v"
874 version "/Hack-v" version "-ttf.zip"))
73c8d39c 875 (sha256
876 (base32
9296d4b6 877 "1b4hh8zkrx92m2v2vfkja1napb0192p0j3laqr0m018z3dih89hc"))))
8069f889 878 (build-system font-build-system)
73c8d39c 879 (home-page "https://sourcefoundry.org/hack/")
b4774d87 880 (synopsis "Typeface designed for source code")
73c8d39c 881 (description
b4774d87 882 "Hack is designed to be a workhorse typeface for code. It expands upon
d083a823 883the Bitstream Vera & DejaVu projects, provides over 1,500 glyphs, and includes
b4774d87 884Powerline support.")
77aa706a
TGR
885 (license
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")))))
6e1d7aa9
MB
891
892(define-public font-adobe-source-code-pro
893 (package
894 (name "font-adobe-source-code-pro")
895 (version "2.030R-ro-1.050R-it")
9aee5c45
TGR
896 (source
897 (origin
898 (method git-fetch)
899 (uri (git-reference
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))
906 (sha256
907 (base32 "0hc5kflr8xzqgdm0c3gbgb1paygznxmnivkylid69ipc7wnicx1n"))))
b41704cd 908 (build-system font-build-system)
6e1d7aa9
MB
909 (home-page "https://github.com/adobe-fonts/source-code-pro")
910 (synopsis
911 "Monospaced font family for user interface and coding environments")
912 (description
913 "Source Code Pro is a set of monospaced OpenType fonts that have been
914designed to work well in user interface environments.")
915 (license license:silofl1.1)))
c3e2a247 916
27e65afc
J
917(define-public font-adobe-source-sans-pro
918 (package
919 (name "font-adobe-source-sans-pro")
920 (version "2.040R-ro-1.090R-it")
ed08e4ec
TGR
921 (source
922 (origin
923 (method git-fetch)
924 (uri (git-reference
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))
931 (sha256
932 (base32 "1lzin2hfwidbvhps7shs201p1bpxy6220xmhhprv9fc8bknd4c45"))))
27e65afc
J
933 (build-system font-build-system)
934 (home-page "https://github.com/adobe-fonts/source-sans-pro")
935 (synopsis
936 "Sans serif font family for user interface environments")
937 (description
938 "Source Sans Pro is a set of OpenType fonts that have been designed to
939work well in user interface (UI) environments.")
940 (license license:silofl1.1)))
941
3cdd2e95
J
942(define-public font-adobe-source-serif-pro
943 (package
944 (name "font-adobe-source-serif-pro")
945 (version "2.007R-ro-1.007R-it")
31f41dbc
TGR
946 (source
947 (origin
948 (method git-fetch)
949 (uri (git-reference
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))
956 (sha256
957 (base32 "1vvzfhjpi47m84bzkapylkd5fri8bdm8qng2hiylmmlw0wk4gpas"))))
3cdd2e95
J
958 (build-system font-build-system)
959 (home-page "https://github.com/adobe-fonts/source-serif-pro")
960 (synopsis
961 "Serif typeface to complement Source Sans Pro for setting text")
962 (description
963 "Source Serif Pro is a set of OpenType fonts to complement the Source
964Sans Pro family.")
965 (license license:silofl1.1)))
966
c3e2a247
TR
967(define-public font-fira-mono
968 (package
969 (name "font-fira-mono")
970 (version "3.206")
971 (source (origin
972 (method url-fetch)
973 (uri (string-append "https://carrois.com/downloads/fira_mono_3_2/"
974 "FiraMonoFonts"
975 (string-replace-substring version "." "")
976 ".zip"))
977 (sha256
978 (base32
979 "1z65x0dw5dq6rs6p9wyfrir50rlh95vgzsxr8jcd40nqazw4jhpi"))))
3a722dde 980 (build-system font-build-system)
b253e7b9 981 (home-page "https://mozilla.github.io/Fira/")
c3e2a247
TR
982 (synopsis "Mozilla's monospace font")
983 (description "This is the typeface used by Mozilla in Firefox OS.")
984 (license license:silofl1.1)))
83421fc7 985
0ee27df0 986(define-public font-fira-sans
987 (package
988 (name "font-fira-sans")
989 (version "4.202")
990 (source (origin
c2426dbd
EF
991 (method git-fetch)
992 (uri (git-reference
993 (url "https://github.com/mozilla/Fira.git")
994 (commit version)))
995 (file-name (git-file-name name version))
0ee27df0 996 (sha256
997 (base32
c2426dbd 998 "116j26gdj5g1r124b4669372f7490vfjqw7apiwp2ggl0am5xd0w"))))
0ee27df0 999 (build-system font-build-system)
b253e7b9 1000 (home-page "https://mozilla.github.io/Fira/")
0ee27df0 1001 (synopsis "Mozilla's Fira Sans Font")
1002 (description "This is the typeface used by Mozilla in Firefox OS.")
1003 (license license:silofl1.1)))
1004
760e34b2 1005(define-public font-fira-code
1006 (package
1007 (name "font-fira-code")
76498783 1008 (version "1.206")
760e34b2 1009 (source (origin
1010 (method url-fetch/zipbomb)
1011 (uri (string-append "https://github.com/tonsky/FiraCode/releases/"
1012 "download/" version
1013 "/FiraCode_" version ".zip"))
1014 (sha256
1015 (base32
76498783 1016 "02r1lcp0c9135ps71v66wdvbsrcxwirrp0blqsa1xbjkkq2rwgj3"))))
760e34b2 1017 (build-system font-build-system)
1018 (home-page "https://mozilla.github.io/Fira/")
1019 (synopsis "Monospaced font with programming ligatures")
1020 (description
1021 "Fira Code is an extension of the Fira Mono font containing a set of ligatures
1022for common programming multi-character combinations. This is just a font rendering
1023feature: underlying code remains ASCII-compatible. This helps to read and understand
1024code faster. For some frequent sequences like .. or //, ligatures allow us to
1025correct spacing.")
1026 (license license:silofl1.1)))
1027
83421fc7
JMSG
1028(define-public font-awesome
1029 (package
1030 (name "font-awesome")
848b3749
LF
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>
1034 (version "4.7.0")
83421fc7 1035 (source (origin
6fc9c6f7
EF
1036 (method git-fetch)
1037 (uri (git-reference
1038 (url "https://github.com/FortAwesome/Font-Awesome.git")
1039 (commit (string-append "v" version))))
1040 (file-name (git-file-name name version))
83421fc7
JMSG
1041 (sha256
1042 (base32
6fc9c6f7 1043 "0w30y26jp8nvxa3iiw7ayl6rkza1rz62msl9xw3srvxya1c77grc"))))
278c608a 1044 (build-system font-build-system)
6fc9c6f7
EF
1045 (arguments
1046 '(#:phases
1047 (modify-phases %standard-phases
1048 (replace 'install
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)$"))
1059 #t))))))
1060 (home-page "https://fontawesome.com/")
83421fc7
JMSG
1061 (synopsis "Font that contains a rich iconset")
1062 (description
1063 "Font Awesome is a full suite of pictographic icons for easy scalable
1064vector graphics.")
1065 (license license:silofl1.1)))
446e1d51 1066
f2a7ce50 1067(define-public font-tamzen
1068 (package
1069 (name "font-tamzen")
1070 (version "1.11.4")
1071 (source
1072 (origin
1f07550c
EF
1073 (method git-fetch)
1074 (uri (git-reference
1075 (url "https://github.com/sunaku/tamzen-font.git")
1076 (commit (string-append "Tamzen-" version))))
1077 (file-name (git-file-name name version))
f2a7ce50 1078 (sha256
1079 (base32
1f07550c 1080 "17kgmvg6q32mqhx9g44hjvzv0si0mnpprga4z7na930g2zdd8846"))))
f2a7ce50 1081 (build-system trivial-build-system)
1082 (arguments
1083 `(#:modules ((guix build utils))
1084 #:builder
1085 (begin
1086 (use-modules (guix build utils))
1087
1f07550c
EF
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"))
f2a7ce50 1092 (mkdir-p font-dir)
1093 (mkdir-p psf-dir)
f2a7ce50 1094 (for-each (lambda (pcf)
1095 (install-file pcf font-dir))
1f07550c 1096 (find-files "pcf" "\\.pcf$"))
f2a7ce50 1097 (for-each (lambda (psf)
1098 (install-file psf psf-dir))
1f07550c 1099 (find-files "psf" "\\.psf$"))
f2a7ce50 1100 #t))))
f2a7ce50 1101 (home-page "https://github.com/sunaku/tamzen-font")
1102 (synopsis "Monospaced bitmap font for console and X11")
1103 (description
e16b44a2 1104 "Tamzen is a fork of the @code{Tamsyn} font. It is programmatically forked
f2a7ce50 1105from @code{Tamsyn} version 1.11, backporting glyphs from older versions while
1106deleting deliberately empty glyphs (which are marked as unimplemented) to
1107allow secondary/fallback fonts to provide real glyphs at those codepoints.
1108
1109The @code{TamzenForPowerline} fonts provide additional @code{Powerline} symbols,
e16b44a2 1110which are programmatically injected with @code{bitmap-font-patcher} and
f2a7ce50 1111later hand-tweaked with the gbdfed(1) editor:
1112
1113@enumerate
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.
1118@end enumerate\n")
1119 (license (license:non-copyleft "file://LICENSE"))))
1120
446e1d51
AG
1121(define-public font-comic-neue
1122 (package
b963d8c2 1123 (name "font-comic-neue")
7c3c6f3a
TGR
1124 ;; The ‘v2.3’ and ‘v2.4’ releases at https://github.com/crozynski/comicneue
1125 ;; are equivalent. The home page hosts 2.3, not 2.4, so we use that here.
b963d8c2
AG
1126 (version "2.3")
1127 (source (origin
1128 (method url-fetch/zipbomb)
1129 (uri (string-append
1130 "http://www.comicneue.com/comic-neue-" version ".zip"))
1131 (sha256
1132 (base32
1133 "1695hkpd8kqnr2a88p8xs496slgzxjjkzpa9aa33ml3pnh7519zk"))))
1134 (build-system font-build-system)
1135 (arguments
1136 `(#:phases
1137 (modify-phases %standard-phases
44636f57
AI
1138 ;; Delete Mac OS X specific files. If not deleted, these cause
1139 ;; several hidden files to be installed.
1140 (add-before 'install 'delete-macosx-files
1141 (lambda _
1142 (delete-file-recursively "__MACOSX")
1143 #t))
532f09df
AG
1144 (add-after 'install 'install-conf
1145 (lambda* (#:key outputs #:allow-other-keys)
1146 (let ((conf-dir (string-append (assoc-ref outputs "out")
1147 "/share/fontconfig/conf.avail")))
1148 (mkdir-p conf-dir)
1149 (call-with-output-file
1150 (string-append conf-dir "/30-comic-neue.conf")
1151 (lambda (port)
1152 (format port "<?xml version=\"1.0\"?>
1153<!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">
1154<fontconfig>
1155 <!-- If Comic Sans is missing, use Comic Neue instead. -->
1156 <alias>
1157 <family>Comic Sans MS</family>
1158 <prefer>
1159 <family>Comic Neue</family>
1160 </prefer>
1161 </alias>
1162</fontconfig>\n"))))
b963d8c2
AG
1163 #t)))))
1164 (home-page "http://www.comicneue.com/")
1165 (synopsis "Font that fixes the shortcomings of Comic Sans")
1166 (description
1167 "Comic Neue is a font that attempts to create a respectable casual
446e1d51 1168typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
b963d8c2 1169 (license license:silofl1.1)))
de191caf
AG
1170
1171(define-public font-iosevka
1172 (package
208abeca 1173 (name "font-iosevka")
a4893b38 1174 ;; When updating, also update the hash of the Iosevka variant(s) below.
d5971d66 1175 (version "2.3.3")
785747a9
TGR
1176 (source
1177 (origin
1178 (method url-fetch/zipbomb)
1179 (uri (string-append "https://github.com/be5invis/Iosevka"
1180 "/releases/download/v" version
1181 "/ttc-iosevka-" version ".zip"))
1182 (sha256
d5971d66 1183 (base32 "0jkv5rkg5hi0avhwyhcjiqzjslp6zjj77f09vxx2gj9l93byz731"))))
4a9140b1 1184 (build-system font-build-system)
208abeca
AG
1185 (home-page "https://be5invis.github.io/Iosevka/")
1186 (synopsis "Coders' typeface, built from code")
1187 (description
1188 "Iosevka is a slender monospace sans-serif or slab-serif typeface inspired
de191caf
AG
1189by Pragmata Pro, M+, and PF DIN Mono, designed to be the ideal font for
1190programming. Iosevka is completely generated from its source code.")
208abeca
AG
1191 (license (list license:silofl1.1 ; build artifacts (i.e. the fonts)
1192 license:bsd-3)))) ; supporting code
49dbae54 1193
c948cf90
TGR
1194(define-public font-iosevka-slab
1195 (package
1196 (inherit font-iosevka)
1197 (name "font-iosevka-slab")
1198 (version (package-version font-iosevka))
1199 (source
1200 (origin
1201 (method url-fetch/zipbomb)
1202 (uri (string-append "https://github.com/be5invis/Iosevka"
1203 "/releases/download/v" version
1204 "/ttc-iosevka-slab-" version ".zip"))
1205 (sha256
a4893b38 1206 (base32 "1rkmgi08kknc1fg54zpa6w92m3b3v7pc8cpwygz22kgd2h0mdrr8"))))))
c948cf90 1207
0673d55d
JS
1208(define-public font-iosevka-term
1209 (package
1210 (inherit font-iosevka)
1211 (name "font-iosevka-term")
1212 (version (package-version font-iosevka))
1213 (source
1214 (origin
1215 (method url-fetch/zipbomb)
1216 (uri (string-append "https://github.com/be5invis/Iosevka"
1217 "/releases/download/v" version
1218 "/02-iosevka-term-" version ".zip"))
1219 (sha256
1220 (base32
1221 "1mxlb3qf64nykjd0x4gjfvib3k5kyv9ssv9iyzxxgk2z80bydz00"))))
1222 (arguments
1223 `(#:phases
1224 (modify-phases %standard-phases
1225 (add-before 'install 'make-files-writable
1226 (lambda _
1227 (for-each make-file-writable (find-files "." ".*"))
1228 #t)))))))
1229
0161862d
JS
1230(define-public font-iosevka-term-slab
1231 (package
1232 (inherit font-iosevka)
1233 (name "font-iosevka-term-slab")
1234 (version (package-version font-iosevka))
1235 (source
1236 (origin
1237 (method url-fetch/zipbomb)
1238 (uri (string-append "https://github.com/be5invis/Iosevka"
1239 "/releases/download/v" version
1240 "/06-iosevka-term-slab-" version ".zip"))
1241 (sha256
1242 (base32
1243 "1gc16hih157qy6vpa8f88psq0fnksiigi3msqazc75zsm3z4kzqj"))))
1244 (arguments
1245 `(#:phases
1246 (modify-phases %standard-phases
1247 (add-before 'install 'make-files-writable
1248 (lambda _
1249 (for-each make-file-writable (find-files "." ".*"))
1250 #t)))))))
1251
49dbae54 1252(define-public font-go
406c46e2 1253 (let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
49dbae54
AG
1254 (revision "1"))
1255 (package
b6726480
AG
1256 (name "font-go")
1257 (version (string-append "20170330-" revision "." (string-take commit 7)))
1258 (source (origin
1259 (file-name (string-append "go-image-" version "-checkout"))
1260 (method git-fetch)
1261 (uri (git-reference
1262 (url "https://go.googlesource.com/image")
1263 (commit commit)))
1264 (sha256
1265 (base32
1266 "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
1267 (build-system font-build-system)
1268 (arguments
1269 `(#:phases
1270 (modify-phases %standard-phases
1271 (add-before 'install 'chdir
1272 (lambda _
1273 (chdir "font/gofont/ttfs")
1274 #t)))))
1275 (home-page "https://blog.golang.org/go-fonts")
1276 (synopsis "The Go font family")
1277 (description
1278 "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
49dbae54
AG
1279Holmes type foundry, released under the same license as the Go programming
1280language. It includes a set of proportional, sans-serif fonts, and a set of
1281monospace, slab-serif fonts.")
87f057c4 1282 (license license:bsd-3))))
824e5fe6
JMSG
1283
1284(define-public font-google-material-design-icons
1285 (package
99e9d598
AI
1286 (name "font-google-material-design-icons")
1287 (version "3.0.1")
1288 (source (origin
1e90e4b0
EF
1289 (method git-fetch)
1290 (uri (git-reference
1291 (url "https://github.com/google/material-design-icons.git")
1292 (commit version)))
1293 (file-name (git-file-name name version))
99e9d598
AI
1294 (sha256
1295 (base32
1e90e4b0 1296 "17q5brcqyyc8gbjdgpv38p89s60cwxjlwy2ljnrvas5cj0s62np0"))))
99e9d598 1297 (build-system font-build-system)
4fed9452 1298 (home-page "https://google.github.io/material-design-icons")
99e9d598
AI
1299 (synopsis "Icon font of Google Material Design icons")
1300 (description
1301 "Material design system icons are simple, modern, friendly, and sometimes
824e5fe6
JMSG
1302quirky. Each icon is created using our design guidelines to depict in simple
1303and minimal forms the universal concepts used commonly throughout a UI.
1304Ensuring readability and clarity at both large and small sizes, these icons
1305have been optimized for beautiful display on all common platforms and display
1306resolutions.")
99e9d598 1307 (license license:asl2.0)))
6bce5955 1308
30acf2f9 1309(define-public font-opendyslexic
abd8825f 1310 (package
30acf2f9
EF
1311 (name "font-opendyslexic")
1312 (version "0.91.12")
abd8825f 1313 (source
30acf2f9
EF
1314 (origin
1315 (method url-fetch/zipbomb)
1316 (uri (string-append "https://github.com/antijingoist/opendyslexic/"
1317 "releases/download/v" version
1318 "/opendyslexic-0.910.12-rc2-2019.10.17.zip"))
1319 (sha256
1320 (base32
1321 "11ml7v4iyf3hr0fbnkwz8afb8vi58wbcfnmn4gyvrwh9jk5pybdr"))))
abd8825f 1322 (build-system font-build-system)
30acf2f9
EF
1323 (native-inputs `(("unzip" ,unzip)))
1324 (home-page "https://opendyslexic.org/")
abd8825f 1325 (synopsis "Font for dyslexics and high readability")
1326 (description "OpenDyslexic is a font designed to help readability for some
1327of the symptoms of dyslexia. Letters have heavy weighted bottoms to provide
1328an indication of orientation to make it more difficult to confuse with other
1329similar letters. Consistently weighted bottoms can also help reinforce the
1330line of text. The unique shapes of each letter can help prevent flipping and
1331swapping. The italic style for OpenDyslexic has been crafted to be used for
1332emphasis while still being readable.")
30acf2f9
EF
1333 (license license:silofl1.1)))
1334
1335(define-public font-open-dyslexic
1336 (deprecated-package "font-open-dyslexic" font-opendyslexic))
27a10775 1337
1338(define-public font-dosis
1339 (package
1340 (name "font-dosis")
1341 (version "1.7")
1342 (source
1343 (origin
6aa4f09e 1344 (method url-fetch/zipbomb)
e48ae0bc
TGR
1345 (uri (string-append "https://web.archive.org/web/20180228233737/"
1346 "https://www.impallari.com/media/releases/dosis-"
27a10775 1347 "v" version ".zip"))
1348 (sha256
e48ae0bc 1349 (base32 "1qhci68f68mf87jd69vjf9qjq3wydgw1q7ivn3amjb65ls1s0c4s"))))
6aa4f09e 1350 (build-system font-build-system)
e48ae0bc
TGR
1351 (home-page (string-append "https://web.archive.org/web/20180228233737/"
1352 "https://www.impallari.com/dosis"))
27a10775 1353 (synopsis "Very simple, rounded, sans serif family")
1354 (description
1355 "Dosis is a very simple, rounded, sans serif family.
1356The lighter weights are minimalist. The bolder weights have more personality.
1357The medium weight is nice and balanced. The overall result is a family
1358that's clean and modern, and can express a wide range of voices & feelings.
1359It comes in 7 incremental weights:
1360ExtraLight, Light, Book, Medium, Semibold, Bold & ExtraBold")
1361 (license license:silofl1.1)))
f8602046 1362
733d66a5 1363(define-public font-culmus
f8602046 1364 (package
733d66a5 1365 (name "font-culmus")
cebec8bd 1366 (version "0.133")
f8602046 1367 (source
733d66a5
AI
1368 (origin
1369 (method url-fetch)
1370 (uri (string-append "https://sourceforge.net/projects/"
1371 "culmus/files/culmus/" version "/culmus-src-"
1372 version ".tar.gz"))
1373 (sha256
1374 (base32
cebec8bd 1375 "02akysgsqhi15cck54xcacm16q5raf4l7shgb8fnj7xr3c1pbfyp"))))
0328c514 1376 (build-system font-build-system)
f8602046 1377 (arguments
0328c514 1378 `(#:phases
f8602046 1379 (modify-phases %standard-phases
0328c514 1380 (add-before 'install 'build
f8602046
EF
1381 (lambda _
1382 (let ((compile
1383 (lambda (name ext)
0328c514
AI
1384 (invoke
1385 "fontforge" "-lang=ff"
1386 "-c" (string-append "Open('" name "');"
1387 "Generate('"
1388 (basename name "sfd") ext
1389 "')")))))
f8602046 1390 ;; This part based on the fonts shipped in the non-source package.
0328c514
AI
1391 (for-each (lambda (name)
1392 (compile name "ttf"))
1393 (find-files "." "^[^Nachlieli].*\\.sfd$"))
1394 (for-each (lambda (name)
1395 (compile name "otf"))
1396 (find-files "." "^Nachlieli.*\\.sfd$"))
f8602046
EF
1397 #t))))))
1398 (native-inputs
1399 `(("fontforge" ,fontforge)))
1400 (home-page "http://culmus.sourceforge.net/")
1401 (synopsis "TrueType Hebrew Fonts for X11")
1402 (description "14 Hebrew trivial families. Contain ASCII glyphs from various
1403sources. Those families provide a basic set of a serif (Frank Ruehl), sans
1404serif (Nachlieli) and monospaced (Miriam Mono) trivials. Also included Miriam,
1405Drugulin, Aharoni, David, Hadasim etc. Cantillation marks support is
1406available in Keter YG.")
1407 (license license:gpl2))) ; consult the LICENSE file included
4769ef00
AI
1408
1409(define-public font-lohit
1410 (package
1411 (name "font-lohit")
1412 (version "20140220")
1413 (source
1414 (origin
1415 (method url-fetch)
1416 (uri (string-append "https://releases.pagure.org/lohit/lohit-ttf-"
1417 version ".tar.gz"))
1418 (sha256
1419 (base32
1420 "1rmgr445hw1n851ywy28csfvswz1i6hnc8mzp88qw2xk9j4dn32d"))))
1421 (build-system font-build-system)
1422 (home-page "https://pagure.io/lohit")
1423 (synopsis "Lohit TrueType Indic fonts")
1424 (description "Lohit is a font family designed to cover Indic scripts.
1425Lohit supports the Assamese, Bengali, Devanagari (Hindi, Kashmiri, Konkani,
1426Maithili, Marathi, Nepali, Sindhi, Santali, Bodo, Dogri languages), Gujarati,
1427Kannada, Malayalam, Manipuri, Oriya, Punjabi, Tamil and Telugu scripts.")
1428 (license license:silofl1.1)))
f00d66b1
LC
1429
1430(define-public font-blackfoundry-inria
1431 (package
1432 (name "font-blackfoundry-inria")
1433 (version "1.200")
1434 (home-page "https://github.com/BlackFoundry/InriaFonts")
1435 (source (origin
1436 (method git-fetch)
1437 (uri (git-reference
1438 (url home-page)
1439 (commit (string-append "v" version))))
1440 (sha256
1441 (base32
1442 "06775y99lyh6hj5hzvrx56iybdck8a8xfqkipqd5c4cldg0a9hh8"))
1443 (file-name (string-append name "-" version "-checkout"))))
1444 ;; XXX: There are .ufo directories (the "source") so in theory we should
1445 ;; be able to rebuild TTF and OTF files with FontForge. Unfortunately a
1446 ;; command like:
1447 ;;
1448 ;; fontforge -lang=ff -c "Open('InriaSans-Regular.ufo'); Generate('foo.ttf');"
1449 ;;
1450 ;; segfaults in '_UFOLoadGlyph', which calls out to libpython. :-/
1451 ;; In the meantime we ship the precompiled OTF and TTF files.
1452 (build-system font-build-system)
1453 (synopsis "Inria Sans and Inria Serif type family")
1454 (description
1455 "Inria Sans and Inria Serif are the two members of a type family designed
1456for Inria, a public research institute in computer science and mathematics.")
1457 (license license:silofl1.1)))
1d641734
LC
1458
1459(define-public font-sil-gentium
1460 (package
1461 (name "font-sil-gentium")
1462 (version "5.000")
1463 (source (origin
1464 (method url-fetch)
1465 (uri (string-append
1466 "https://software.sil.org/downloads/r/gentium/GentiumPlus-"
1467 version ".zip"))
1468 (sha256
1469 (base32
1470 "0m7189870hha217n1vgpmf89mwggrxkh679ffi1lxpnjggqi2n9k"))))
1471 ;; Note: The zip file provides TTF files only, but the developer release,
1472 ;; which contains additional files, has a 'SOURCES.txt' file that says
1473 ;; that "the primary source files for the fonts are the fonts themselves".
1474 ;; Thus it looks like the TTF can be considered source.
1475 (build-system font-build-system)
1476 (synopsis "Serif font for the Cyrillic, Greek, and Latin alphabets")
1477 (description
1478 "Gentium is a typeface family designed to enable the diverse ethnic
1479groups around the world who use the Latin, Cyrillic and Greek scripts to
1480produce readable, high-quality publications. The font comes with regular and
1481italics shapes. This package provides only TrueType files (TTF).")
1482 (home-page "https://software.sil.org/gentium/")
1483 (license license:silofl1.1)))
46e78707 1484
4b360985
NG
1485(define-public font-sil-andika
1486 (package
1487 (name "font-sil-andika")
1488 (version "5.000")
1489 (source (origin
1490 (method url-fetch)
1491 (uri (string-append
1492 "https://software.sil.org/downloads/r/andika/Andika-"
1493 version ".zip"))
1494 (sha256
1495 (base32
1496 "01zm7p32gxfwmv7h3cfj2vx59846w2y6rxqy67grn2dyjh8pljv0"))))
1497 ;; As for Gentium (see above), the TTF files are considered source.
1498 (build-system font-build-system)
1499 (synopsis "Sans serif font designed especially for literacy use")
1500 (description
1501 "Andika SIL is a sans serif, Unicode-compliant font designed especially
1502for literacy use, taking into account the needs of beginning readers. The
1503focus is on clear, easy-to-perceive letterforms that will not be readily
1504confused with one another. This package provides only TrueType files (TTF).")
1505 (home-page "https://software.sil.org/andika/")
1506 (license license:silofl1.1)))
1507
46e78707
LC
1508(define-public font-sil-charis
1509 (package
1510 (name "font-sil-charis")
1511 (version "5.000")
1512 (source (origin
1513 (method url-fetch)
1514 (uri (string-append
1515 "https://software.sil.org/downloads/r/charis/CharisSIL-"
1516 version ".zip"))
1517 (sha256
1518 (base32
1519 "1zcvw37f1a7gkml3yfm6hxh93844llm7xj4w52600qq3ndrm8gjy"))))
1520 ;; As for Gentium (see above), the TTF files are considered source.
1521 (build-system font-build-system)
1522 (synopsis "Serif font for the Cyrillic and Latin alphabets")
1523 (description
1524 "Charis SIL is a Unicode-based font family that supports the wide range
1525of languages that use the Latin and Cyrillic scripts. It is specially
1526designed to make long texts pleasant and easy to read, even in less than ideal
1527reproduction and display environments. This package provides only TrueType
1528files (TTF).")
1529 (home-page "https://software.sil.org/charis/")
1530 (license license:silofl1.1)))
3c5e1364
GH
1531
1532(define-public font-mononoki
1533 (package
1534 (name "font-mononoki")
1535 (version "1.2")
1536 (source (origin
1537 (method git-fetch)
1538 (uri (git-reference
1539 (url "https://github.com/madmalik/mononoki/")
1540 (commit version)))
1541 (sha256
1542 (base32
1543 "1rkzyxn30rn8qv2h2xz324j7q15hzg2lci8790a7cdl1dfgic4xi"))
1544 (file-name (git-file-name name version))))
1545 (build-system font-build-system)
1546 (synopsis "Font for programming and code review")
1547 (description
1548 "Mononoki is a typeface by Matthias Tellen, created to enhance code
1549formatting.")
1550 (home-page "https://madmalik.github.io/mononoki/")
1551 (license license:silofl1.1)))
245aa0e3
J
1552
1553(define-public font-public-sans
1554 (package
1555 (name "font-public-sans")
6677f33d
TGR
1556 (version "1.008")
1557 (source
1558 (origin
1559 (method git-fetch)
1560 (uri (git-reference
1561 (url "https://github.com/uswds/public-sans.git")
1562 (commit (string-append "v" version))))
1563 (file-name (git-file-name name version))
1564 (sha256
1565 (base32 "1qhyxbjv1rnydfpqzd18fbiyz75p4sabphy8yj07hyq0hidp5xsf"))))
245aa0e3
J
1566 (build-system font-build-system)
1567 (home-page "https://public-sans.digital.gov/")
4c89dc35 1568 (synopsis "Neutral typeface for interfaces, text, and headings")
245aa0e3 1569 (description
4c89dc35
LC
1570 "Public Sans is a strong, neutral, sans-serif typeface for text or
1571display based on Libre Franklin.")
245aa0e3 1572 (license license:silofl1.1)))
50867421
Z
1573
1574(define-public font-hermit
1575 (package
1576 (name "font-hermit")
1577 (version "2.0")
1578 (source (origin
1731b297 1579 (method url-fetch/tarbomb)
50867421
Z
1580 (uri (string-append "https://pcaro.es/d/otf-hermit-" version
1581 ".tar.gz"))
1582 (sha256
1583 (base32
1584 "09rmy3sbf1j1hr8zidighjgqc8kp0wsra115y27vrnlf10ml6jy0"))))
1585 (build-system font-build-system)
1586 (arguments
1731b297 1587 `(#:tests? #f))
50867421
Z
1588 (home-page "https://pcaro.es/p/hermit/")
1589 (synopsis "Monospace font")
1590 (description
1591 "Hermit is a monospace font designed to be clear, pragmatic and very
1592readable. Its creation has been focused on programming. Every glyph was
1593carefully planned and calculated, according to defined principles and rules.
1594For this reason, Hermit is coherent and regular.
1595
1596Symbols stand out from common text. Dots and commas are easily seen, and
1597operators are clear even when not surrounded by spaces. Similar characters
1598have been designed to be very distinguishable from each other.")
1599 (license license:silofl1.1)))
600f680d
AT
1600
1601(define-public font-dseg
1602 (package
1603 (name "font-dseg")
1604 (version "0.45")
1605 (source
1606 (origin
1607 (method url-fetch/zipbomb)
1608 (uri
1609 (string-append "https://github.com/keshikan/DSEG/"
1610 "releases/download/v" version
1611 "/fonts-DSEG_v"
1612 (string-concatenate (string-split version #\.))
1613 ".zip"))
1614 (sha256
1615 (base32
1616 "0v8sghh4vl286faf8pvi74znz07pyf0qii8z4wjllisqwc35sx72"))))
1617 (build-system font-build-system)
1618 (arguments
1619 `(#:phases
1620 (modify-phases %standard-phases
1621 (replace 'install
1622 (lambda* (#:key outputs #:allow-other-keys)
1623 (let* ((out (assoc-ref outputs "out"))
1624 (font-dir (string-append out "/share/fonts"))
1625 (truetype-dir (string-append font-dir "/truetype")))
1626 (with-directory-excursion
1627 (string-append "fonts-DSEG_v"
1628 (apply string-append (string-split ,version
1629 #\.)))
1630 (for-each (lambda (f) (install-file f truetype-dir))
1631 (find-files "." "\\.ttf$"))
1632 #t)))))))
1633 (home-page "https://www.keshikan.net/fonts-e.html")
1634 (synopsis "DSEG: 7-segment and 14-segment fonts")
1635 (description
1636 "DSEG is a font family that imitates seven- and fourteen-segment LCD
1637displays (7SEG, 14SEG). DSEG includes the roman alphabet and symbol glyphs.
1638This package provides the TrueType fonts.")
1639 (license license:silofl1.1)))
200514cd
DC
1640
1641(define-public font-jetbrains-mono
1642 (package
1643 (name "font-jetbrains-mono")
3bf45ff4 1644 (version "1.0.3")
200514cd
DC
1645 (source
1646 (origin
1647 (method url-fetch)
1648 (uri
1649 (string-append "https://download.jetbrains.com/fonts/"
1650 "JetBrainsMono-" version ".zip"))
1651 (sha256
3bf45ff4 1652 (base32 "0zvhwmpdwpm4vywmm6i9a4najz0c7vfi411yikgkd66l5hwd1p6f"))))
200514cd
DC
1653 (build-system font-build-system)
1654 (home-page "https://www.jetbrains.com/lp/mono/")
1655 (synopsis "Mono typeface for developers")
1656 (description
1657 "JetBrains Mono is a font family dedicated to developers. JetBrains
1658Mono’s typeface forms are simple and free from unnecessary details. Rendered
1659in small sizes, the text looks crisper.")
1660 (license license:asl2.0)))
76a8dc3e
AB
1661
1662(define-public font-vazir
1663 (package
1664 (name "font-vazir")
1665 (version "22.1.0")
1666 (source
1667 (origin
1668 (method url-fetch/zipbomb)
1669 (uri
1670 (string-append "https://github.com/rastikerdar/vazir-font/"
1671 "releases/download/v" version
1672 "/vazir-font-v" version ".zip"))
1673 (sha256
1674 (base32
1675 "0w3gwb5q33x5llw7cfs8qhaxr4ssg6rsx4b9day3993zn24xq031"))))
1676 (build-system font-build-system)
1677 (home-page "https://rastikerdar.github.io/vazir-font/")
1678 (synopsis "Vazir Persian typeface")
1679 (description
1680 "Vazir is a beautiful and elegant Persian typeface originally based on
1681DejaVu, and comes in six variants: Thin, Light, Normal, Medium, Bold, and
1682Black. This package provides four versions of Vazir:
1683
1684@itemize
1685@item @code{Vazir}: The main version; includes Latin glyphs from Roboto.
1686@item @code{Vazir-FD}: Like @code{Vazir}, but (always) uses Farsi digit glyphs
1687instead of Latin ones.
1688@item @code{Vazir-WOL}: Like @code{Vazir}, but without Roboto's Latin glyphs.
1689@item @code{Vazir-FD-WOL}: Combination of @code{Vazir-FD} and @code{Vazir-WOL}:
1690always uses Farsi digits, and does not include Latin glyphs from Roboto.
1691@end itemize\n")
1692 (license
1693 ;; See https://github.com/rastikerdar/vazir-font/blob/master/LICENSE for
1694 ;; details.
1695 (list license:public-domain ; the Vazir modifications to DejaVu
1696 ; and the DejaVu modifications to...
1697 (license:x11-style ; ...the Bitstream Vera typeface
1698 "file://LICENSE" "Bitstream Vera License")
1699 license:asl2.0)))) ; Latin glyphs from Roboto
ed248424
AI
1700
1701(define-public font-meera-inimai
1702 (package
1703 (name "font-meera-inimai")
1704 (version "2.0")
1705 (source
1706 (origin
1707 (method git-fetch)
1708 (uri (git-reference
1709 (url "https://gitlab.com/smc/meera-inimai")
1710 (commit "0f39cdd7dbf1b6d1bed7df85834d33789dce20a7")))
1711 (file-name (git-file-name name version))
1712 (sha256
1713 (base32
1714 "1x5mhrpx24imh0r4l83mkaiszxgwi1q4ppyyvq63h3ddwk20cwdg"))))
1715 (build-system gnu-build-system)
1716 (native-inputs
1717 `(("fontforge" ,fontforge)
1718 ("harfbuzz" ,harfbuzz "bin")
1719 ("python" ,python-minimal)
1720 ("python-fonttools" ,python-fonttools)
1721 ("python-google-brotli" ,python-google-brotli)))
1722 (arguments
1723 `(#:make-flags (list "PY=python3"
1724 (string-append "DESTDIR=" %output)
1725 "fontpath=/share/fonts/truetype")
1726 #:test-target "test"
1727 #:phases
1728 (modify-phases %standard-phases
1729 (delete 'configure))))
1730 (home-page "https://gitlab.com/smc/meera-inimai")
1731 (synopsis "Meera Inimai Tamil font")
1732 (description "Meera Inimai is a Unicode font for the Tamil Script. Meera
1733Inimai is a san-serif typeface. It is best used as a screen font for body
1734text. It is also useful for body text of printed pamphlets or single page
1735designs. Meera Inimai can be thought of as similar to Helvetica and its
1736variation Arial. Tamil characters are inherently vertically-elliptical. The
1737orthography of Roman glyphs of Meera Inimai are also based on this
1738characteristic so that they sit smoothly with the Tamil glyphs.")
1739 (license license:silofl1.1)))