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