From patchwork Wed Feb 28 13:32:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 61212 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 783BC27BBEA; Wed, 28 Feb 2024 13:34:03 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1B93227BBE2 for ; Wed, 28 Feb 2024 13:34:03 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfK42-0006nF-8j; Wed, 28 Feb 2024 08:33:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfK40-0006md-JD for guix-patches@gnu.org; Wed, 28 Feb 2024 08:33:36 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfK40-0007qh-An for guix-patches@gnu.org; Wed, 28 Feb 2024 08:33:36 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfK4Q-00074v-GF; Wed, 28 Feb 2024 08:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69424] [PATCH v3 4/5] gnu: font-google-noto-sans-cjk: Switch to variable fonts. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: all_but_last@163.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Wed, 28 Feb 2024 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69424 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69424@debbugs.gnu.org Cc: Hilton Chain , Zhu Zihao , =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-Xcc: Zhu Zihao , =?utf-8?b?5a6L5paH?= =?utf-8?b?5q2m?= Received: via spool by 69424-submit@debbugs.gnu.org id=B69424.170912720127106 (code B ref 69424); Wed, 28 Feb 2024 13:34:02 +0000 Received: (at 69424) by debbugs.gnu.org; 28 Feb 2024 13:33:21 +0000 Received: from localhost ([127.0.0.1]:40050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfK3j-000735-G4 for submit@debbugs.gnu.org; Wed, 28 Feb 2024 08:33:20 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:35098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfK3e-00072h-Bo for 69424@debbugs.gnu.org; Wed, 28 Feb 2024 08:33:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1709127149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eNrtvjwv+wvWGf/Ivne6O0EefNkHFa1lQRD22h8lmQc=; b=NPoskAYvE4fFYyhh853qmDy7ZzqcUCc4YqjkryQLaOwkbvrsLLTe+dV9rwG5Yh5QhmGkv8 8QNP4ZkDrtKInRUqIG1ZN5mLX7j626Nk9B6MXdgq0kGT6HYpbJ6FCyJjXEcei5fshs8369 CH4hAgve0ZDJ1wKzHiSxSgDOQnR4meWCm8a0Sf0dfUfUd4UhTzx3ncqPC0Fy9aim1cuq1s AcRpogL9klp+CHTzlK4uiDaV9Wkd66XcFwFE8Nbh674+wNB2JqxJg149no4ZaxybDipJcY Erahdr8rY7iljrC8KIWJsLLf/eJcpATCh+0wqTVeQO9hDRZ6o0Li8L4KQSK9uw== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Date: Wed, 28 Feb 2024 21:32:21 +0800 Message-ID: <3f1bd566a3e844a620543a010915b4d298fbd08f.1709126510.git.hako@ultrarare.space> In-Reply-To: References: MIME-Version: 1.0 X-Spamd-Bar: -- X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches X-Patchwork-Original-From: Hilton Chain via Guix-patches via From: Hilton Chain Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/fonts.scm (font-google-noto-sans-cjk) [source]: Switch to variable fonts. [outputs]: Add "otf". [arguments]<#:phases>: Install OTFs into it. Keep TTCs in "out". Change-Id: I996d75b7892333bc69d21af53a5243a442e3a6b3 --- gnu/packages/fonts.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index e1e1127ab5..42ebda3ef4 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -1187,11 +1187,22 @@ (define-public font-google-noto-sans-cjk (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 _ + (let ((install (assoc-ref %standard-phases 'install))) + (with-directory-excursion "OTC" + (install #:outputs `(("out" . ,#$output)))) + (with-directory-excursion "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