summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Prikler <leo.prikler@student.tugraz.at>2021-05-24 10:46:45 +0200
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-05-22 00:11:15 -0400
commit6e0b2adf5f80d42f3a0e09e7de2bcfe188678997 (patch)
tree6093d7fdaab018d8bf92e98ea28ea821bd492e80
parentgnu: diffoscope: Update to 213. (diff)
downloadguix-6e0b2adf5f80d42f3a0e09e7de2bcfe188678997.tar.gz
guix-6e0b2adf5f80d42f3a0e09e7de2bcfe188678997.tar.bz2
guix-6e0b2adf5f80d42f3a0e09e7de2bcfe188678997.tar.xz
gnu: Add font-ipa-ex.
* gnu/packages/fonts.scm (font-ipa-ex): New variable. Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r--gnu/packages/fonts.scm48
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 89c9afedeb..eaa11b1c81 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -48,6 +48,7 @@
48;;; Copyright © 2021 Wamm K. D. <jaft.r@outlook.com> 48;;; Copyright © 2021 Wamm K. D. <jaft.r@outlook.com>
49;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com> 49;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
50;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> 50;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
51;;; Copyright © 2021 Liliana Marie Prikler <liliana.prikler@gmail.com>
51;;; 52;;;
52;;; This file is part of GNU Guix. 53;;; This file is part of GNU Guix.
53;;; 54;;;
@@ -2250,6 +2251,53 @@ orthography of Roman glyphs of Meera Inimai are also based on this
2250characteristic so that they sit smoothly with the Tamil glyphs.") 2251characteristic so that they sit smoothly with the Tamil glyphs.")
2251 (license license:silofl1.1))) 2252 (license license:silofl1.1)))
2252 2253
2254(define-public font-ipa-ex
2255 (package
2256 (name "font-ipa-ex")
2257 (version "004.01")
2258 (source (origin
2259 (method url-fetch/zipbomb)
2260 (uri (string-append
2261 "https://moji.or.jp/wp-content/ipafont/IPAexfont/"
2262 "IPAexfont" (string-join (string-split version #\.) "")
2263 ".zip"))
2264 (sha256
2265 (base32
2266 "0jwpszgisrls1lsgq1ngcm99zjaikb8hshr02512qrzrnd53gy5w"))))
2267 (build-system font-build-system)
2268 (arguments
2269 (list
2270 #:phases
2271 #~(modify-phases %standard-phases
2272 (add-after 'unpack 'make-read-only
2273 (lambda _
2274 ;; Otherwise the files have the executable bit set.
2275 (for-each (lambda (file)
2276 (chmod file #o444))
2277 (find-files "." #:directories? #f))))
2278 (add-after 'install 'install-doc
2279 (lambda* (#:key outputs #:allow-other-keys)
2280 (let ((font+version
2281 #$(string-append
2282 "IPAexfont"
2283 (string-join (string-split version #\.) "")))
2284 (doc-dir (string-append #$output "/share/doc/" #$name)))
2285 (with-directory-excursion font+version
2286 (mkdir-p doc-dir)
2287 (copy-file (string-append "Readme_" font+version ".txt")
2288 (string-append doc-dir "/README"))
2289 (copy-file "IPA_Font_License_Agreement_v1.0.txt"
2290 (string-append doc-dir "/LICENSE")))))))))
2291 (home-page "https://moji.or.jp/ipafont/")
2292 (synopsis "Japanese font from the Information-technology Promotion Agency")
2293 (description "IPAex Fonts are suitable for both display and printing.
2294This is a modernized version of IPA Fonts that aims to provide a good balance
2295for authoring Japanese documents mixed with Western characters, while
2296following Japanese printing tradition. Japanese characters (Kanji, Kana and
2297punctuation marks) are full width mono-space pitch, and Western characters are
2298proportional pitch.")
2299 (license license:ipa)))
2300
2253(define-public font-ipa-mj-mincho 2301(define-public font-ipa-mj-mincho
2254 (package 2302 (package
2255 (name "font-ipa-mj-mincho") 2303 (name "font-ipa-mj-mincho")