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