12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294 |
- ;;; GNU Guix --- Functional package management for GNU
- ;;; Copyright © 2013, 2014, 2015, 2016, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
- ;;; Copyright © 2014, 2017 Mark H Weaver <mhw@netris.org>
- ;;; Copyright © 2014 Joshua Grant <tadni@riseup.net>
- ;;; Copyright © 2014 Alex Kost <alezost@gmail.com>
- ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
- ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
- ;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
- ;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
- ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
- ;;; Copyright © 2016 Jookia <166291@gmail.com>
- ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
- ;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
- ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
- ;;; Copyright © 2016, 2020 Marius Bakke <mbakke@fastmail.com>
- ;;; Copyright © 2016 Toni Reina <areina@riseup.net>
- ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
- ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com>
- ;;; Copyright © 2017 Alex Griffin <a@ajgrf.com>
- ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
- ;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
- ;;; Copyright © 2017, 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
- ;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
- ;;; Copyright © 2018 Charlie Ritter <chewzerita@posteo.net>
- ;;; Copyright © 2018 Gabriel Hondet <gabrielhondet@gmail.com>
- ;;; Copyright © 2019, 2020 Jens Mølgaard <jens@zete.tk>
- ;;; Copyright © 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
- ;;; Copyright © 2019 Baptiste Strazzulla <bstrazzull@hotmail.fr>
- ;;; Copyright © 2019 Alva <alva@skogen.is>
- ;;; Copyright © 2019 Alexandros Theodotou <alex@zrythm.org>
- ;;; Copyright © 2020 Damien Cassou <damien@cassou.me>
- ;;; Copyright © 2020 Amin Bandali <bandali@gnu.org>
- ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
- ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
- ;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
- ;;; Copyright © 2020, 2021 Julien Lepiller <julien@lepiller.eu>
- ;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
- ;;; Copyright © 2020 Simen Endsjø <simendsjo@gmail.com>
- ;;; Copyright © 2020 Tim Van den Langenbergh <tmt_vdl@gmx.com>
- ;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
- ;;; Copyright © 2021 Antoine Côté <antoine.cote@posteo.net>
- ;;; Copyright © 2021 Sergiu Ivanov <sivanov@colimite.fr>
- ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
- ;;; Copyright © 2021 Paul A. Patience <paul@apatience.com>
- ;;;
- ;;; This file is part of GNU Guix.
- ;;;
- ;;; GNU Guix is free software; you can redistribute it and/or modify it
- ;;; under the terms of the GNU General Public License as published by
- ;;; the Free Software Foundation; either version 3 of the License, or (at
- ;;; your option) any later version.
- ;;;
- ;;; GNU Guix is distributed in the hope that it will be useful, but
- ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
- ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ;;; GNU General Public License for more details.
- ;;;
- ;;; You should have received a copy of the GNU General Public License
- ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
- (define-module (gnu packages fonts)
- #:use-module (ice-9 regex)
- #:use-module (guix utils)
- #:use-module ((guix licenses) #:prefix license:)
- #:use-module (guix packages)
- #:use-module (guix download)
- #:use-module (guix git-download)
- #:use-module (guix build-system font)
- #:use-module (guix build-system gnu)
- #:use-module (guix build-system meson)
- #:use-module (guix build-system trivial)
- #:use-module (gnu packages base)
- #:use-module (gnu packages bash)
- #:use-module (gnu packages compression)
- #:use-module (gnu packages fontutils)
- #:use-module (gnu packages gettext)
- #:use-module (gnu packages glib)
- #:use-module (gnu packages gtk)
- #:use-module (gnu packages perl)
- #:use-module (gnu packages pkg-config)
- #:use-module (gnu packages python)
- #:use-module (gnu packages python-xyz)
- #:use-module (gnu packages xorg))
- (define-public font-ibm-plex
- (package
- (name "font-ibm-plex")
- (version "5.1.3")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "https://github.com/IBM/plex/releases/download/"
- "v" version "/OpenType.zip"))
- (sha256
- (base32
- "0zlz8kxx54i4hpgaip9690bilvn5w14gp7jjkk6cz4h9p3xml231"))))
- (build-system font-build-system)
- (home-page "https://github.com/IBM/plex")
- (synopsis "IBM Plex typeface")
- (description "This package provides the Plex font family. It comes in a
- Sans, Serif, Mono and Sans Condensed, all with roman and true italics. The
- fonts have been designed to work well in user interface (UI) environments as
- well as other mediums.")
- (license license:silofl1.1)))
- (define-public font-inconsolata
- (package
- (name "font-inconsolata")
- (version "3.000")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "https://github.com/googlefonts/Inconsolata/"
- "releases/download/v" version "/fonts_otf.zip"))
- (sha256
- (base32 "1wavvv86nwsqm5sbmnkv1bprj7l7zdrkxpvjy6w8yag93k6hrlx1"))))
- (build-system font-build-system)
- (home-page "https://levien.com/type/myfonts/inconsolata.html")
- (synopsis "Monospace font")
- (description "A monospace font, designed for code listings and the like,
- in print. With attention to detail for high resolution rendering.")
- (license license:silofl1.1)))
- (define-public font-dejavu
- (package
- (name "font-dejavu")
- (version "2.37")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://sourceforge/dejavu/dejavu/"
- version "/dejavu-fonts-ttf-"
- version ".tar.bz2"))
- (sha256
- (base32
- "1mqpds24wfs5cmfhj57fsfs07mji2z8812i5c4pi5pbi738s977s"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'install 'install-conf
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((conf-dir (string-append (assoc-ref outputs "out")
- "/share/fontconfig/conf.avail")))
- (copy-recursively "fontconfig" conf-dir)
- #t))))))
- (home-page "https://dejavu-fonts.github.io/")
- (synopsis "Vera font family derivate with additional characters")
- (description "DejaVu provides an expanded version of the Vera font family
- aiming for quality and broader Unicode coverage while retaining the original
- Vera style. DejaVu currently works towards conformance to the Multilingual
- European Standards (MES-1 and MES-2) for Unicode coverage. The DejaVu fonts
- provide serif, sans and monospaced variants.")
- (license
- (license:x11-style
- "http://dejavu-fonts.org/"))))
- (define-public font-bitstream-vera
- (package
- (name "font-bitstream-vera")
- (version "1.10")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/ttf-bitstream-vera/"
- version "/ttf-bitstream-vera-"
- version ".tar.bz2"))
- (sha256
- (base32
- "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv"))))
- (build-system font-build-system)
- (home-page "https://www.gnome.org/fonts/")
- (synopsis "Bitstream Vera sans-serif typeface")
- (description "Vera is a sans-serif typeface from Bitstream, Inc. This
- package provides the TrueType (TTF) files.")
- (license
- (license:fsdg-compatible
- "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts"
- "The Font Software may be sold as part of a larger software package but
- no copy of one or more of the Font Software typefaces may be sold by
- itself."))))
- (define-public font-canada1500
- (package
- (name "font-canada1500")
- (version "1.101")
- (source (origin
- (method url-fetch)
- (uri "https://typodermicfonts.com/wp-content/uploads/2017/06/canada1500.zip")
- (sha256
- (base32
- "0cdcb89ab6q7b6jd898bnvrd1sifbd2xr42qgji98h8d5cq4b6fp"))))
- (build-system font-build-system)
- (home-page "https://typodermicfonts.com/canada1500/")
- (synopsis "Canadian typeface that supports English, French and Aboriginal languages")
- (description "Canada1500 is a display typeface originally created for the
- Canadian sesquicentennial with four weights, italics and space symbols which
- includes lining and old-style numerals, tabular and proportional. Greek,
- Cyrillic, Canadian Syllabics and most Latin based languages are supported.")
- (license license:cc0)))
- (define-public font-abattis-cantarell
- (package
- (name "font-abattis-cantarell")
- (version "0.303")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://gitlab.gnome.org/GNOME/cantarell-fonts/-/"
- "jobs/1515399/artifacts/download"))
- (file-name (string-append name "-" version "-static"))
- (sha256
- (base32 "1dz551xrrhx6l40j57ksk2alllrihghg4947z1r88dpcq3snpn1s"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'unpack-source
- ;; The actual OTF fonts are prebuilt (building them requires at least
- ;; the currently unpackaged psautohint and its numerous dependencies;
- ;; TODO), but unpack the source so that COPYING is installed later.
- (lambda* (#:key outputs #:allow-other-keys)
- (invoke "tar" "--strip-components=1" "-xvf"
- (string-append "build/meson-dist/cantarell-fonts-"
- ,version ".tar.xz"))))
- (add-after 'unpack 'unpack-variable-font
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((variable-font (assoc-ref inputs "variable-font")))
- (copy-recursively (string-append variable-font "/prebuilt")
- ".")))))))
- (native-inputs
- `(("variable-font"
- ,(origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://gitlab.gnome.org/GNOME/cantarell-fonts/-/"
- "jobs/1515398/artifacts/download"))
- (file-name (string-append name "-" version "-variable"))
- (sha256
- (base32 "0z93pbkxidsx3y98rsl2jm2qpvxv5pj0w870xhnsciglw6pc9a9i"))))
- ("unzip" ,unzip)))
- (home-page "https://wiki.gnome.org/Projects/CantarellFonts")
- (synopsis "Cantarell sans-serif typeface")
- (description "The Cantarell font family is a contemporary Humanist
- sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.")
- (license license:silofl1.1)))
- (define-public font-lato
- (package
- (name "font-lato")
- (version "2.015") ; also update description
- (source (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://www.latofonts.com/download/Lato2OFL.zip"))
- (sha256
- (base32
- "1f5540g0ja1nx3ddd3ywn77xc81ssrxpq8n3gyb9sabyq2b4xda2"))))
- (build-system font-build-system)
- (home-page "https://www.latofonts.com/lato-free-fonts/")
- (synopsis "Lato sans-serif typeface")
- (description
- "Lato is a sanserif typeface family. It covers over 3000 glyphs per style.
- The Lato 2.010 family supports more than 100 Latin-based languages, over
- 50 Cyrillic-based languages as well as Greek and IPA phonetics.")
- (license license:silofl1.1)))
- (define-public font-gnu-freefont
- (package
- (name "font-gnu-freefont")
- ;; Note: Remove the special FontForge input and package once the 2020
- ;; release is out.
- (version "20120503")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/freefont/freefont-src-"
- version ".tar.gz"))
- (sha256
- (base32
- "0yk58blhcd4hm7nyincmqq4jrzjjk82wif2zmk1l3y2m4vif4qhd"))))
- (build-system gnu-build-system)
- (arguments
- `(#:phases (modify-phases %standard-phases
- (delete 'configure)
- (replace 'install
- (lambda _
- (let ((doc-dir (string-append %output "/share/doc/"
- ,name "-" ,version))
- (ttf-font-dir (string-append %output
- "/share/fonts/truetype"))
- (otf-font-dir (string-append %output
- "/share/fonts/opentype"))
- (woff-font-dir (string-append %output
- "/share/fonts/webfonts")))
- (mkdir-p doc-dir)
- (substitute* "Makefile"
- (("\\$\\(TMPDIR\\)") doc-dir)
- (("sfd/\\*.ttf") "")
- (("sfd/\\*.otf") "")
- (("sfd/\\*.woff") ""))
- ;; XXX The FreeFont Makefile tries to use the current
- ;; time and date as names for generated files, and fails
- ;; silently. But the fonts are still installed, so we
- ;; leave the issue alone for now.
- ;; See <https://bugs.gnu.org/40783>
- (system* "make" "ttftar" "otftar" "wofftar")
- (mkdir-p ttf-font-dir)
- (mkdir-p otf-font-dir)
- (mkdir-p woff-font-dir)
- (for-each (lambda (file)
- (install-file file ttf-font-dir))
- (filter
- (lambda (file) (string-suffix? "ttf" file))
- (find-files "." "")))
- (for-each (lambda (file)
- (install-file file otf-font-dir))
- (filter
- (lambda (file) (string-suffix? "otf" file))
- (find-files "." "")))
- (for-each (lambda (file)
- (install-file file woff-font-dir))
- (filter
- (lambda (file) (string-suffix? "woff" file))
- (find-files "." "")))))))
- #:test-target "tests"))
- ;; FreeFont anno 2012 requires a FontForge built with Python 2.
- (native-inputs `(("fontforge" ,fontforge-20190801)))
- (home-page "https://www.gnu.org/software/freefont/")
- (synopsis "Unicode-encoded outline fonts")
- (description
- "The GNU Freefont project aims to provide a set of free outline
- (PostScript Type0, TrueType, OpenType...) fonts covering the ISO
- 10646/Unicode UCS (Universal Character Set).")
- (license license:gpl3+)
- (properties '((upstream-name . "freefont")
- (ftp-directory . "/gnu/freefont")))))
- (define-public font-gnu-freefont-ttf
- (deprecated-package "font-gnu-freefont-ttf" font-gnu-freefont))
- (define-public font-liberation
- (package
- (name "font-liberation")
- (version "2.1.5")
- (source
- (origin
- (method url-fetch)
- (uri (string-append
- "https://github.com/liberationfonts/liberation-fonts/"
- "files/7261482/liberation-fonts-ttf-" version ".tar.gz"))
- (sha256
- (base32 "1l15iwk0x75621q67qlh9wv561c0gc7x0kh9l9rrz29qpxlwd4bi"))))
- (build-system font-build-system)
- (home-page "https://github.com/liberationfonts")
- (synopsis "Fonts compatible with Arial, Times New Roman, and Courier New")
- (description
- "The Liberation font family aims at metric compatibility with
- Arial, Times New Roman, and Courier New.
- There are three sets:
- @enumerate
- @item Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L, and
- Bitstream Vera Sans);
- @item Serif (a substitute for Times New Roman, Thorndale, Nimbus Roman, and
- Bitstream Vera Serif);
- @item Mono (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L,
- and Bitstream Vera Sans Mono).
- @end enumerate\n")
- (license license:silofl1.1)))
- (define-public font-linuxlibertine
- (package
- (name "font-linuxlibertine")
- (version "5.3.0")
- (source (origin
- (method url-fetch/tarbomb)
- (uri (string-append "mirror://sourceforge/linuxlibertine/"
- "linuxlibertine/" version
- "/LinLibertineSRC_" version "_2012_07_02.tgz"))
- (sha256
- (base32
- "0x7cz6hvhpil1rh03rax9zsfzm54bh7r4bbrq8rz673gl9h47v0v"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'build
- (lambda _
- (let ((compile
- (lambda (name ext)
- (invoke
- "fontforge" "-lang=ff"
- "-c" (string-append "Open('" name "');"
- "Generate('"
- (basename name "sfd") ext
- "')")))))
- (for-each (lambda (name)
- (and (compile name "ttf")
- (compile name "otf")))
- (find-files "." "\\.sfd$"))
- #t))))))
- (native-inputs
- `(("fontforge" ,fontforge)))
- (home-page "http://www.linuxlibertine.org/")
- (synopsis "Serif and sans serif typefaces")
- (description "The Linux Libertine fonts is a set of typefaces containing
- both a Serif version (\"Linux Libertine\") and a Sans Serif (\"Linux
- Biolinum\") designed to be used together as an alternative for Times/Times New
- Roman and Helvetica/Arial. The Serif typeface comes in two shapes and two
- weights, and with a Small Capitals version of the regular typeface. Linux
- Biolinum is available in both Regular and Bold weights.")
- ;; The fonts are released under either of these licenses.
- (license (list license:gpl2+ license:silofl1.1))))
- (define-public font-libertinus
- (package
- (name "font-libertinus")
- (version "7.040")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "https://github.com/alerque/libertinus/releases"
- "/download/v" version "/libertinus-" version
- ".zip"))
- (sha256
- (base32 "1xkj993hwkr49q63dd2dnkvdkm9sckxm3zjwhdxsxn21fi80ikic"))))
- (build-system font-build-system)
- (home-page "https://github.com/alerque/libertinus")
- (synopsis "Font family based on Linux Libertine")
- (description
- "The Libertinus font family is a fork of Linux Libertine that addresses
- many bugs in the unmaintained original and adds a new mathematical companion
- font for use with OpenType math-capable applications like LuaTex or XeTeX.
- The unified Libertinus family consists of:
- @enumerate
- @item Libertinus Serif, forked from Linux Libertine;
- @item Libertinus Sans Serif, forked from Linux Biolinum;
- @item Libertinus Mono, forked from Linux Libertine Mono; and
- @item Libertinus Math, an original matching OpenType math font.
- @end enumerate\n")
- (license license:silofl1.1)))
- (define-public font-terminus
- (package
- (name "font-terminus")
- (version "4.49.1")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "mirror://sourceforge/terminus-font/terminus-font-"
- (version-major+minor version)
- "/terminus-font-" version ".tar.gz"))
- (sha256
- (base32 "0yggffiplk22lgqklfmd2c0rw8gwchynjh5kz4bz8yv2h6vw2qfr"))))
- (build-system gnu-build-system)
- (outputs (list "out" "pcf-8bit" "otb"))
- (arguments
- `(#:tests? #f ; no test target in tarball
- #:phases
- (modify-phases %standard-phases
- (add-after 'build 'build-more-bits
- ;; X11 8-bit code pages aren't installed by default (they were
- ;; until version 4.46). Build and install them separately.
- (lambda* (#:key make-flags #:allow-other-keys)
- (apply invoke "make" "pcf-8bit" make-flags)))
- (add-after 'install 'install-more-bits
- (lambda* (#:key make-flags outputs #:allow-other-keys)
- (let ((pcf-8bit (assoc-ref outputs "pcf-8bit")))
- (apply invoke "make" "install-pcf-8bit" (string-append "prefix="
- pcf-8bit)
- make-flags))))
- (add-after 'build-more-bits 'build-otb
- ;; Build Open Type Bitmap
- (lambda* (#:key make-flags #:allow-other-keys)
- (apply invoke "make" "otb" make-flags)))
- (add-after 'install 'install-otb
- (lambda* (#:key make-flags outputs #:allow-other-keys)
- (let ((otb (assoc-ref outputs "otb")))
- (apply invoke "make" "install-otb" (string-append "prefix=" otb)
- make-flags)))))))
- (native-inputs
- `(("bdftopcf" ,bdftopcf)
- ("font-util" ,font-util)
- ("mkfontdir" ,mkfontdir)
- ("pkg-config" ,pkg-config)
- ("python" ,python)))
- (home-page "http://terminus-font.sourceforge.net/")
- (synopsis "Simple bitmap programming font")
- (description "Terminus Font is a clean, fixed-width bitmap font, designed
- for long periods of working with computers (8 or more hours per day).")
- (license license:silofl1.1)))
- (define-public font-adobe-source-han-sans
- (package
- (name "font-adobe-source-han-sans")
- (version "1.004")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/adobe-fonts/source-han-sans")
- (commit (string-append version "R"))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0zm884d8fp5gvirq324050kqv7am9khyqhs9kk4r4rr3jzn61jpk"))))
- (outputs '("out" ; OpenType/CFF Collection (OTC), 121 MiB.
- "cn" "jp" "kr" "tw")) ; Region-specific Subset OpenType/CFF.
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let ((install-opentype-fonts
- (lambda (fonts-dir out)
- (copy-recursively fonts-dir
- (string-append (assoc-ref %outputs out)
- "/share/fonts/opentype")))))
- (chdir (assoc-ref %build-inputs "source"))
- (install-opentype-fonts "OTC" "out")
- (install-opentype-fonts "SubsetOTF/CN" "cn")
- (install-opentype-fonts "SubsetOTF/JP" "jp")
- (install-opentype-fonts "SubsetOTF/KR" "kr")
- (install-opentype-fonts "SubsetOTF/TW" "tw")
- (for-each delete-file (find-files %output "\\.zip$"))
- #t))))
- (home-page "https://github.com/adobe-fonts/source-han-sans")
- (synopsis "Pan-CJK fonts")
- (description
- "Source Han Sans is a sans serif Pan-CJK font family that is offered in
- seven weights: ExtraLight, Light, Normal, Regular, Medium, Bold, and Heavy.
- And in several OpenType/CFF-based deployment configurations to accommodate
- various system requirements or limitations. As the name suggests, Pan-CJK
- fonts are intended to support the characters necessary to render or display
- text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.")
- (license license:silofl1.1)))
- (define-public font-cns11643
- ;; Since upstream doesn't provide any version numbers, the date of the last
- ;; edit is used, taken from https://data.gov.tw/dataset/5961
- ;; XXX: The source is also updated in-place, so it may be desirable to mirror
- ;; it elsewhere to avoid suddenly losing the current source file.
- (package
- (name "font-cns11643")
- (version "98.1.20180605")
- (source (origin
- (method url-fetch)
- (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
- (sha256
- (base32
- "000a9whrjr1cd4pjc23pbl60zwkq3wcb5g61p9qi7fn3hwkp0kyw"))))
- (build-system font-build-system)
- (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
- (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
- (description
- "@code{CNS 11643} character set (Chinese National Standard, or Chinese
- Standard Interchange Code) is the standard character set of the Republic of
- China (Taiwan) for Chinese Characters and other Unicode symbols. Contained
- are six TrueType fonts based on two script styles, Regular script (Kai), and
- Sung/Ming script, each with three variants:
- @itemize
- @item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thousands
- of CJK characters from frequency tables published by the Taiwanese
- Ministry of Education. ISO 10646 and Unicode compatible encoding.
- @item @code{Big-5 Plus}: Several thousand frequently used CJK characters
- encoded in the user defined area of the Big-5 code.
- @item @code{Big-5 Extended}: A Big-5 character set based on the
- @code{Big-5 Plus} and @code{CNS 11643} character sets.
- @end itemize\n")
- (license (license:non-copyleft
- "http://data.gov.tw/license")))) ; CC-BY 4.0 compatible
- (define-public font-cns11643-swjz
- (package
- (name "font-cns11643-swjz")
- (version "1")
- (source
- (origin
- (method url-fetch)
- (uri "https://www.moedict.tw/fonts/truetype/cns11643/ebas927.ttf")
- (sha256
- (base32
- "1qkljldbmb53zp1rcmpsb8rzy67rnsqcjxi549m9743ifk4isl78"))))
- (build-system font-build-system)
- (home-page
- (string-append "http://www.cns11643.gov.tw/AIDB/download.do"
- "?name=%E5%AD%97%E5%9E%8B%E4%B8%8B%E8%BC%89"))
- (synopsis "TrueType seal script font")
- (description
- "@code{Shuowen Jiezi} is a TrueType seal script font based on the ancient
- text of the same name published by the Executive Yuan of Taiwan. 6721 glyphs
- are included, at Unicode compatible code points corresponding to their modern
- variants.")
- ;; Original text only available in Chinese. More info at
- ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26703#11
- (license (license:non-copyleft
- "http://www.cns11643.gov.tw/AIDB/copyright.do"))))
- (define-public font-wqy-zenhei
- (package
- (name "font-wqy-zenhei")
- (version "0.9.45")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "mirror://sourceforge/wqy/wqy-zenhei/" version
- "%20%28Fighting-state%20RC1%29/wqy-zenhei-"
- version ".tar.gz"))
- (sha256
- (base32
- "1mkmxq8g2hjcglb3zajfqj20r4r88l78ymsp2xyl5yav8w3f7dz4"))))
- (build-system font-build-system)
- (home-page "http://wenq.org/wqy2/")
- (synopsis "CJK font")
- (description
- "WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese outline
- font. It is designed for general purpose text formatting and on-screen
- display of Chinese characters and symbols from many other languages.
- WenQuanYi Zen Hei provides a rather complete coverage of Chinese Hanzi glyphs,
- including both simplified and traditional forms. The total glyph number in
- this font is over 35,000, including over 21,000 Chinese Hanzi. This font has
- full coverage of the GBK (CP936) charset, CJK Unified Ideographs, as well as
- the code-points needed for zh_cn, zh_sg, zh_tw, zh_hk, zh_mo, ja (Japanese) and
- ko (Korean) locales for @code{fontconfig}.")
- ;; GPLv2 with font embedding exception.
- (license license:gpl2)))
- (define-public font-wqy-microhei
- (package
- (name "font-wqy-microhei")
- (version "0.2.0-beta")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://sourceforge/wqy/wqy-microhei/"
- version "/wqy-microhei-" version ".tar.gz"))
- (sha256
- (base32
- "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8"))))
- (build-system font-build-system)
- (home-page "http://wenq.org/wqy2/")
- (synopsis "CJK font")
- (description
- "WenQuanYi Micro Hei is a Sans-Serif style (also known as Hei, Gothic or
- Dotum among the Chinese/Japanese/Korean users) high quality CJK outline font.
- It was derived from \"Droid Sans Fallback\" and \"Droid Sans\" released by
- Google Inc. This font contains all the unified CJK Han glyphs in the range of
- U+4E00-U+9FC3 defined in Unicode Standard 5.1, together with many other
- languages unicode blocks, including Latins, Extended Latins, Hanguls and
- Kanas. The font file is extremely compact (~4M) compared with most known CJK
- fonts.")
- ;; This font is licensed under Apache2.0 or GPLv3 with font embedding
- ;; exceptions.
- (license license:gpl3)))
- (define-public font-rachana
- (package
- (name "font-rachana")
- (version "7.0.3")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://gitlab.com/smc/fonts/rachana")
- (commit (string-append "Version" version))))
- (sha256
- (base32 "0r100pvk56y1s38nbv24d78s8nd7dkblgasbn8s887dzj6dps23d"))
- (file-name (git-file-name name version))))
- (build-system font-build-system)
- (home-page "https://smc.org.in")
- (synopsis "Malayalam font")
- (description
- "Rachana is a Malayalam font designed by Hussain K H. The project was
- part of Rachana Aksharavedi for the original script of Malayalam in computing.
- Rachana has about 1,200+ glyphs for Malayalam and contains glyphs required for
- printing old Malayalam books without compromising the writing style.")
- ;; This font is licensed under SIL 1.1 or GPLv3+ with font embedding
- ;; exceptions.
- (license (list license:silofl1.1 license:gpl3+))))
- (define-public font-tex-gyre
- (package
- (name "font-tex-gyre")
- (version "2.005")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "http://www.gust.org.pl/projects/e-foundry/"
- "tex-gyre/whole/tg-" version "otf.zip"))
- (sha256
- (base32
- "0kph9l3g7jb2bpmxdbdg5zl56wacmnvdvsdn7is1gc750sqvsn31"))))
- (build-system font-build-system)
- (home-page "http://www.gust.org.pl/projects/e-foundry/tex-gyre/")
- (synopsis "Remake of Ghostscript fonts")
- (description "The TeX Gyre collection of fonts is the result of an
- extensive remake and extension of the freely available base PostScript fonts
- distributed with Ghostscript version 4.00. The collection contains the
- following fonts in the OpenType format: Adventor, Bonum, Chorus, Cursor,
- Heros, Pagella, Schola, Termes.")
- (license license:gfl1.0)))
- (define-public font-anonymous-pro
- (package
- (name "font-anonymous-pro")
- (version "1.002")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "https://www.marksimonson.com/assets/content/fonts/"
- "AnonymousPro-" version ".zip"))
- (sha256
- (base32
- "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
- (build-system font-build-system)
- (home-page "https://www.marksimonson.com/fonts/view/anonymous-pro")
- (synopsis "Fixed-width fonts designed with coding in mind")
- (description "Anonymous Pro is a family of four fixed-width fonts designed
- with coding in mind. Anonymous Pro features an international, Unicode-based
- character set, with support for most Western and Central European Latin-based
- languages, plus Greek and Cyrillic.")
- (license license:silofl1.1)))
- (define-public font-anonymous-pro-minus
- (package
- (inherit font-anonymous-pro)
- (name "font-anonymous-pro-minus")
- ;; The -Minus variant doesn't necessarily track the regular version above.
- (version "1.003")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "https://www.marksimonson.com/assets/content/fonts/"
- "AnonymousProMinus-" version ".zip"))
- (sha256
- (base32 "1p2n91jja37d2cshp5pjwld9lq0v7gnpk7ywwn2blq7k46q6vq38"))))
- (synopsis "Fixed-width fonts designed with coding in mind, without bitmaps")
- (description "Anonymous Pro is a family of four fixed-width fonts designed
- with coding in mind. Anonymous Pro features an international, Unicode-based
- character set, with support for most Western and Central European Latin-based
- languages, plus Greek and Cyrillic.
- Anonymous Pro Minus is identical to Anonymous Pro, minus its embedded bitmaps
- for use at smaller text sizes")))
- (define-public font-gnu-unifont
- (package
- (name "font-gnu-unifont")
- (version "13.0.06")
- (source
- (origin
- (method url-fetch)
- (uri (list
- (string-append "https://unifoundry.com/pub/unifont/unifont-"
- version "/unifont-" version ".tar.gz")
- (string-append "mirror://gnu/unifont/unifont-"
- version "/unifont-" version ".tar.gz")))
- (sha256
- (base32 "09g91g0gv76sadslp70m5xwfk3jf8kh7rpk2pz3l2hpldnjggpk8"))))
- (build-system gnu-build-system)
- (outputs '("out" ; TrueType version
- "pcf" ; PCF (bitmap) version
- "psf" ; PSF (console) version
- "bin")) ; Utilities to manipulate '.hex' format
- (arguments
- '(#:tests? #f ; no check target
- #:phases
- (modify-phases %standard-phases
- (replace
- 'configure
- (lambda _ (setenv "CC" "gcc") #t))
- (replace
- 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((ttf (string-append (assoc-ref outputs "out")
- "/share/fonts/truetype"))
- (pcf (string-append (assoc-ref outputs "pcf")
- "/share/fonts/misc"))
- (psf (string-append (assoc-ref outputs "psf")
- "/share/consolefonts"))
- (bin (assoc-ref outputs "bin")))
- (invoke "make"
- (string-append "PREFIX=" bin)
- (string-append "TTFDEST=" ttf)
- (string-append "PCFDEST=" pcf)
- (string-append "CONSOLEDEST=" psf)
- "install")
- ;; Move Texinfo file to the right place.
- (mkdir (string-append bin "/share/info"))
- (invoke "gzip" "-9n" "doc/unifont.info")
- (install-file "doc/unifont.info.gz"
- (string-append bin "/share/info"))
- #t))))))
- (inputs
- `(("perl" ,perl))) ; for utilities
- (synopsis
- "Large bitmap font covering Unicode's Basic Multilingual Plane")
- (description
- "GNU Unifont is a bitmap font covering essentially all of
- Unicode's Basic Multilingual Plane. The package also includes
- utilities to ease adding new glyphs to the font.")
- (home-page "http://unifoundry.com/unifont/index.html")
- (properties '((upstream-name . "unifont")))
- (license license:gpl2+)))
- (define-public font-google-noto
- (package
- (name "font-google-noto")
- (version "20171025")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://noto-website-2.storage.googleapis.com/"
- "pkgs/Noto-hinted.zip"))
- (file-name (string-append name "-" version ".zip"))
- (sha256
- (base32 "1bp42whyin7xcgmrbnfvz3rvd98xmxaz3ywqybbjmqzwaa9llyw3"))))
- (build-system font-build-system)
- (home-page "https://www.google.com/get/noto/")
- (synopsis "Fonts to cover all languages")
- (description "Google Noto Fonts is a family of fonts designed to support
- all languages with a consistent look and aesthetic. Its goal is to properly
- display all Unicode symbols.")
- (license license:silofl1.1)))
- (define-public font-google-roboto
- (package
- (name "font-google-roboto")
- (version "2.136")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "https://github.com/google/roboto/releases/download/"
- "v" version "/roboto-hinted.zip"))
- (file-name (string-append name "-" version ".zip"))
- (sha256
- (base32
- "0spscx08fad7i8qs7icns96iwcapniq8lwwqqvbf7bamvs8qfln4"))))
- (build-system font-build-system)
- (home-page "https://github.com/google/roboto")
- (synopsis "The Roboto family of fonts")
- (description
- "Roboto is Google’s signature family of fonts, the default font on Android
- and Chrome OS, and the recommended font for the
- visual language \"Material Design\".")
- (license license:asl2.0)))
- (define-public font-borg-sans-mono
- (package
- (name "font-borg-sans-mono")
- (version "0.3.2")
- (source
- (origin
- (method url-fetch)
- (uri (string-append
- "https://github.com/charje/borg-sans-mono"
- "/releases/download/v" version "/borg-sans-mono.zip"))
- (sha256
- (base32
- "0q16gw3ry9hpgbl2636qq00ap59xyx15jf3gzvx2ybz3gja164c4"))))
- (build-system font-build-system)
- (home-page "https://github.com/charje/borg-sans-mono")
- (synopsis "The Borg Sans Mono font")
- (description "Borg Sans Mono is a monospaced font derived from Droid Sans
- Mono. It includes additions commonly found in programming fonts such as a
- slashed zero and ligatures for operators.")
- (license license:asl2.0)))
- (define-public font-un
- (package
- (name "font-un")
- (version "1.0.2-080608")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "https://kldp.net/unfonts/release/2607-"
- "un-fonts-core-" version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "13liaz2pmww3aqabm55la5npd08m1skh334ky7qfidxaz5s742iv"))))
- (build-system font-build-system)
- (home-page "https://kldp.net/projects/unfonts/")
- (synopsis "Collection of Korean fonts")
- (description
- "Un-fonts is a family of mainly Korean fonts.
- It contains the following fonts and styles:
- @enumerate
- @item UnBatang, UnBatangBold: serif;
- @item UnDotum, UnDotumBold: sans-serif;
- @item UnGraphic, UnGraphicBold: sans-serif style;
- @item UnDinaru, UnDinaruBold, UnDinaruLight;
- @item UnPilgi, UnPilgiBold: script;
- @item UnGungseo: cursive, brush-stroke.
- @end enumerate\n")
- (license license:gpl2+)))
- (define-public font-fantasque-sans
- (package
- (name "font-fantasque-sans")
- (version "1.8.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/belluzj/fantasque-sans")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "17l18488qyl9gdj80r8pcym3gp3jkgsdikwalnrp5rgvwidqx507"))))
- (build-system gnu-build-system)
- (native-inputs
- `(("ttfautohint" ,ttfautohint)
- ("woff-tools" ,woff-tools)
- ("fontforge" ,fontforge)
- ("woff2" ,woff2)
- ("woff2:bin" ,woff2 "bin")
- ("zip" ,zip)))
- (arguments
- `(#:tests? #f ;test target intended for visual inspection
- #:phases (modify-phases %standard-phases
- (delete 'configure) ;no configuration
- (add-before 'build 'support-python@3
- ;; Rather than use a Python 2 fontforge, replace Python-2-
- ;; specific code with a passable Python 3 equivalent.
- (lambda _
- (substitute* "Scripts/fontbuilder.py"
- (("xrange") "range"))
- (substitute* "Scripts/features.py"
- (("f\\.write\\(fea_code\\)")
- "f.write(str.encode(fea_code))"))
- #t))
- (replace 'install
- ;; 'make install' wants to install to ~/.fonts, install to
- ;; output instead. Install only the "Normal" variant.
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (font-dir (string-append out "/share/fonts"))
- (truetype-dir (string-append font-dir "/truetype"))
- (opentype-dir (string-append font-dir "/opentype"))
- (webfonts-dir (string-append font-dir "/webfonts")))
- (with-directory-excursion "Variants/Normal"
- (copy-recursively "OTF" opentype-dir)
- (for-each (lambda (f) (install-file f truetype-dir))
- (find-files "." "\\.ttf$"))
- (copy-recursively "Webfonts" webfonts-dir)
- #t)))))))
- (synopsis "Font family with a monospaced variant for programmers")
- (description
- "Fantasque Sans Mono is a programming font designed with functionality in
- mind. The font includes a bold version and a good italic version with new
- glyph designs, not just an added slant.")
- (home-page "https://fontlibrary.org/en/font/fantasque-sans-mono")
- (license license:silofl1.1)))
- (define-public font-hack
- (package
- (name "font-hack")
- (version "3.003")
- (source (origin
- (method url-fetch/zipbomb)
- (uri (string-append
- "https://github.com/source-foundry/Hack/releases/download/v"
- version "/Hack-v" version "-ttf.zip"))
- (sha256
- (base32
- "1b4hh8zkrx92m2v2vfkja1napb0192p0j3laqr0m018z3dih89hc"))))
- (build-system font-build-system)
- (home-page "https://sourcefoundry.org/hack/")
- (synopsis "Typeface designed for source code")
- (description
- "Hack is designed to be a workhorse typeface for code. It expands upon
- the Bitstream Vera & DejaVu projects, provides over 1,500 glyphs, and includes
- Powerline support.")
- (license
- ;; See https://github.com/source-foundry/Hack/issues/271 for details.
- (list license:expat ; the Hack modifications to...
- license:public-domain ; ...the DejaVu modifications to...
- (license:x11-style ; ...the Bitstream Vera typeface
- "file://LICENSE.md" "Bitstream Vera License")))))
- (define-public font-adobe-source-code-pro
- (package
- (name "font-adobe-source-code-pro")
- (version "2.030R-ro-1.050R-it")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/adobe-fonts/source-code-pro")
- (commit (regexp-substitute/global
- ;; The upstream tag uses "/" between the roman and italic
- ;; versions, so substitute our "-" separator here.
- #f "R-ro-" version 'pre "R-ro/" 'post))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0hc5kflr8xzqgdm0c3gbgb1paygznxmnivkylid69ipc7wnicx1n"))))
- (build-system font-build-system)
- (home-page "https://github.com/adobe-fonts/source-code-pro")
- (synopsis
- "Monospaced font family for user interface and coding environments")
- (description
- "Source Code Pro is a set of monospaced OpenType fonts that have been
- designed to work well in user interface environments.")
- (license license:silofl1.1)))
- (define-public font-adobe-source-sans-pro
- (package
- (name "font-adobe-source-sans-pro")
- (version "3.028R")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/adobe-fonts/source-sans-pro")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0lgjqi4d5p1q1z00ad807v5qy4z54gmp7jpdaypc0rxk8czv6zq7"))))
- (build-system font-build-system)
- (home-page "https://github.com/adobe-fonts/source-sans-pro")
- (synopsis
- "Sans serif font family for user interface environments")
- (description
- "Source Sans Pro is a set of OpenType fonts that have been designed to
- work well in user interface (UI) environments.")
- (license license:silofl1.1)))
- (define-public font-adobe-source-serif-pro
- (package
- (name "font-adobe-source-serif-pro")
- (version "3.001R")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/adobe-fonts/source-serif-pro")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1z0pjvx0jpjwb8vzvc6l5gzlg0mqax4v9pizqcxx82l0ydlfh5bj"))))
- (build-system font-build-system)
- (home-page "https://github.com/adobe-fonts/source-serif-pro")
- (synopsis
- "Serif typeface to complement Source Sans Pro for setting text")
- (description
- "Source Serif Pro is a set of OpenType fonts to complement the Source
- Sans Pro family.")
- (license license:silofl1.1)))
- (define-public font-fira-mono
- (package
- (name "font-fira-mono")
- (version "3.206")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://carrois.com/downloads/fira_mono_3_2/"
- "FiraMonoFonts"
- (string-replace-substring version "." "")
- ".zip"))
- (sha256
- (base32
- "1z65x0dw5dq6rs6p9wyfrir50rlh95vgzsxr8jcd40nqazw4jhpi"))))
- (build-system font-build-system)
- (home-page "https://mozilla.github.io/Fira/")
- (synopsis "Mozilla's monospace font")
- (description "This is the typeface used by Mozilla in Firefox OS.")
- (license license:silofl1.1)))
- (define-public font-fira-sans
- (package
- (name "font-fira-sans")
- (version "4.202")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/mozilla/Fira")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "116j26gdj5g1r124b4669372f7490vfjqw7apiwp2ggl0am5xd0w"))))
- (build-system font-build-system)
- (home-page "https://mozilla.github.io/Fira/")
- (synopsis "Mozilla's Fira Sans Font")
- (description "This is the typeface used by Mozilla in Firefox OS.")
- (license license:silofl1.1)))
- (define-public font-fira-go
- (package
- (name "font-fira-go")
- (version "1.000")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/bBoxType/FiraGO")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "10rcfg1fijv00yxv5n9l3lm0axhafa1irkg42zpmasd70flgg655"))))
- (build-system font-build-system)
- (home-page "https://github.com/bBoxType/FiraGO")
- (synopsis "Multilingual extension of the Fira Sans font family")
- (description "FiraGO is a multilingual extension of the Fira Sans font
- family. Based on the Fira Sans 4.3 glyph set, FiraGO adds support for the
- Arabic, Devanagari, Georgian, Hebrew and Thai scripts.")
- (license license:silofl1.1)))
- (define-public font-fira-code
- (package
- (name "font-fira-code")
- (version "5.2")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/tonsky/FiraCode/releases/"
- "download/" version
- "/Fira_Code_v" version ".zip"))
- (sha256
- (base32 "1zayrb6k0gd7xdvx7yx44dpip767q0bzhqwf4j6nf8nx02z746jj"))))
- (build-system font-build-system)
- (home-page "https://mozilla.github.io/Fira/")
- (synopsis "Monospaced font with programming ligatures")
- (description
- "Fira Code is an extension of the Fira Mono font containing a set of ligatures
- for common programming multi-character combinations. This is just a font rendering
- feature: underlying code remains ASCII-compatible. This helps to read and understand
- code faster. For some frequent sequences like .. or //, ligatures allow us to
- correct spacing.")
- (license license:silofl1.1)))
- (define-public font-awesome
- (package
- (name "font-awesome")
- ;; XXX The build scripts of version 5 are not freely licensed and
- ;; so we have to stick with version 4 for now:
- ;; <https://bugs.gnu.org/32916>
- (version "4.7.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/FortAwesome/Font-Awesome")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0w30y26jp8nvxa3iiw7ayl6rkza1rz62msl9xw3srvxya1c77grc"))))
- (build-system font-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (source (string-append (getcwd) "/fonts"))
- (fonts (string-append out "/share/fonts")))
- (for-each (lambda (file)
- (install-file file (string-append fonts "/truetype")))
- (find-files source "\\.(ttf|ttc)$"))
- (for-each (lambda (file)
- (install-file file (string-append fonts "/opentype")))
- (find-files source "\\.(otf|otc)$"))
- #t))))))
- (home-page "https://fontawesome.com/")
- (synopsis "Font that contains a rich iconset")
- (description
- "Font Awesome is a full suite of pictographic icons for easy scalable
- vector graphics.")
- (license license:silofl1.1)))
- (define-public font-tamzen
- (package
- (name "font-tamzen")
- (version "1.11.5")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/sunaku/tamzen-font")
- (commit (string-append "Tamzen-" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "00x5fipzqimglvshhqwycdhaqslbvn3rl06jnswhyxfvz16ymj7s"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let* ((out (assoc-ref %outputs "out"))
- (font-dir (string-append out "/share/fonts/misc"))
- (psf-dir (string-append out "/share/kbd/consolefonts")))
- (chdir (assoc-ref %build-inputs "source"))
- (mkdir-p font-dir)
- (mkdir-p psf-dir)
- (for-each (lambda (pcf)
- (install-file pcf font-dir))
- (find-files "pcf" "\\.pcf$"))
- (for-each (lambda (psf)
- (install-file psf psf-dir))
- (find-files "psf" "\\.psf$"))
- #t))))
- (home-page "https://github.com/sunaku/tamzen-font")
- (synopsis "Monospaced bitmap font for console and X11")
- (description
- "Tamzen is a fork of the @code{Tamsyn} font. It is programmatically forked
- from @code{Tamsyn} version 1.11, backporting glyphs from older versions while
- deleting deliberately empty glyphs (which are marked as unimplemented) to
- allow secondary/fallback fonts to provide real glyphs at those codepoints.
- The @code{TamzenForPowerline} fonts provide additional @code{Powerline} symbols,
- which are programmatically injected with @code{bitmap-font-patcher} and
- later hand-tweaked with the gbdfed(1) editor:
- @enumerate
- @item all icons are expanded to occupy the maximum available space
- @item the branch of the fork icon ( U+E0A0) was made larger than the trunk
- @item for the newline icon ( U+E0A1), the @emph{N} was made larger at the bottom
- @item the keyhole in the padlock icon ( U+E0A2) was replaced with @emph{//} lines.
- @end enumerate\n")
- (license (license:non-copyleft "file://LICENSE"))))
- (define-public font-comic-neue
- (package
- (name "font-comic-neue")
- (version "2.51")
- (source (origin
- (method url-fetch/zipbomb)
- (uri (string-append
- "http://www.comicneue.com/comic-neue-" version ".zip"))
- (sha256
- (base32
- "0883542v915crz98v1ij6smgy40dg6gxwsid3j5nbmmqjf69kpal"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; Delete Mac OS X specific files. If not deleted, these cause
- ;; several hidden files to be installed.
- (add-before 'install 'delete-macosx-files
- (lambda _
- (delete-file-recursively "__MACOSX")
- #t))
- (add-after 'install 'install-conf
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((conf-dir (string-append (assoc-ref outputs "out")
- "/share/fontconfig/conf.avail")))
- (mkdir-p conf-dir)
- (call-with-output-file
- (string-append conf-dir "/30-comic-neue.conf")
- (lambda (port)
- (format port "<?xml version=\"1.0\"?>
- <!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">
- <fontconfig>
- <!-- If Comic Sans is missing, use Comic Neue instead. -->
- <alias>
- <family>Comic Sans MS</family>
- <prefer>
- <family>Comic Neue</family>
- </prefer>
- </alias>
- </fontconfig>\n"))))
- #t)))))
- (home-page "http://www.comicneue.com/")
- (synopsis "Font that fixes the shortcomings of Comic Sans")
- (description
- "Comic Neue is a font that attempts to create a respectable casual
- typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
- (license license:silofl1.1)))
- ;; When updating the version (and hash) of font-iosevka, also update the hash
- ;; of the Iosevka variants further below.
- ;; The following script downloads all Iosevka variants to the store and prints
- ;; their hash at the end.
- #|
- guix repl <<EOF
- (use-modules (guix base32)
- (guix download)
- (guix packages)
- (guix store)
- (gcrypt hash)
- (ice-9 string-fun)
- (gnu packages fonts))
- (let ((new-version "7.0.3")
- (iosevka-hashes #nil)
- (iosevka-fails #nil))
- (for-each (lambda (font)
- (let ((file (download-to-store (open-connection)
- (string-replace-substring
- (origin-uri (package-source font))
- (package-version font)
- new-version))))
- (if file
- (set! iosevka-hashes
- (acons file (bytevector->nix-base32-string
- (file-sha256 file))
- iosevka-hashes))
- (set! iosevka-fails (cons font iosevka-fails)))))
- (list font-iosevka
- font-iosevka-slab
- font-iosevka-term
- font-iosevka-term-slab
- font-iosevka-aile
- font-iosevka-curly
- font-iosevka-curly-slab
- font-iosevka-etoile))
- (for-each (lambda (hash)
- (format #t "~a: ~a~%" (car hash) (cdr hash)))
- iosevka-hashes)
- (for-each (lambda (fail)
- (format #t "~a: failed to download latest version~%" fail))
- iosevka-fails))
- EOF
- |#
- (define-public font-iosevka
- (package
- (name "font-iosevka")
- (version "7.0.3")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/be5invis/Iosevka"
- "/releases/download/v" version
- "/ttc-iosevka-" version ".zip"))
- (sha256
- (base32 "08n1c2j38vd1qrf18ilgvq6rl7z9yrsyq9ljf037yiw6zlphx4da"))))
- (build-system font-build-system)
- (home-page "https://be5invis.github.io/Iosevka/")
- (synopsis "Coders' typeface, built from code")
- (description
- "Iosevka is a slender monospace sans-serif or slab-serif typeface inspired
- by Pragmata Pro, M+, and PF DIN Mono, designed to be the ideal font for
- programming. Iosevka is completely generated from its source code.")
- (license (list license:silofl1.1 ;build artifacts (i.e., the fonts)
- license:bsd-3)))) ;supporting code
- (define-public font-iosevka-slab
- (package
- (inherit font-iosevka)
- (name "font-iosevka-slab")
- (version (package-version font-iosevka))
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/be5invis/Iosevka"
- "/releases/download/v" version
- "/ttc-iosevka-slab-" version ".zip"))
- (sha256
- (base32 "1ggrbl8gi2hv8yiw7vw8cajlv7nkz8i975165cayyzppjlrfs3nr"))))))
- (define-public font-iosevka-term
- (package
- (inherit font-iosevka)
- (name "font-iosevka-term")
- (version (package-version font-iosevka))
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/be5invis/Iosevka"
- "/releases/download/v" version
- "/ttf-iosevka-term-" version ".zip"))
- (sha256
- (base32 "1jmbp3hni99l92653b356nbmj45kd54kbl6c6ws1k5jxydrjglrh"))))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'make-files-writable
- (lambda _
- (for-each make-file-writable (find-files "." ".*"))
- #t)))))))
- (define-public font-iosevka-term-slab
- (package
- (inherit font-iosevka)
- (name "font-iosevka-term-slab")
- (version (package-version font-iosevka))
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/be5invis/Iosevka/"
- "releases/download/v" version "/"
- "ttf-iosevka-term-slab-" version ".zip"))
- (sha256
- (base32 "19fc6jbkv0aif6ds9ddxaarz2ambzln7y6k2qjsczwlbznr8cf09"))))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'make-files-writable
- (lambda _
- (for-each make-file-writable (find-files "." ".*"))
- #t)))))))
- (define-public font-iosevka-aile
- (package
- (inherit font-iosevka)
- (name "font-iosevka-aile")
- (version (package-version font-iosevka))
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/be5invis/Iosevka"
- "/releases/download/v" version
- "/ttc-iosevka-aile-" version ".zip"))
- (sha256
- (base32 "1bkrk4dqkj45fbaac2n61a5kwxs3bk6sdm5hanw7g2h4xb83fi8d"))))))
- (define-public font-iosevka-curly
- (package
- (inherit font-iosevka)
- (name "font-iosevka-curly")
- (version (package-version font-iosevka))
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/be5invis/Iosevka/"
- "releases/download/v" version "/"
- "ttc-iosevka-curly-" version ".zip"))
- (sha256
- (base32 "12jdb38dlbwa58q0b0sf9sp1dcafzp9dcf71jf1wrlnn8047vxyx"))))))
- (define-public font-iosevka-curly-slab
- (package
- (inherit font-iosevka)
- (name "font-iosevka-curly-slab")
- (version (package-version font-iosevka))
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/be5invis/Iosevka/"
- "releases/download/v" version "/"
- "ttc-iosevka-curly-slab-" version ".zip"))
- (sha256
- (base32 "0zn21bxyj0ni4vbdarwam2piixzvkdk769vg3k4fl3h03q56cj24"))))))
- (define-public font-iosevka-etoile
- (package
- (inherit font-iosevka)
- (name "font-iosevka-etoile")
- (version (package-version font-iosevka))
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/be5invis/Iosevka"
- "/releases/download/v" version
- "/ttc-iosevka-etoile-" version ".zip"))
- (sha256
- (base32 "0lnpdvv20g2bg6rwl0gv83bkbgfmkbyfxshhpw9vprfs2g8k6lil"))))))
- (define-public font-sarasa-gothic
- (package
- (name "font-sarasa-gothic")
- (version "0.31.2")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "https://github.com/be5invis/Sarasa-Gothic"
- "/releases/download/v" version
- "/sarasa-gothic-ttc-" version ".7z"))
- (sha256
- (base32 "0p67qyhm266s6q17islqvwch807fy5slgp2symrl0z665vp6hycj"))))
- (build-system font-build-system)
- (arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'unpack
- (lambda* (#:key source #:allow-other-keys)
- (mkdir "source")
- (chdir "source")
- (invoke "7z" "x" source))))))
- (native-inputs `(("p7zip" ,p7zip)))
- (home-page "https://github.com/be5invis/Sarasa-Gothic")
- (license license:silofl1.1)
- (synopsis "Sarasa Gothic / 更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사 고딕")
- (description
- "Sarasa Gothic is a programming font based on Iosevka and Source Han Sans,
- most CJK characters are same height, and double width as ASCII characters.")))
- (define-public font-space-grotesk
- (package
- (name "font-space-grotesk")
- (version "2.0.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/floriankarsten/space-grotesk")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1aiivn0rl7ydiyqvsr0fa2hx82h3br3x48w3100fcly23n0fdcby"))))
- (build-system font-build-system)
- ;; TODO: Package fontmake and gftools and build from source.
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'install-license-files
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (doc (string-append out "/share/doc/" ,name "-" ,version)))
- (install-file "OFL.txt" doc)
- #t))))))
- (home-page "https://floriankarsten.github.io/space-grotesk/")
- (synopsis "Proportional variant of the fixed-width Space Mono family")
- (description
- "Space Grotesk is a proportional sans-serif typeface variant based on Colophon
- Foundry's fixed-width Space Mono family. It retains the monospace's idiosyncratic
- details while optimizing for improved readability at non-display sizes.
- Space Grotesk includes Latin Vietnamese, Pinyin, and all Western, Central, and
- South-Eastern European language support, as well as several OpenType features:
- old-style and tabular figures, superscript and subscript numerals, fractions,
- and stylistic alternates.")
- (license license:silofl1.1)))
- (define-public font-go
- (let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
- (revision "1"))
- (package
- (name "font-go")
- (version (string-append "20170330-" revision "." (string-take commit 7)))
- (source (origin
- (file-name (string-append "go-image-" version "-checkout"))
- (method git-fetch)
- (uri (git-reference
- (url "https://go.googlesource.com/image")
- (commit commit)))
- (sha256
- (base32
- "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'chdir
- (lambda _
- (chdir "font/gofont/ttfs")
- #t)))))
- (home-page "https://blog.golang.org/go-fonts")
- (synopsis "The Go font family")
- (description
- "The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
- Holmes type foundry, released under the same license as the Go programming
- language. It includes a set of proportional, sans-serif fonts, and a set of
- monospace, slab-serif fonts.")
- (license license:bsd-3))))
- (define-public font-google-material-design-icons
- (package
- (name "font-google-material-design-icons")
- (version "3.0.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/google/material-design-icons")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "17q5brcqyyc8gbjdgpv38p89s60cwxjlwy2ljnrvas5cj0s62np0"))))
- (build-system font-build-system)
- (home-page "https://google.github.io/material-design-icons")
- (synopsis "Icon font of Google Material Design icons")
- (description
- "Material design system icons are simple, modern, friendly, and sometimes
- quirky. Each icon is created using our design guidelines to depict in simple
- and minimal forms the universal concepts used commonly throughout a UI.
- Ensuring readability and clarity at both large and small sizes, these icons
- have been optimized for beautiful display on all common platforms and display
- resolutions.")
- (license license:asl2.0)))
- (define-public font-opendyslexic
- (package
- (name "font-opendyslexic")
- (version "0.91.12")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://github.com/antijingoist/opendyslexic/"
- "releases/download/v" version
- "/opendyslexic-0.910.12-rc2-2019.10.17.zip"))
- (sha256
- (base32
- "11ml7v4iyf3hr0fbnkwz8afb8vi58wbcfnmn4gyvrwh9jk5pybdr"))))
- (build-system font-build-system)
- (native-inputs `(("unzip" ,unzip)))
- (home-page "https://opendyslexic.org/")
- (synopsis "Font for dyslexics and high readability")
- (description "OpenDyslexic is a font designed to help readability for some
- of the symptoms of dyslexia. Letters have heavy weighted bottoms to provide
- an indication of orientation to make it more difficult to confuse with other
- similar letters. Consistently weighted bottoms can also help reinforce the
- line of text. The unique shapes of each letter can help prevent flipping and
- swapping. The italic style for OpenDyslexic has been crafted to be used for
- emphasis while still being readable.")
- (license license:silofl1.1)))
- (define-public font-open-dyslexic
- (deprecated-package "font-open-dyslexic" font-opendyslexic))
- (define-public font-openmoji
- (package
- (name "font-openmoji")
- (version "12.4.0")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri
- (string-append "https://github.com/hfg-gmuend/openmoji/"
- "releases/download/" version
- "/openmoji-font.zip"))
- (sha256
- (base32
- "0wvvg5vnc950h8v23wfgjyi7rv89mgm5hqq6viqv0bxcc3azglxb"))))
- (build-system font-build-system)
- (native-inputs
- `(("unzip" ,unzip)))
- (home-page "https://openmoji.org")
- (synopsis "Font for rendering emoji characters")
- (description
- "This package provides the OpenMoji font in both color and black
- variants.")
- (license license:cc-by-sa4.0)))
- (define-public font-dosis
- (package
- (name "font-dosis")
- (version "1.7")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://web.archive.org/web/20180228233737/"
- "https://www.impallari.com/media/releases/dosis-"
- "v" version ".zip"))
- (sha256
- (base32 "1qhci68f68mf87jd69vjf9qjq3wydgw1q7ivn3amjb65ls1s0c4s"))))
- (build-system font-build-system)
- (home-page (string-append "https://web.archive.org/web/20180228233737/"
- "https://www.impallari.com/dosis"))
- (synopsis "Very simple, rounded, sans serif family")
- (description
- "Dosis is a very simple, rounded, sans serif family.
- The lighter weights are minimalist. The bolder weights have more personality.
- The medium weight is nice and balanced. The overall result is a family
- that's clean and modern, and can express a wide range of voices & feelings.
- It comes in 7 incremental weights:
- ExtraLight, Light, Book, Medium, Semibold, Bold & ExtraBold")
- (license license:silofl1.1)))
- (define-public font-culmus
- (package
- (name "font-culmus")
- (version "0.133")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "https://sourceforge.net/projects/"
- "culmus/files/culmus/" version "/culmus-src-"
- version ".tar.gz"))
- (sha256
- (base32
- "02akysgsqhi15cck54xcacm16q5raf4l7shgb8fnj7xr3c1pbfyp"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'build
- (lambda _
- (let ((compile
- (lambda (name ext)
- (invoke
- "fontforge" "-lang=ff"
- "-c" (string-append "Open('" name "');"
- "Generate('"
- (basename name "sfd") ext
- "')")))))
- ;; This part based on the fonts shipped in the non-source package.
- (for-each (lambda (name)
- (compile name "ttf"))
- (find-files "." "^[^Nachlieli].*\\.sfd$"))
- (for-each (lambda (name)
- (compile name "otf"))
- (find-files "." "^Nachlieli.*\\.sfd$"))
- #t))))))
- (native-inputs
- `(("fontforge" ,fontforge)))
- (home-page "http://culmus.sourceforge.net/")
- (synopsis "TrueType Hebrew Fonts for X11")
- (description "14 Hebrew trivial families. Contain ASCII glyphs from various
- sources. Those families provide a basic set of a serif (Frank Ruehl), sans
- serif (Nachlieli) and monospaced (Miriam Mono) trivials. Also included Miriam,
- Drugulin, Aharoni, David, Hadasim etc. Cantillation marks support is
- available in Keter YG.")
- (license license:gpl2))) ; consult the LICENSE file included
- (define-public font-lohit
- (package
- (name "font-lohit")
- (version "20140220")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "https://releases.pagure.org/lohit/lohit-ttf-"
- version ".tar.gz"))
- (sha256
- (base32
- "1rmgr445hw1n851ywy28csfvswz1i6hnc8mzp88qw2xk9j4dn32d"))))
- (build-system font-build-system)
- (home-page "https://pagure.io/lohit")
- (synopsis "Lohit TrueType Indic fonts")
- (description "Lohit is a font family designed to cover Indic scripts.
- Lohit supports the Assamese, Bengali, Devanagari (Hindi, Kashmiri, Konkani,
- Maithili, Marathi, Nepali, Sindhi, Santali, Bodo, Dogri languages), Gujarati,
- Kannada, Malayalam, Manipuri, Oriya, Punjabi, Tamil and Telugu scripts.")
- (license license:silofl1.1)))
- (define-public font-blackfoundry-inria
- (package
- (name "font-blackfoundry-inria")
- (version "1.200")
- (home-page "https://github.com/BlackFoundry/InriaFonts")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url home-page)
- (commit (string-append "v" version))))
- (sha256
- (base32
- "06775y99lyh6hj5hzvrx56iybdck8a8xfqkipqd5c4cldg0a9hh8"))
- (file-name (string-append name "-" version "-checkout"))))
- ;; XXX: There are .ufo directories (the "source") so in theory we should
- ;; be able to rebuild TTF and OTF files with FontForge. Unfortunately a
- ;; command like:
- ;;
- ;; fontforge -lang=ff -c "Open('InriaSans-Regular.ufo'); Generate('foo.ttf');"
- ;;
- ;; segfaults in '_UFOLoadGlyph', which calls out to libpython. :-/
- ;; In the meantime we ship the precompiled OTF and TTF files.
- (build-system font-build-system)
- (synopsis "Inria Sans and Inria Serif type family")
- (description
- "Inria Sans and Inria Serif are the two members of a type family designed
- for Inria, a public research institute in computer science and mathematics.")
- (license license:silofl1.1)))
- (define-public font-sil-gentium
- (package
- (name "font-sil-gentium")
- (version "5.000")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "https://software.sil.org/downloads/r/gentium/GentiumPlus-"
- version ".zip"))
- (sha256
- (base32
- "0m7189870hha217n1vgpmf89mwggrxkh679ffi1lxpnjggqi2n9k"))))
- ;; Note: The zip file provides TTF files only, but the developer release,
- ;; which contains additional files, has a 'SOURCES.txt' file that says
- ;; that "the primary source files for the fonts are the fonts themselves".
- ;; Thus it looks like the TTF can be considered source.
- (build-system font-build-system)
- (synopsis "Serif font for the Cyrillic, Greek, and Latin alphabets")
- (description
- "Gentium is a typeface family designed to enable the diverse ethnic
- groups around the world who use the Latin, Cyrillic and Greek scripts to
- produce readable, high-quality publications. The font comes with regular and
- italics shapes. This package provides only TrueType files (TTF).")
- (home-page "https://software.sil.org/gentium/")
- (license license:silofl1.1)))
- (define-public font-sil-andika
- (package
- (name "font-sil-andika")
- (version "5.000")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "https://software.sil.org/downloads/r/andika/Andika-"
- version ".zip"))
- (sha256
- (base32
- "01zm7p32gxfwmv7h3cfj2vx59846w2y6rxqy67grn2dyjh8pljv0"))))
- ;; As for Gentium (see above), the TTF files are considered source.
- (build-system font-build-system)
- (synopsis "Sans serif font designed especially for literacy use")
- (description
- "Andika SIL is a sans serif, Unicode-compliant font designed especially
- for literacy use, taking into account the needs of beginning readers. The
- focus is on clear, easy-to-perceive letterforms that will not be readily
- confused with one another. This package provides only TrueType files (TTF).")
- (home-page "https://software.sil.org/andika/")
- (license license:silofl1.1)))
- (define-public font-sil-charis
- (package
- (name "font-sil-charis")
- (version "5.000")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "https://software.sil.org/downloads/r/charis/CharisSIL-"
- version ".zip"))
- (sha256
- (base32
- "1zcvw37f1a7gkml3yfm6hxh93844llm7xj4w52600qq3ndrm8gjy"))))
- ;; As for Gentium (see above), the TTF files are considered source.
- (build-system font-build-system)
- (synopsis "Serif font for the Cyrillic and Latin alphabets")
- (description
- "Charis SIL is a Unicode-based font family that supports the wide range
- of languages that use the Latin and Cyrillic scripts. It is specially
- designed to make long texts pleasant and easy to read, even in less than ideal
- reproduction and display environments. This package provides only TrueType
- files (TTF).")
- (home-page "https://software.sil.org/charis/")
- (license license:silofl1.1)))
- (define-public font-mononoki
- (package
- (name "font-mononoki")
- (version "1.3")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/madmalik/mononoki/")
- (commit version)))
- (sha256
- (base32
- "07gh84iw84g8fha3gx4yjyl1rsksqhy2kk38f01m048sgjp6ww5j"))
- (file-name (git-file-name name version))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'make-files-writable
- (lambda _
- (for-each make-file-writable (find-files ".")))))))
- (synopsis "Font for programming and code review")
- (description
- "Mononoki is a typeface by Matthias Tellen, created to enhance code
- formatting.")
- (home-page "https://madmalik.github.io/mononoki/")
- (license license:silofl1.1)))
- (define-public font-public-sans
- (package
- (name "font-public-sans")
- (version "1.008")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/uswds/public-sans")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1qhyxbjv1rnydfpqzd18fbiyz75p4sabphy8yj07hyq0hidp5xsf"))))
- (build-system font-build-system)
- (home-page "https://public-sans.digital.gov/")
- (synopsis "Neutral typeface for interfaces, text, and headings")
- (description
- "Public Sans is a strong, neutral, sans-serif typeface for text or
- display based on Libre Franklin.")
- (license license:silofl1.1)))
- (define-public font-hermit
- (package
- (name "font-hermit")
- (version "2.0")
- (source (origin
- (method url-fetch/tarbomb)
- (uri (string-append "https://pcaro.es/d/otf-hermit-" version
- ".tar.gz"))
- (sha256
- (base32
- "09rmy3sbf1j1hr8zidighjgqc8kp0wsra115y27vrnlf10ml6jy0"))))
- (build-system font-build-system)
- (arguments
- `(#:tests? #f))
- (home-page "https://pcaro.es/p/hermit/")
- (synopsis "Monospace font")
- (description
- "Hermit is a monospace font designed to be clear, pragmatic and very
- readable. Its creation has been focused on programming. Every glyph was
- carefully planned and calculated, according to defined principles and rules.
- For this reason, Hermit is coherent and regular.
- Symbols stand out from common text. Dots and commas are easily seen, and
- operators are clear even when not surrounded by spaces. Similar characters
- have been designed to be very distinguishable from each other.")
- (license license:silofl1.1)))
- (define-public font-dseg
- (package
- (name "font-dseg")
- (version "0.46")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri
- (string-append "https://github.com/keshikan/DSEG/"
- "releases/download/v" version
- "/fonts-DSEG_v"
- (string-concatenate (string-split version #\.))
- ".zip"))
- (sha256
- (base32 "13133kpa1ndsji9yq5ppkds5yq2y094qvrv2f83ah74p40sz9hm6"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (font-dir (string-append out "/share/fonts"))
- (truetype-dir (string-append font-dir "/truetype")))
- (with-directory-excursion
- (string-append "fonts-DSEG_v"
- (apply string-append (string-split ,version
- #\.)))
- (for-each (lambda (f) (install-file f truetype-dir))
- (find-files "." "\\.ttf$"))
- #t)))))))
- (home-page "https://www.keshikan.net/fonts-e.html")
- (synopsis "DSEG: 7-segment and 14-segment fonts")
- (description
- "DSEG is a font family that imitates seven- and fourteen-segment LCD
- displays (7SEG, 14SEG). DSEG includes the roman alphabet and symbol glyphs.
- This package provides the TrueType fonts.")
- (license license:silofl1.1)))
- (define-public font-jetbrains-mono
- (package
- (name "font-jetbrains-mono")
- (version "2.221")
- (source
- (origin
- (method url-fetch)
- (uri
- (string-append "https://github.com/JetBrains/JetBrainsMono/releases/"
- "download/v" version "/JetBrainsMono-" version ".zip"))
- (sha256
- (base32 "1acrgv2q9vxviirpi01xy67pkkswyssw4dn5pgyvrnjxr85cgjrg"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install-license-files 'change-directory-to-archive-root
- ;; Find the license file outside of the default subdirectory.
- (lambda _
- (chdir "..")
- #t))
- (replace 'install-license-files
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (doc (string-append out "/share/doc/" ,name "-" ,version)))
- (install-file "OFL.txt" doc)
- #t))))))
- (home-page "https://www.jetbrains.com/lp/mono/")
- (synopsis "Mono typeface for developers")
- (description
- "JetBrains Mono is a font family dedicated to developers. JetBrains
- Mono’s typeface forms are simple and free from unnecessary details. Rendered
- in small sizes, the text looks crisper.")
- (license license:asl2.0)))
- (define-public font-juliamono
- (package
- (name "font-juliamono")
- (version "0.031")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/cormullion/juliamono")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0pcz2qaw0g0gak4plvhgg3m76h4gamffa373r52dzx0qwn1i1cf1"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'delete-website-folder
- ;; This folder contains other unrelated fonts.
- (lambda _
- (delete-file-recursively "website")
- #t)))))
- (home-page "https://github.com/cormullion/juliamono")
- (synopsis "Monospaced font for programming")
- (description
- "JuliaMono is a monospaced font for scientific and technical computing,
- designed to work for programming in the Julia Programming Language and other
- text environments.")
- (license license:silofl1.1)))
- (define-public font-vazir
- (package
- (name "font-vazir")
- (version "22.1.0")
- (source
- (origin
- (method url-fetch/zipbomb)
- (uri
- (string-append "https://github.com/rastikerdar/vazir-font/"
- "releases/download/v" version
- "/vazir-font-v" version ".zip"))
- (sha256
- (base32
- "0w3gwb5q33x5llw7cfs8qhaxr4ssg6rsx4b9day3993zn24xq031"))))
- (build-system font-build-system)
- (home-page "https://rastikerdar.github.io/vazir-font/")
- (synopsis "Vazir Persian typeface")
- (description
- "Vazir is a beautiful and elegant Persian typeface originally based on
- DejaVu, and comes in six variants: Thin, Light, Normal, Medium, Bold, and
- Black. This package provides four versions of Vazir:
- @itemize
- @item @code{Vazir}: The main version; includes Latin glyphs from Roboto.
- @item @code{Vazir-FD}: Like @code{Vazir}, but (always) uses Farsi digit glyphs
- instead of Latin ones.
- @item @code{Vazir-WOL}: Like @code{Vazir}, but without Roboto's Latin glyphs.
- @item @code{Vazir-FD-WOL}: Combination of @code{Vazir-FD} and @code{Vazir-WOL}:
- always uses Farsi digits, and does not include Latin glyphs from Roboto.
- @end itemize\n")
- (license
- ;; See https://github.com/rastikerdar/vazir-font/blob/master/LICENSE for
- ;; details.
- (list license:public-domain ; the Vazir modifications to DejaVu
- ; and the DejaVu modifications to...
- (license:x11-style ; ...the Bitstream Vera typeface
- "file://LICENSE" "Bitstream Vera License")
- license:asl2.0)))) ; Latin glyphs from Roboto
- (define-public font-victor-mono
- (package
- (name "font-victor-mono")
- (version "1.4.2")
- (source (origin
- (method url-fetch/zipbomb)
- (uri (string-append
- "https://github.com/rubjo/victor-mono/raw/v"
- version
- "/public/VictorMonoAll.zip"))
- (sha256 "01260vja0d22mcvkzspf0xnl7b851r0265arqkm12q1vagzyxvkm")))
- (build-system font-build-system)
- (synopsis "Font with support for italics and ligatures")
- (description "Victor Mono is an open-source monospaced font with
- optional semi-connected cursive italics and programming symbol ligatures.
- This package provides only TrueType files (TTF).
- It comes in seven weights and Roman, Italic and Oblique styles.")
- (home-page "https://rubjo.github.io/victor-mono/")
- (license license:expat)))
- (define-public font-meera-inimai
- (package
- (name "font-meera-inimai")
- (version "2.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://gitlab.com/smc/meera-inimai")
- (commit "0f39cdd7dbf1b6d1bed7df85834d33789dce20a7")))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1x5mhrpx24imh0r4l83mkaiszxgwi1q4ppyyvq63h3ddwk20cwdg"))))
- (build-system gnu-build-system)
- (native-inputs
- `(("fontforge" ,fontforge)
- ("harfbuzz" ,harfbuzz "bin")
- ("python" ,python-minimal)
- ("python-fonttools" ,python-fonttools)
- ("python-brotli" ,python-brotli)))
- (arguments
- `(#:make-flags (list "PY=python3"
- (string-append "DESTDIR=" %output)
- "fontpath=/share/fonts/truetype")
- #:test-target "test"
- #:phases
- (modify-phases %standard-phases
- (delete 'configure))))
- (home-page "https://gitlab.com/smc/meera-inimai")
- (synopsis "Meera Inimai Tamil font")
- (description "Meera Inimai is a Unicode font for the Tamil Script. Meera
- Inimai is a san-serif typeface. It is best used as a screen font for body
- text. It is also useful for body text of printed pamphlets or single page
- designs. Meera Inimai can be thought of as similar to Helvetica and its
- variation Arial. Tamil characters are inherently vertically-elliptical. The
- orthography of Roman glyphs of Meera Inimai are also based on this
- characteristic so that they sit smoothly with the Tamil glyphs.")
- (license license:silofl1.1)))
- (define-public font-ipa-mj-mincho
- (package
- (name "font-ipa-mj-mincho")
- (version "006.01")
- (source (origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://mojikiban.ipa.go.jp/OSCDL/IPAmjMincho"
- "/ipamjm" (string-join (string-split version #\.) "")
- ".zip"))
- (sha256
- (base32
- "0s2vs9p7vd7ajnn6c2icli069sjwi4d45a39fczqpwwn507lwj9m"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'install 'install-doc
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((doc-dir (string-append (assoc-ref outputs "out")
- "/share/doc/font-ipa-mj-mincho")))
- (mkdir-p doc-dir)
- (copy-file "Readme.txt" (string-append doc-dir "/README"))
- (copy-file "IPA_Font_License_Agreement_v1.0.txt"
- (string-append doc-dir "/LICENSE"))
- #t))))))
- (home-page "https://mojikiban.ipa.go.jp/1300.html")
- (synopsis "Japanese font from the Information-technology Promotion Agency")
- (description "MJM Mincho is a font that aims at, for example, allowing you
- to write people's name, or for formal business situations where it is necessary
- to have a detailed and proper character style.")
- (license license:ipa)))
- (define-public font-fontna-yasashisa-antique
- (package
- (name "font-fontna-yasashisa-antique")
- (version "0")
- (source (origin
- (method url-fetch)
- (uri (string-append "http://flop.sakura.ne.jp/font/fontna-op/"
- "YasashisaAntiqueFont.zip"))
- (sha256
- (base32
- "1hl2qk3lzmh9h2vv5647vhlslkn3vqbq9rqgp4wzybajafx8c6nj"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; encoding issues cause many phases to fail
- (add-after 'unpack 'fix-encoding
- (lambda _
- ;; This directory, TrueType(サポート外), is not properly encoded,
- ;; which makes rename-file fail. Instead, use shell globbing to
- ;; select and rename the directory.
- (invoke "sh" "-c" "mv TrueType* TrueType")
- #t)))))
- (native-inputs
- `(("bash" ,bash-minimal)
- ("coreutils" ,coreutils)))
- (home-page "http://www.fontna.com/blog/1122/")
- (synopsis "Mix font of gothic kanji and minchou kana")
- (description "Antique is a font that is popular to write manga bubbles,
- dictionary headwords and picture books. This font reduces the thickness
- differences in characters compared to other antique fonts.")
- (license (list license:ipa
- (license:non-copyleft "mplus-TESTFLIGHT-057/LICENSE_E")))))
- (define-public font-mplus-testflight
- (package
- (name "font-mplus-testflight")
- (version "063a")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://osdn.net/frs/redir.php?"
- "m=gigenet&f=mplus-fonts%2F62344%2Fmplus-TESTFLIGHT-"
- version ".tar.xz"))
- (file-name (string-append name "-" version ".tar.xz"))
- (sha256
- (base32
- "0yfx9i77638yrgclnwwl4af79ri3vifi1nslwi6mgzva9cxrgss4"))))
- (build-system font-build-system)
- (home-page "https://mplus-fonts.osdn.jp/index.html")
- (synopsis "Japanese font collection")
- (description "M+ is a collection of Japanese fonts with all Latin glyph
- sets, with Basic Latin, Latin-1 Supplement, Latin Extended-A, and IPA
- Extensions. In addition to European letters used in many Western European
- languages, it contains Japanese characters, including Kana glyphs and more
- than 5,300 Kanji glyphs, as well major international phonetic symbols,
- operators and special symbols.")
- (license (license:non-copyleft "file:///LICENSE_E"))))
- (define-public font-catamaran
- (let ((commit "7559b4906f9c9148fb22c6f89508c3053a78a296")
- (revision "1"))
- (package
- (name "font-catamaran")
- (version (git-version "0.0.0" revision commit))
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/VanillaandCream/Catamaran-Tamil")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1wpp41l7j2kpgnyavhgxcc5wp852a4wqsnwravn39gp980s84yxw"))))
- (build-system font-build-system)
- (home-page "https://github.com/VanillaandCream/Catamaran-Tamil")
- (synopsis "9 weight Tamil and Latin type")
- (description "Catamaran is a 9 weight Tamil and Latin type. Catamaran
- is a stylish type with a polished yet relaxed feel. Its versatility makes it
- suitable for a wide range of uses.")
- (license license:silofl1.1))))
- (define-public font-cozette
- (package
- (name "font-cozette")
- (version "1.9.3")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/slavfox/Cozette")
- (commit (string-append "v." version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0mb5ns6705piwgjw1g10czsakhyc1jnvxh342ixw8m5f1gf4595n"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'build
- (lambda _
- (invoke "python3" "build.py" "fonts"))))))
- (native-inputs
- `(("fontforge" ,fontforge)
- ("python" ,python)
- ("python-crayons" ,python-crayons)
- ("python-fonttools" ,python-fonttools)
- ("python-numpy" ,python-numpy)
- ("python-pillow" ,python-pillow)))
- (home-page "https://github.com/slavfox/Cozette")
- (synopsis "Bitmap programming font")
- (description "Cozette is a 6x13px (bounding box) bitmap font based on Dina
- and heavily inspired by Creep.")
- (license license:expat)))
- (define-public font-montserrat
- (package
- (name "font-montserrat")
- (version "7.210")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/JulietaUla/Montserrat")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0jn1yvfamq5xazw85sfnxgriji60g7mkss9mkf8d0117vdk838bn"))))
- (build-system font-build-system)
- (home-page "https://github.com/JulietaUla/Montserrat")
- (synopsis "The Montserrat font")
- (description "The old posters and signs in the traditional Montserrat
- neighborhood of Buenos Aires inspired Julieta Ulanovsky to design this
- typeface and rescue the beauty of urban typography that emerged in the first
- half of the twentieth century.")
- (license license:silofl1.1)))
- (define-public font-overpass
- (package
- (name "font-overpass")
- (version "3.0.5")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/RedHatOfficial/Overpass")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1vsp94h7v5sn29hajv2ng94gyx4pqb0xgvn3gf7jp2q80gdv8pkm"))))
- (build-system font-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'delete-webfonts
- (lambda _
- (delete-file-recursively "webfonts"))))))
- (home-page "https://overpassfont.org")
- (synopsis "Sans serif font family inspired by Highway Gothic")
- (description
- "Overpass is a sans-serif typeface based on the U.S. interstate highway
- road signage typefaces, adapted for on-screen display and user interfaces.
- Overpass includes proportional and monospace variants.")
- (license (list license:silofl1.1
- license:lgpl2.1))))
|