gnu: 0ad: Update to 0.0.22-alpha.
[jackhill/guix/guix.git] / gnu / packages / fonts.scm
CommitLineData
86f1537d 1;;; GNU Guix --- Functional package management for GNU
71be99b8 2;;; Copyright © 2013, 2014, 2015, 2016 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>
abd8825f 10;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
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>
fc19cee1 14;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
6e1d7aa9 15;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
c3e2a247 16;;; Copyright © 2016 Toni Reina <areina@riseup.net>
8837860c 17;;; Copyright © 2017 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>
840b7136 21;;; Copyright © 2017 Brendan Tildesley <brendan.tildesley@openmailbox.org>
6bce5955 22;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
86f1537d
AE
23;;;
24;;; This file is part of GNU Guix.
25;;;
26;;; GNU Guix is free software; you can redistribute it and/or modify it
27;;; under the terms of the GNU General Public License as published by
28;;; the Free Software Foundation; either version 3 of the License, or (at
29;;; your option) any later version.
30;;;
31;;; GNU Guix is distributed in the hope that it will be useful, but
32;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34;;; GNU General Public License for more details.
35;;;
36;;; You should have received a copy of the GNU General Public License
37;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
38
39(define-module (gnu packages fonts)
6e1d7aa9 40 #:use-module (ice-9 regex)
71be99b8 41 #:use-module (guix utils)
b5b73a82 42 #:use-module ((guix licenses) #:prefix license:)
86f1537d
AE
43 #:use-module (guix packages)
44 #:use-module (guix download)
49dbae54 45 #:use-module (guix git-download)
b2f89c19 46 #:use-module (guix build-system font)
d41bb065 47 #:use-module (guix build-system gnu)
86f1537d 48 #:use-module (guix build-system trivial)
56b7a338 49 #:use-module (gnu packages base)
d41bb065 50 #:use-module (gnu packages compression)
47268eec 51 #:use-module (gnu packages fontutils)
49dbae54 52 #:use-module (gnu packages golang)
d41bb065 53 #:use-module (gnu packages perl)
47268eec
AE
54 #:use-module (gnu packages pkg-config)
55 #:use-module (gnu packages python)
148585c2 56 #:use-module (gnu packages xorg))
86f1537d 57
477ac94b 58(define-public font-inconsolata
dede51a1
ED
59 (package
60 (name "font-inconsolata")
61 (version "0.80")
62 (source (origin
63 (method url-fetch)
64 (uri "http://www.levien.com/type/myfonts/Inconsolata.otf")
65 (sha256
66 (base32
67 "06js6znbcf7swn8y3b8ki416bz96ay7d3yvddqnvi88lqhbfcq8m"))))
b2f89c19 68 (build-system font-build-system)
dede51a1
ED
69 (home-page "http://levien.com/type/myfonts/inconsolata.html")
70 (synopsis "Monospace font")
71 (description "A monospace font, designed for code listings and the like,
72in print. With attention to detail for high resolution rendering.")
73 (license license:silofl1.1)))
74
e93b88f7
ED
75(define-public font-ubuntu
76 (package
77 (name "font-ubuntu")
29f9abb4 78 (version "0.83")
e93b88f7
ED
79 (source (origin
80 (method url-fetch)
29f9abb4
AK
81 (uri (string-append
82 "http://font.ubuntu.com/download/ubuntu-font-family-"
83 version ".zip"))
e93b88f7
ED
84 (sha256
85 (base32
29f9abb4 86 "0hjvq2x758dx0sfwqhzflns0ns035qm7h6ygskbx1svzg517sva5"))))
59786588 87 (build-system font-build-system)
e93b88f7
ED
88 (home-page "http://font.ubuntu.com/")
89 (synopsis "The Ubuntu Font Family")
90 (description "The Ubuntu Font Family is a unique, custom designed font
91that has a very distinctive look and feel. This package provides the
92TrueType (TTF) files.")
93 (license
94 (license:non-copyleft
95 "http://font.ubuntu.com/ufl/ubuntu-font-licence-1.0.txt"
96 "Ubuntu Font License v1.0"))))
97
5e6bdf06 98(define-public font-dejavu
72f210ea 99 (package
5e6bdf06 100 (name "font-dejavu")
d7284b6a 101 (version "2.37")
72f210ea
MW
102 (source (origin
103 (method url-fetch)
de67e922 104 (uri (string-append "mirror://sourceforge/dejavu/dejavu/"
72f210ea
MW
105 version "/dejavu-fonts-ttf-"
106 version ".tar.bz2"))
107 (sha256
108 (base32
d7284b6a 109 "1mqpds24wfs5cmfhj57fsfs07mji2z8812i5c4pi5pbi738s977s"))))
2e884019 110 (build-system font-build-system)
72f210ea 111 (arguments
2e884019
AI
112 `(#:phases
113 (modify-phases %standard-phases
114 (add-after 'install 'install-conf
115 (lambda* (#:key outputs #:allow-other-keys)
116 (let ((conf-dir (string-append (assoc-ref outputs "out")
117 "/share/fontconfig/conf.avail")))
118 (copy-recursively "fontconfig" conf-dir)))))))
72f210ea
MW
119 (home-page "http://dejavu-fonts.org/")
120 (synopsis "Vera font family derivate with additional characters")
121 (description "DejaVu provides an expanded version of the Vera font family
122aiming for quality and broader Unicode coverage while retaining the original
b4774d87 123Vera style. DejaVu currently works towards conformance to the Multilingual
72f210ea
MW
124European Standards (MES-1 and MES-2) for Unicode coverage. The DejaVu fonts
125provide serif, sans and monospaced variants.")
126 (license
127 (license:x11-style
128 "http://dejavu-fonts.org/"))))
129
5e6bdf06 130(define-public font-bitstream-vera
86f1537d 131 (package
5e6bdf06 132 (name "font-bitstream-vera")
86f1537d
AE
133 (version "1.10")
134 (source (origin
135 (method url-fetch)
136 (uri (string-append "mirror://gnome/sources/ttf-bitstream-vera/"
137 version "/ttf-bitstream-vera-"
138 version ".tar.bz2"))
139 (sha256
140 (base32
141 "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv"))))
e46e0de1 142 (build-system font-build-system)
07af3e5e 143 (home-page "http://www.gnome.org/fonts/")
86f1537d
AE
144 (synopsis "Bitstream Vera sans-serif typeface")
145 (description "Vera is a sans-serif typeface from Bitstream, Inc. This
146package provides the TrueType (TTF) files.")
147 (license
d5b09129
CL
148 (license:fsdg-compatible
149 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts"
150 "The Font Software may be sold as part of a larger software package but
151no copy of one or more of the Font Software typefaces may be sold by
152itself."))))
86f1537d 153
71be99b8
LC
154(define-public font-cantarell
155 (package
156 (name "font-abattis-cantarell")
b18e5945 157 (version "0.0.25")
71be99b8
LC
158 (source (origin
159 (method url-fetch)
160 (uri (string-append "mirror://gnome/sources/cantarell-fonts/"
161 (version-major+minor version)
162 "/cantarell-fonts-" version ".tar.xz"))
163 (sha256
164 (base32
b18e5945 165 "0zvkd8cm1cg2919v1js9qmzwa02sjl7qajj3gcvgqvai1fm2i8hl"))))
71be99b8
LC
166 (build-system gnu-build-system)
167 (home-page "https://wiki.gnome.org/Projects/CantarellFonts")
168 (synopsis "Cantarell sans-serif typeface")
169 (description "The Cantarell font family is a contemporary Humanist
170sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.")
171 (license license:silofl1.1)))
172
5e6bdf06 173(define-public font-gnu-freefont-ttf
86f1537d 174 (package
5e6bdf06 175 (name "font-gnu-freefont-ttf")
47268eec 176 (version "20120503")
86f1537d
AE
177 (source (origin
178 (method url-fetch)
47268eec 179 (uri (string-append "mirror://gnu/freefont/freefont-src-"
86f1537d
AE
180 version ".tar.gz"))
181 (sha256
182 (base32
47268eec
AE
183 "0yk58blhcd4hm7nyincmqq4jrzjjk82wif2zmk1l3y2m4vif4qhd"))))
184 (build-system gnu-build-system)
86f1537d 185 (arguments
47268eec
AE
186 `(#:phases (modify-phases %standard-phases
187 (delete 'configure)
188 (replace 'install
189 (lambda _
190 (let ((doc-dir (string-append %output "/share/doc/"
191 ,name "-" ,version))
192 (font-dir (string-append %output
193 "/share/fonts/truetype")))
194 (mkdir-p doc-dir)
195 (substitute* "Makefile"
196 (("\\$\\(TMPDIR\\)") doc-dir)
197 (("sfd/\\*.ttf") ""))
198 (system* "make" "ttftar")
199 (mkdir-p font-dir)
200 (for-each (lambda (file)
8837860c 201 (install-file file font-dir))
47268eec
AE
202 (filter
203 (lambda (file) (string-suffix? "ttf" file))
204 (find-files "." "")))))))
205 #:test-target "tests"))
206 ;; replace python 3 with python 2
207 ;; python 3 support commits aren't yet released in 20120503
208 ;; so freefont needs python 2 support in fontforge
209 (native-inputs `(("fontforge" ,(package (inherit fontforge)
210 (inputs `(("python-2" ,python-2)
211 ,@(package-inputs fontforge)))))))
6fd52309 212 (home-page "https://www.gnu.org/software/freefont/")
86f1537d
AE
213 (synopsis "Unicode-encoded outline fonts")
214 (description
215 "The GNU Freefont project aims to provide a set of free outline
216 (PostScript Type0, TrueType, OpenType...) fonts covering the ISO
21710646/Unicode UCS (Universal Character Set).")
63e8bb12
LC
218 (license license:gpl3+)
219 (properties '((upstream-name . "freefont")
220 (ftp-directory . "/gnu/freefont")))))
d41bb065 221
16191117
AK
222(define-public font-liberation
223 (package
224 (name "font-liberation")
225 (version "2.00.1")
226 (source (origin
227 (method url-fetch)
779669ab 228 (uri (string-append "https://releases.pagure.org/"
16191117
AK
229 "liberation-fonts/liberation-fonts-ttf-"
230 version ".tar.gz"))
231 (sha256
232 (base32
233 "010m4zfqan4w04b6bs9pm3gapn9hsb18bmwwgp2p6y6idj52g43q"))))
45d32e24 234 (build-system font-build-system)
779669ab 235 (home-page "https://pagure.io/liberation-fonts/")
16191117
AK
236 (synopsis
237 "Fonts compatible with Arial, Times New Roman, and Courier New")
238 (description
239 "The Liberation font family aims at metric compatibility with
240Arial, Times New Roman, and Courier New.
16191117
AK
241There are three sets:
242
0102fba2 243@enumerate
ec460a2a 244@item Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L, and
16191117 245Bitstream Vera Sans);
ec460a2a 246@item Serif (a substitute for Times New Roman, Thorndale, Nimbus Roman, and
16191117 247Bitstream Vera Serif);
ec460a2a 248@item Mono (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L,
16191117 249and Bitstream Vera Sans Mono).
0102fba2 250@end enumerate
16191117
AK
251
252The Liberation Fonts are sponsored by Red Hat.")
253 (license license:silofl1.1)))
254
d28fa5cc
RW
255(define-public font-linuxlibertine
256 (package
257 (name "font-linuxlibertine")
258 (version "5.3.0")
259 (source (origin
260 (method url-fetch/tarbomb)
261 (uri (string-append "mirror://sourceforge/linuxlibertine/"
262 "linuxlibertine/" version
263 "/LinLibertineSRC_" version "_2012_07_02.tgz"))
264 (sha256
265 (base32
266 "0x7cz6hvhpil1rh03rax9zsfzm54bh7r4bbrq8rz673gl9h47v0v"))))
267 (build-system gnu-build-system)
268 (arguments
269 `(#:tests? #f ; there are no tests
270 #:modules ((guix build utils)
271 (guix build gnu-build-system)
272 (srfi srfi-1)
273 (srfi srfi-26))
274 #:phases
275 (modify-phases %standard-phases
276 (delete 'configure)
277 (replace 'build
278 (lambda _
279 (let ((compile
280 (lambda (name ext)
281 (zero? (system*
282 "fontforge" "-lang=ff"
283 "-c" (string-append "Open('" name "');"
284 "Generate('"
285 (basename name "sfd") ext
286 "')"))))))
287 (every (lambda (name)
288 (and (compile name "ttf")
289 (compile name "otf")))
290 (find-files "." "\\.sfd$")))))
291 (replace 'install
292 (lambda* (#:key outputs #:allow-other-keys)
293 (let ((font-dir (string-append (assoc-ref outputs "out")
294 "/share/fonts/truetype")))
295 (mkdir-p font-dir)
296 (for-each (cut install-file <> font-dir)
297 (find-files "." "\\.(otf|ttf)$"))
298 #t))))))
299 (native-inputs
300 `(("fontforge" ,fontforge)))
301 (home-page "http://www.linuxlibertine.org/")
302 (synopsis "Serif and sans serif typefaces")
303 (description "The Linux Libertine fonts is a set of typefaces containing
304both a Serif version (\"Linux Libertine\") and a Sans Serif (\"Linux
305Biolinum\") designed to be used together as an alternative for Times/Times New
306Roman and Helvetica/Arial. The Serif typeface comes in two shapes and two
307weights, and with a Small Capitals version of the regular typeface. Linux
308Biolinum is available in both Regular and Bold weights.")
309 ;; The fonts are released under either of these licenses.
310 (license (list license:gpl2+ license:silofl1.1))))
311
5e6bdf06 312(define-public font-terminus
d41bb065 313 (package
5e6bdf06 314 (name "font-terminus")
acb38156 315 (version "4.40")
d41bb065
JG
316 (source
317 (origin
318 (method url-fetch)
319 (uri (string-append
0f971a04 320 "mirror://sourceforge/terminus-font/terminus-font-"
d41bb065
JG
321 version
322 "/terminus-font-"
323 version
324 ".tar.gz"))
325 (sha256
acb38156 326 (base32
327 "0487cyx5h1f0crbny5sg73a22gmym5vk1i7646gy7hgiscj2rxb4"))))
d41bb065
JG
328 (build-system gnu-build-system)
329 (native-inputs
330 `(("pkg-config" ,pkg-config)
331 ("perl" ,perl)
332 ("bdftopcf" ,bdftopcf)
b3546174 333 ("font-util" ,font-util)
d41bb065
JG
334 ("mkfontdir" ,mkfontdir)))
335 (arguments
336 `(#:configure-flags (list
337 ;; install fonts into subdirectory of package output
338 ;; instead of font-util-?.?.?/share/fonts/X11
339 (string-append "--with-fontrootdir="
340 %output "/share/fonts/X11"))
341 #:tests? #f)) ;; No test target in tarball
342 (home-page "http://terminus-font.sourceforge.net/")
343 (synopsis "Simple bitmap programming font")
b4774d87
TGR
344 (description "Terminus Font is a clean, fixed-width bitmap font, designed
345for long periods of working with computers (8 or more hours per day).")
380f2ab6 346 (license license:silofl1.1)))
692784dd
SB
347
348(define-public font-adobe-source-han-sans
349 (package
350 (name "font-adobe-source-han-sans")
2666a126 351 (version "1.004")
692784dd
SB
352 (source (origin
353 (method url-fetch)
354 (uri (string-append
355 "https://github.com/adobe-fonts/source-han-sans/archive/"
2666a126
SB
356 version "R.tar.gz"))
357 (file-name (string-append "source-han-sans-" version "R.tar.gz"))
692784dd
SB
358 (sha256
359 (base32
2666a126
SB
360 "1ssx0fw90sy6mj8fv8fv4dgzszpqwbmwpjnlx16g4pvaqzdmybbz"))))
361 (outputs '("out" ; OpenType/CFF Collection (OTC), 121 MiB.
692784dd
SB
362 "cn" "jp" "kr" "tw")) ; Region-specific Subset OpenType/CFF.
363 (build-system trivial-build-system)
364 (arguments
365 `(#:modules ((guix build utils))
366 #:builder
367 (begin
368 (use-modules (guix build utils))
369 (let ((tar (string-append (assoc-ref %build-inputs
370 "tar")
371 "/bin/tar"))
372 (PATH (string-append (assoc-ref %build-inputs
373 "gzip")
374 "/bin"))
375 (install-opentype-fonts
376 (lambda (fonts-dir out)
377 (copy-recursively fonts-dir
378 (string-append (assoc-ref %outputs out)
379 "/share/fonts/opentype")))))
380 (setenv "PATH" PATH)
381 (system* tar "xvf" (assoc-ref %build-inputs "source"))
2666a126 382 (chdir (string-append "source-han-sans-" ,version "R"))
692784dd
SB
383 (install-opentype-fonts "OTC" "out")
384 (install-opentype-fonts "SubsetOTF/CN" "cn")
385 (install-opentype-fonts "SubsetOTF/JP" "jp")
386 (install-opentype-fonts "SubsetOTF/KR" "kr")
2666a126
SB
387 (install-opentype-fonts "SubsetOTF/TW" "tw")
388 (for-each delete-file (find-files %output "\\.zip$"))))))
692784dd
SB
389 (native-inputs
390 `(("gzip" ,gzip)
391 ("tar" ,tar)))
392 (home-page "https://github.com/adobe-fonts/source-han-sans")
393 (synopsis "Pan-CJK fonts")
394 (description
395 "Source Han Sans is a sans serif Pan-CJK font family that is offered in
396seven weights: ExtraLight, Light, Normal, Regular, Medium, Bold, and Heavy.
397And in several OpenType/CFF-based deployment configurations to accommodate
398various system requirements or limitations. As the name suggests, Pan-CJK
399fonts are intended to support the characters necessary to render or display
e881752c 400text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.")
2666a126 401 (license license:silofl1.1)))
192b4802 402
840b7136
BT
403(define-public font-cns11643
404 (package
405 (name "font-cns11643")
ad37bed3 406 (version "98.1.20170524")
840b7136
BT
407 (source (origin
408 (method url-fetch)
409 (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
410 (sha256
411 (base32
ad37bed3 412 "1iad6rklxkx03ji1fav9faq7cmqkci3i6pcyg2ilvh984j5qzhq3"))))
8c5ad448 413 (build-system font-build-system)
840b7136
BT
414 (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
415 (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
416 (description
417 "@code{CNS 11643} character set (Chinese National Standard, or Chinese
418Standard Interchange Code) is the standard character set of the Republic of
419China (Taiwan) for Chinese Characters and other Unicode symbols. Contained
420are six TrueType fonts based on two script styles, Regular script (Kai), and
421Sung/Ming script, each with three variants:
422
423@itemize
424@item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thousands
425of CJK characters from frequency tables published by the Taiwanese
426Ministry of Education. ISO 10646 and Unicode compatible encoding.
427@item @code{Big-5 Plus}: Several thousand frequently used CJK characters
428encoded in the user defined area of the Big-5 code.
429@item @code{Big-5 Extended}: A Big-5 character set based on the
430@code{Big-5 Plus} and @code{CNS 11643} character sets.
431@end itemize\n")
432 (license (license:non-copyleft
433 "http://data.gov.tw/license")))) ; CC-BY 4.0 compatible
434
f3744a01
BT
435(define-public font-cns11643-swjz
436 (package
437 (name "font-cns11643-swjz")
438 (version "1")
439 (source
440 (origin
441 (method url-fetch)
442 (uri "https://www.moedict.tw/fonts/truetype/cns11643/ebas927.ttf")
443 (sha256
444 (base32
445 "1qkljldbmb53zp1rcmpsb8rzy67rnsqcjxi549m9743ifk4isl78"))))
a5ce48c8 446 (build-system font-build-system)
f3744a01
BT
447 (home-page
448 (string-append "http://www.cns11643.gov.tw/AIDB/download.do"
449 "?name=%E5%AD%97%E5%9E%8B%E4%B8%8B%E8%BC%89"))
450 (synopsis "TrueType seal script font")
451 (description
452 "@code{Shuowen Jiezi} is a TrueType seal script font based on the ancient
453text of the same name published by the Executive Yuan of Taiwan. 6721 glyphs
454are included, at Unicode compatible code points corresponding to their modern
455variants.")
456 ;; Original text only available in Chinese. More info at
457 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26703#11
458 (license (license:non-copyleft
459 "http://www.cns11643.gov.tw/AIDB/copyright.do"))))
460
192b4802
RW
461(define-public font-wqy-zenhei
462 (package
463 (name "font-wqy-zenhei")
464 (version "0.9.45")
465 (source (origin
466 (method url-fetch)
467 (uri (string-append
de67e922
LF
468 "mirror://sourceforge/wqy/wqy-zenhei/" version
469 "%20%28Fighting-state%20RC1%29/wqy-zenhei-"
192b4802
RW
470 version ".tar.gz"))
471 (file-name (string-append "wqy-zenhei-" version ".tar.gz"))
472 (sha256
473 (base32
474 "1mkmxq8g2hjcglb3zajfqj20r4r88l78ymsp2xyl5yav8w3f7dz4"))))
371ca85f 475 (build-system font-build-system)
192b4802
RW
476 (home-page "http://wenq.org/wqy2/")
477 (synopsis "CJK font")
478 (description
479 "WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese outline
480font. It is designed for general purpose text formatting and on-screen
481display of Chinese characters and symbols from many other languages.
b4774d87 482WenQuanYi Zen Hei provides a rather complete coverage of Chinese Hanzi glyphs,
192b4802
RW
483including both simplified and traditional forms. The total glyph number in
484this font is over 35,000, including over 21,000 Chinese Hanzi. This font has
b4774d87
TGR
485full coverage of the GBK (CP936) charset, CJK Unified Ideographs, as well as
486the code-points needed for zh_cn, zh_sg, zh_tw, zh_hk, zh_mo, ja (Japanese) and
487ko (Korean) locales for @code{fontconfig}.")
192b4802
RW
488 ;; GPLv2 with font embedding exception
489 (license license:gpl2)))
3f88152d 490
12b8f6b4
FS
491(define-public font-wqy-microhei
492 (package
493 (name "font-wqy-microhei")
494 (version "0.2.0-beta")
495 (source (origin
496 (method url-fetch)
497 (uri (string-append "mirror://sourceforge/wqy/wqy-microhei/"
498 version "/wqy-microhei-" version ".tar.gz"))
499 (sha256
500 (base32
501 "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8"))))
7fc6ce46 502 (build-system font-build-system)
12b8f6b4
FS
503 (home-page "http://wenq.org/wqy2/")
504 (synopsis "CJK font")
505 (description
506 "WenQuanYi Micro Hei is a Sans-Serif style (also known as Hei, Gothic or
507Dotum among the Chinese/Japanese/Korean users) high quality CJK outline font.
508It was derived from \"Droid Sans Fallback\" and \"Droid Sans\" released by
509Google Inc. This font contains all the unified CJK Han glyphs in the range of
510U+4E00-U+9FC3 defined in Unicode Standard 5.1, together with many other
511languages unicode blocks, including Latins, Extended Latins, Hanguls and
512Kanas. The font file is extremely compact (~4M) compared with most known CJK
513fonts.")
514 ;; This font is licensed under Apache2.0 or GPLv3 with font embedding
515 ;; exceptions.
516 (license license:gpl3)))
517
3f88152d
RW
518(define-public font-tex-gyre
519 (package
520 (name "font-tex-gyre")
521 (version "2.005")
522 (source
523 (origin
c226f06c 524 (method url-fetch/zipbomb)
3f88152d
RW
525 (uri (string-append "http://www.gust.org.pl/projects/e-foundry/"
526 "tex-gyre/whole/tg-" version "otf.zip"))
527 (sha256
528 (base32
529 "0kph9l3g7jb2bpmxdbdg5zl56wacmnvdvsdn7is1gc750sqvsn31"))))
c226f06c 530 (build-system font-build-system)
3f88152d
RW
531 (home-page "http://www.gust.org.pl/projects/e-foundry/tex-gyre/")
532 (synopsis "Remake of Ghostscript fonts")
533 (description "The TeX Gyre collection of fonts is the result of an
534extensive remake and extension of the freely available base PostScript fonts
535distributed with Ghostscript version 4.00. The collection contains the
536following fonts in the OpenType format: Adventor, Bonum, Chorus, Cursor,
537Heros, Pagella, Schola, Termes.")
538 (license license:gfl1.0)))
761b3d44
LF
539
540(define-public font-anonymous-pro
541 (package
542 (name "font-anonymous-pro")
543 (version "1.002")
544 (source (origin
545 (method url-fetch)
546 (uri (string-append
547 "http://www.marksimonson.com/assets/content/fonts/"
548 "AnonymousPro-" version ".zip"))
549 (sha256
550 (base32
551 "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
bbb1a1d2 552 (build-system font-build-system)
761b3d44
LF
553 (home-page "http://www.marksimonson.com/fonts/view/anonymous-pro")
554 (synopsis "Fixed-width fonts designed with coding in mind")
555 (description "Anonymous Pro is a family of four fixed-width fonts designed
556with coding in mind. Anonymous Pro features an international, Unicode-based
557character set, with support for most Western and Central European Latin-based
558languages, plus Greek and Cyrillic.")
559 (license license:silofl1.1)))
d032d965
SB
560
561(define-public font-gnu-unifont
562 (package
563 (name "font-gnu-unifont")
bc35c9d3 564 (version "10.0.05")
d032d965
SB
565 (source (origin
566 (method url-fetch)
567 (uri (string-append
df320991 568 "mirror://gnu/unifont/unifont-" version "/unifont-"
d032d965
SB
569 version ".tar.gz"))
570 (sha256
571 (base32
bc35c9d3 572 "07sajc32l2knnz6gmd81zxjhcxq8xr6r2kf42wig56vj05s3d1cb"))))
d032d965
SB
573 (build-system gnu-build-system)
574 (outputs '("out" ; TrueType version
575 "pcf" ; PCF (bitmap) version
576 "psf" ; PSF (console) version
577 "bin" ; Utilities to manipulate '.hex' format
578 ))
579 (arguments
580 '(#:parallel-build? #f ; parallel build fails
581 #:tests? #f ; no check target
582 #:phases
583 (modify-phases %standard-phases
c88bee0a
EF
584 (replace
585 'configure
586 (lambda _ (setenv "CC" "gcc") #t))
d032d965
SB
587 (replace
588 'install
589 (lambda* (#:key outputs #:allow-other-keys)
590 (let* ((ttf (string-append (assoc-ref outputs "out")
591 "/share/fonts/truetype"))
592 (pcf (string-append (assoc-ref outputs "pcf")
593 "/share/fonts/misc"))
594 (psf (string-append (assoc-ref outputs "psf")
595 "/share/consolefonts"))
596 (bin (assoc-ref outputs "bin")))
597 (system* "make"
598 (string-append "PREFIX=" bin)
599 (string-append "TTFDEST=" ttf)
600 (string-append "PCFDEST=" pcf)
601 (string-append "CONSOLEDEST=" psf)
602 "install")
603 ;; Move Texinfo file to the right place.
604 (mkdir (string-append bin "/share/info"))
605 (rename-file (string-append bin "/share/unifont/unifont.info.gz")
606 (string-append bin "/share/info/unifont.info.gz"))
607 #t))))))
608 (inputs
609 `(("perl" ,perl))) ; for utilities
610 (synopsis
611 "Large bitmap font covering Unicode's Basic Multilingual Plane")
612 (description
613 "GNU Unifont is a bitmap font covering essentially all of
614Unicode's Basic Multilingual Plane. The package also includes
615utilities to ease adding new glyphs to the font.")
616 (home-page "http://unifoundry.com/unifont.html")
fc19cee1 617 (properties '((upstream-name . "unifont")))
d032d965 618 (license license:gpl2+)))
b6ecac93
J
619
620(define-public font-google-noto
621 (package
622 (name "font-google-noto")
dd78efe3 623 (version "20170403")
b6ecac93
J
624 (source (origin
625 (method url-fetch)
dd78efe3 626 (uri (string-append "https://noto-website.storage.googleapis.com/"
b6ecac93
J
627 "pkgs/Noto-hinted.zip"))
628 (sha256
629 (base32
dd78efe3 630 "1p92a6dvs7wqwjfpp1ahr9z1wz35am0l8r78521383spd77bmrfm"))))
b6ecac93
J
631 (build-system trivial-build-system)
632 (arguments
633 `(#:modules ((guix build utils))
634 #:builder (begin
635 (use-modules (guix build utils)
636 (srfi srfi-26))
637
638 (let ((PATH (string-append (assoc-ref %build-inputs
639 "unzip")
640 "/bin"))
641 (font-dir (string-append %output
642 "/share/fonts/truetype")))
643 (setenv "PATH" PATH)
644 (system* "unzip" (assoc-ref %build-inputs "source"))
645
646 (mkdir-p font-dir)
647 (for-each (lambda (ttf)
8837860c 648 (install-file ttf font-dir))
b6ecac93
J
649 (find-files "." "\\.ttf$"))
650 (for-each (lambda (otf)
8837860c 651 (install-file otf font-dir))
b6ecac93
J
652 (find-files "." "\\.otf$"))))))
653 (native-inputs `(("unzip" ,unzip)))
654 (home-page "https://www.google.com/get/noto/")
b4774d87
TGR
655 (synopsis "Fonts to cover all languages")
656 (description "Google Noto Fonts is a family of fonts designed to support
657all languages with a consistent look and aesthetic. Its goal is to properly
658display all Unicode symbols.")
b6ecac93 659 (license license:silofl1.1)))
aae6b4b9 660
bb0756c7 661(define-public font-google-roboto
662 (package
663 (name "font-google-roboto")
664 (version "2.136")
665 (source
666 (origin
667 (method url-fetch)
668 (uri (string-append "https://github.com/google/roboto/releases/download/"
669 "v" version "/roboto-hinted.zip"))
670 (file-name (string-append name "-" version ".zip"))
671 (sha256
672 (base32
673 "0spscx08fad7i8qs7icns96iwcapniq8lwwqqvbf7bamvs8qfln4"))))
9713b31e 674 (build-system font-build-system)
bb0756c7 675 (home-page "https://github.com/google/roboto")
676 (synopsis "The Roboto family of fonts")
677 (description
678 "Roboto is Google’s signature family of fonts, the default font on Android
679and Chrome OS, and the recommended font for the
680visual language \"Material Design\".")
681 (license license:asl2.0)))
682
aae6b4b9 683(define-public font-un
684 (package
685 (name "font-un")
686 (version "1.0.2-080608")
aae6b4b9 687 (source (origin
688 (method url-fetch)
99a61dad 689 (uri (string-append
690 "https://kldp.net/unfonts/release/2607-"
691 "un-fonts-core-" version ".tar.gz"))
aae6b4b9 692 (file-name (string-append name "-" version ".tar.gz"))
693 (sha256
694 (base32
695 "13liaz2pmww3aqabm55la5npd08m1skh334ky7qfidxaz5s742iv"))))
6084d9b4 696 (build-system font-build-system)
aae6b4b9 697 (home-page "https://kldp.net/projects/unfonts/")
698 (synopsis "Collection of Korean fonts")
699 (description
700 "Un-fonts is a family of mainly Korean fonts.
701It contains the following fonts and styles:
702
703@enumerate
704@item UnBatang, UnBatangBold: serif;
705@item UnDotum, UnDotumBold: sans-serif;
706@item UnGraphic, UnGraphicBold: sans-serif style;
707@item UnDinaru, UnDinaruBold, UnDinaruLight;
708@item UnPilgi, UnPilgiBold: script;
709@item UnGungseo: cursive, brush-stroke.
710@end enumerate\n")
711 (license license:gpl2+)))
f85cafde
EB
712
713(define-public font-fantasque-sans
714 (package
715 (name "font-fantasque-sans")
716 (version "1.7.1")
717 (source
718 (origin
719 (method url-fetch)
720 (uri (string-append "https://github.com/belluzj/fantasque-sans/"
721 "archive/v" version ".tar.gz"))
722 (file-name (string-append name "-" version ".tar.gz"))
723 (sha256
724 (base32
725 "07fpy53k2x2nz5q61swkab6cfk9gw2kc4x4brsj6zjgbm16fap85"))))
726 (build-system gnu-build-system)
727 (native-inputs
728 `(("ttfautohint" ,ttfautohint)
729 ("woff-tools" ,woff-tools)
730 ("fontforge" ,fontforge)
731 ("woff2" ,woff2)
732 ("ttf2eot" ,ttf2eot)))
733 (arguments
734 `(#:tests? #f ;test target intended for visual inspection
735 #:phases (modify-phases %standard-phases
736 (delete 'configure) ;no configuration
737 (replace 'install
738 ;; 'make install' wants to install to ~/.fonts, install to
739 ;; output instead.
740 (lambda* (#:key outputs #:allow-other-keys)
741 (let* ((out (assoc-ref outputs "out"))
742 (font-dir (string-append out "/share/fonts"))
743 (truetype-dir (string-append font-dir "/truetype"))
744 (opentype-dir (string-append font-dir "/opentype"))
745 (webfonts-dir (string-append font-dir "/webfonts")))
746 (copy-recursively "OTF" opentype-dir)
747 (for-each (lambda (f) (install-file f truetype-dir))
748 (find-files "." "\\.ttf$"))
749 (copy-recursively "Webfonts" webfonts-dir)
750 #t))))))
751 (synopsis "Font family with a monospaced variant for programmers")
752 (description
753 "Fantasque Sans Mono is a programming font designed with functionality in
754mind. The font includes a bold version and a good italic version with new
755glyph designs, not just an added slant.")
756 (home-page "https://fontlibrary.org/en/font/fantasque-sans-mono")
757 (license license:silofl1.1)))
73c8d39c 758
759(define-public font-hack
760 (package
761 (name "font-hack")
762 (version "2.020")
763 (source (origin
8069f889 764 (method url-fetch/zipbomb)
73c8d39c 765 (uri (string-append
766 "https://github.com/chrissimpkins/Hack/releases/download/v"
767 version "/Hack-v"
768 (string-replace-substring version "." "_")
769 "-ttf.zip"))
770 (sha256
771 (base32
772 "16kkmc3psckw1b7k07ccn1gi5ymhlg9djh43nqjzg065g6p6d184"))))
8069f889 773 (build-system font-build-system)
73c8d39c 774 (home-page "https://sourcefoundry.org/hack/")
b4774d87 775 (synopsis "Typeface designed for source code")
73c8d39c 776 (description
b4774d87
TGR
777 "Hack is designed to be a workhorse typeface for code. It expands upon
778the Bitstream Vera & DejaVu projects, provides 1561 glyphs, and includes
779Powerline support.")
73c8d39c 780 (license (license:x11-style
781 "https://github.com/chrissimpkins/Hack/blob/master/LICENSE.md"
782 "Hack Open Font License v2.0"))))
6e1d7aa9
MB
783
784(define-public font-adobe-source-code-pro
785 (package
786 (name "font-adobe-source-code-pro")
787 (version "2.030R-ro-1.050R-it")
788 (source (origin
789 (method url-fetch)
790 (uri (string-append
791 "https://github.com/adobe-fonts/source-code-pro/archive/"
792 (regexp-substitute/global
793 ;; The upstream tag uses "/" between the roman and italic
794 ;; versions, so substitute our "-" separator here.
795 #f "R-ro-" version 'pre "R-ro/" 'post) ".tar.gz"))
796 (file-name (string-append name "-" version ".tar.gz"))
797 (sha256
798 (base32
799 "0arhhsf3i7ss39ykn73d1j8k4n8vx7115xph6jwkd970p1cxvr54"))))
b41704cd 800 (build-system font-build-system)
6e1d7aa9
MB
801 (home-page "https://github.com/adobe-fonts/source-code-pro")
802 (synopsis
803 "Monospaced font family for user interface and coding environments")
804 (description
805 "Source Code Pro is a set of monospaced OpenType fonts that have been
806designed to work well in user interface environments.")
807 (license license:silofl1.1)))
c3e2a247
TR
808
809(define-public font-fira-mono
810 (package
811 (name "font-fira-mono")
812 (version "3.206")
813 (source (origin
814 (method url-fetch)
815 (uri (string-append "https://carrois.com/downloads/fira_mono_3_2/"
816 "FiraMonoFonts"
817 (string-replace-substring version "." "")
818 ".zip"))
819 (sha256
820 (base32
821 "1z65x0dw5dq6rs6p9wyfrir50rlh95vgzsxr8jcd40nqazw4jhpi"))))
3a722dde 822 (build-system font-build-system)
c3e2a247
TR
823 (home-page "http://mozilla.github.io/Fira/")
824 (synopsis "Mozilla's monospace font")
825 (description "This is the typeface used by Mozilla in Firefox OS.")
826 (license license:silofl1.1)))
83421fc7
JMSG
827
828(define-public font-awesome
829 (package
830 (name "font-awesome")
831 (version "4.7.0")
832 (source (origin
833 (method url-fetch)
834 (uri (string-append "http://fontawesome.io/assets/"
835 name "-" version ".zip"))
836 (sha256
837 (base32
278c608a 838 "1m1rfwm4sjkv10j3xd2dhwk286a5912b2zgvc692cmxi5gxs68jf"))))
839 (build-system font-build-system)
83421fc7
JMSG
840 (home-page "http://fontawesome.io")
841 (synopsis "Font that contains a rich iconset")
842 (description
843 "Font Awesome is a full suite of pictographic icons for easy scalable
844vector graphics.")
845 (license license:silofl1.1)))
446e1d51 846
f2a7ce50 847(define-public font-tamzen
848 (package
849 (name "font-tamzen")
850 (version "1.11.4")
851 (source
852 (origin
853 (method url-fetch)
854 (uri (string-append "https://github.com/sunaku/tamzen-font/archive/"
855 "Tamzen-" version ".tar.gz"))
856 (file-name (string-append name "-" version ".tar.gz"))
857 (sha256
858 (base32
859 "1ryd7gp6qiwaqw73jqbmh4kwlriyd8xykh4j7z90z8xp9fm7lrys"))))
860 (build-system trivial-build-system)
861 (arguments
862 `(#:modules ((guix build utils))
863 #:builder
864 (begin
865 (use-modules (guix build utils))
866
867 (let ((tar (string-append (assoc-ref %build-inputs "tar")
868 "/bin/tar"))
869 (PATH (string-append (assoc-ref %build-inputs "gzip")
870 "/bin"))
871 (font-dir (string-append %output "/share/fonts/misc"))
872 (psf-dir (string-append %output "/share/kbd/consolefonts"))
873 (src-pcf-dir (string-append "tamzen-font-Tamzen-"
874 ,version "/pcf")))
875 (setenv "PATH" PATH)
876 (system* tar "xvf" (assoc-ref %build-inputs "source"))
877 (mkdir-p font-dir)
878 (mkdir-p psf-dir)
879 (chdir src-pcf-dir)
880 (for-each (lambda (pcf)
881 (install-file pcf font-dir))
882 (find-files "." "\\.pcf$"))
883 (chdir "../psf")
884 (for-each (lambda (psf)
885 (install-file psf psf-dir))
886 (find-files "." "\\.psf$"))
887 #t))))
888 (native-inputs
889 `(("tar" ,tar)
890 ("gzip" ,gzip)))
891 (home-page "https://github.com/sunaku/tamzen-font")
892 (synopsis "Monospaced bitmap font for console and X11")
893 (description
894 "Tamzen is a fork of the @code{Tamsyn} font. It is programatically forked
895from @code{Tamsyn} version 1.11, backporting glyphs from older versions while
896deleting deliberately empty glyphs (which are marked as unimplemented) to
897allow secondary/fallback fonts to provide real glyphs at those codepoints.
898
899The @code{TamzenForPowerline} fonts provide additional @code{Powerline} symbols,
900which are programatically injected with @code{bitmap-font-patcher} and
901later hand-tweaked with the gbdfed(1) editor:
902
903@enumerate
904@item all icons are expanded to occupy the maximum available space
905@item the branch of the fork icon ( U+E0A0) was made larger than the trunk
906@item for the newline icon ( U+E0A1), the @emph{N} was made larger at the bottom
907@item the keyhole in the padlock icon ( U+E0A2) was replaced with @emph{//} lines.
908@end enumerate\n")
909 (license (license:non-copyleft "file://LICENSE"))))
910
446e1d51
AG
911(define-public font-comic-neue
912 (package
b963d8c2
AG
913 (name "font-comic-neue")
914 (version "2.3")
915 (source (origin
916 (method url-fetch/zipbomb)
917 (uri (string-append
918 "http://www.comicneue.com/comic-neue-" version ".zip"))
919 (sha256
920 (base32
921 "1695hkpd8kqnr2a88p8xs496slgzxjjkzpa9aa33ml3pnh7519zk"))))
922 (build-system font-build-system)
923 (arguments
924 `(#:phases
925 (modify-phases %standard-phases
44636f57
AI
926 ;; Delete Mac OS X specific files. If not deleted, these cause
927 ;; several hidden files to be installed.
928 (add-before 'install 'delete-macosx-files
929 (lambda _
930 (delete-file-recursively "__MACOSX")
931 #t))
532f09df
AG
932 (add-after 'install 'install-conf
933 (lambda* (#:key outputs #:allow-other-keys)
934 (let ((conf-dir (string-append (assoc-ref outputs "out")
935 "/share/fontconfig/conf.avail")))
936 (mkdir-p conf-dir)
937 (call-with-output-file
938 (string-append conf-dir "/30-comic-neue.conf")
939 (lambda (port)
940 (format port "<?xml version=\"1.0\"?>
941<!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">
942<fontconfig>
943 <!-- If Comic Sans is missing, use Comic Neue instead. -->
944 <alias>
945 <family>Comic Sans MS</family>
946 <prefer>
947 <family>Comic Neue</family>
948 </prefer>
949 </alias>
950</fontconfig>\n"))))
b963d8c2
AG
951 #t)))))
952 (home-page "http://www.comicneue.com/")
953 (synopsis "Font that fixes the shortcomings of Comic Sans")
954 (description
955 "Comic Neue is a font that attempts to create a respectable casual
446e1d51 956typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
b963d8c2 957 (license license:silofl1.1)))
de191caf
AG
958
959(define-public font-iosevka
960 (package
208abeca
AG
961 (name "font-iosevka")
962 (version "1.12.5")
963 (source (origin
4a9140b1 964 (method url-fetch/zipbomb)
208abeca
AG
965 (uri (string-append
966 "https://github.com/be5invis/Iosevka/releases/download/v"
967 version "/iosevka-pack-" version ".zip"))
968 (sha256
969 (base32
970 "0s3g6mk0ngwsrw9h9dqinb50cd9i8zhqdcmmh93fhyf4d87yfwyi"))))
4a9140b1 971 (build-system font-build-system)
208abeca
AG
972 (home-page "https://be5invis.github.io/Iosevka/")
973 (synopsis "Coders' typeface, built from code")
974 (description
975 "Iosevka is a slender monospace sans-serif or slab-serif typeface inspired
de191caf
AG
976by Pragmata Pro, M+, and PF DIN Mono, designed to be the ideal font for
977programming. Iosevka is completely generated from its source code.")
208abeca
AG
978 (license (list license:silofl1.1 ; build artifacts (i.e. the fonts)
979 license:bsd-3)))) ; supporting code
49dbae54
AG
980
981(define-public font-go
406c46e2 982 (let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
49dbae54
AG
983 (revision "1"))
984 (package
b6726480
AG
985 (name "font-go")
986 (version (string-append "20170330-" revision "." (string-take commit 7)))
987 (source (origin
988 (file-name (string-append "go-image-" version "-checkout"))
989 (method git-fetch)
990 (uri (git-reference
991 (url "https://go.googlesource.com/image")
992 (commit commit)))
993 (sha256
994 (base32
995 "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
996 (build-system font-build-system)
997 (arguments
998 `(#:phases
999 (modify-phases %standard-phases
1000 (add-before 'install 'chdir
1001 (lambda _
1002 (chdir "font/gofont/ttfs")
1003 #t)))))
1004 (home-page "https://blog.golang.org/go-fonts")
1005 (synopsis "The Go font family")
1006 (description
1007 "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
49dbae54
AG
1008Holmes type foundry, released under the same license as the Go programming
1009language. It includes a set of proportional, sans-serif fonts, and a set of
1010monospace, slab-serif fonts.")
b6726480 1011 (license (package-license go-1.4)))))
824e5fe6
JMSG
1012
1013(define-public font-google-material-design-icons
1014 (package
99e9d598
AI
1015 (name "font-google-material-design-icons")
1016 (version "3.0.1")
1017 (source (origin
1018 (method url-fetch)
1019 (uri (string-append
1020 "https://github.com/google/material-design-icons/archive/"
824e5fe6 1021 version ".tar.gz"))
99e9d598
AI
1022 (sha256
1023 (base32
1024 "183n0qv3q8w6n27libarq1fhc4mqv2d3sasbfmbn7x9r5pw9c6ga"))
1025 (file-name (string-append name "-" version ".tar.gz"))))
1026 (build-system font-build-system)
1027 (home-page "http://google.github.io/material-design-icons")
1028 (synopsis "Icon font of Google Material Design icons")
1029 (description
1030 "Material design system icons are simple, modern, friendly, and sometimes
824e5fe6
JMSG
1031quirky. Each icon is created using our design guidelines to depict in simple
1032and minimal forms the universal concepts used commonly throughout a UI.
1033Ensuring readability and clarity at both large and small sizes, these icons
1034have been optimized for beautiful display on all common platforms and display
1035resolutions.")
99e9d598 1036 (license license:asl2.0)))
6bce5955
AI
1037
1038(define-public font-mathjax
1039 (package
1040 (name "font-mathjax")
1041 (version "2.7.1")
1042 (source
1043 (origin
1044 (method url-fetch)
1045 (uri (string-append
1046 "https://github.com/mathjax/MathJax/archive/"
1047 version ".tar.gz"))
1048 (file-name (string-append name "-" version ".tar.gz"))
1049 (sha256
1050 (base32
1051 "0sbib5lk0jrvbq6s72ag6ss3wjlz5wnk07ddxij1kp96yg3c1d1b"))))
1052 (build-system trivial-build-system)
1053 (arguments
1054 `(#:modules ((guix build utils))
1055 #:builder
1056 (begin
1057 (use-modules (guix build utils)
1058 (ice-9 match))
1059 (set-path-environment-variable
1060 "PATH" '("bin") (map (match-lambda
1061 ((_ . input)
1062 input))
1063 %build-inputs))
1064 (let ((install-directory (string-append %output "/share/fonts/mathjax")))
1065 (mkdir-p install-directory)
1066 (zero? (system* "tar" "-C" install-directory "-xvf"
1067 (assoc-ref %build-inputs "source")
1068 "MathJax-2.7.1/fonts" "--strip" "2"))))))
1069 (native-inputs
1070 `(("gzip" ,gzip)
1071 ("tar" ,tar)))
1072 (home-page "https://www.mathjax.org/")
1073 (synopsis "Fonts for MathJax")
1074 (description "This package contains the fonts required for MathJax.")
1075 (license license:asl2.0)))
abd8825f 1076
1077(define-public font-open-dyslexic
1078 (package
1079 (name "font-open-dyslexic")
1080 (version "20160623")
1081 (source
1082 (origin
1083 (method url-fetch)
1084 (uri (string-append "https://github.com/antijingoist/open-dyslexic/"
1085 "archive/" version "-Stable.tar.gz"))
1086 (file-name (string-append name "-" version ".tar.gz"))
1087 (sha256
1088 (base32
1089 "0al0j9kb32kfavcpq1kigsd36yzvf5yhzqhds0jkh7ngbxyxwkx4"))))
1090 (build-system font-build-system)
1091 (home-page "https://opendyslexic.org")
1092 (synopsis "Font for dyslexics and high readability")
1093 (description "OpenDyslexic is a font designed to help readability for some
1094of the symptoms of dyslexia. Letters have heavy weighted bottoms to provide
1095an indication of orientation to make it more difficult to confuse with other
1096similar letters. Consistently weighted bottoms can also help reinforce the
1097line of text. The unique shapes of each letter can help prevent flipping and
1098swapping. The italic style for OpenDyslexic has been crafted to be used for
1099emphasis while still being readable.")
1100 (license
1101 (license:fsdg-compatible
1102 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts"
1103 "The Font Software may be sold as part of a larger software package but
1104no copy of one or more of the Font Software typefaces may be sold by
1105itself."))))