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