[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: gnu: font-google-noto-sans-cjk: Switch to variable fonts.
From: |
guix-commits |
Subject: |
04/08: gnu: font-google-noto-sans-cjk: Switch to variable fonts. |
Date: |
Sat, 16 Mar 2024 21:01:40 -0400 (EDT) |
hako pushed a commit to branch master
in repository guix.
commit f287fa3e01d577caf9f270828aa79f8fa10e0614
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Tue Feb 27 20:25:19 2024 +0800
gnu: font-google-noto-sans-cjk: Switch to variable fonts.
* gnu/packages/fonts.scm (font-google-noto-sans-cjk)
[source]: Switch to variable fonts.
[arguments]<#:phases>: Keep only TTCs in "out".
Install OTFs into "otf" output.
[outputs]: Add "otf".
Change-Id: I996d75b7892333bc69d21af53a5243a442e3a6b3
---
gnu/packages/fonts.scm | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 2170fb2d7b..ebf7160bc0 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1187,11 +1187,23 @@ family.")
(method url-fetch)
(uri (string-append
"https://github.com/googlefonts/noto-cjk/releases/download/Sans"
- version "/03_NotoSansCJK-OTC.zip"))
+ version "/01_NotoSansCJK-OTF-VF.zip"))
(file-name (string-append name "-" version ".zip"))
(sha256
- (base32 "1v9yda7r98g4a3pk0y3cjbgc1i2lv4ax0f0v6aqasfzz4ldlx3sj"))))
+ (base32 "1ka37kqyd0sfqwk485nv6ihrdjl5xycr38m4jq40r2lzmpmkmqym"))))
(build-system font-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'install
+ (lambda _
+ (chdir "..") ;For license.
+ (let ((install (assoc-ref %standard-phases 'install)))
+ (with-directory-excursion "Variable/OTC"
+ (install #:outputs `(("out" . ,#$output))))
+ (with-directory-excursion "Variable/OTF"
+ (install #:outputs `(("out" . ,#$output:otf))))))))))
+ (outputs '("out" "otf"))
(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
- branch master updated (6fda9cfd0f -> edfb05e16d), guix-commits, 2024/03/16
- 01/08: gnu: font-google-noto: Update to 24.2.1., guix-commits, 2024/03/16
- 02/08: gnu: font-google-noto: Prefer variable fonts and split outputs., guix-commits, 2024/03/16
- 03/08: gnu: font-google-noto-emoji: Update to 2.042., guix-commits, 2024/03/16
- 04/08: gnu: font-google-noto-sans-cjk: Switch to variable fonts.,
guix-commits <=
- 05/08: gnu: font-google-noto-serif-cjk: Update to 2.002., guix-commits, 2024/03/16
- 06/08: gnu: smartdns: Update to 45., guix-commits, 2024/03/16
- 07/08: gnu: grimshot: Fix build., guix-commits, 2024/03/16
- 08/08: gnu: wlgreet: Update to 0.4.1-1.7e79d60., guix-commits, 2024/03/16