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