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