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