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