From patchwork Tue Feb 27 12:54:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 61160 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 F128E27BBE2; Tue, 27 Feb 2024 13:11:17 +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 2503C27BBEB for ; Tue, 27 Feb 2024 13:11:10 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rexET-0000sd-UF; Tue, 27 Feb 2024 08:10:53 -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 1rexEL-0000lz-5g for guix-patches@gnu.org; Tue, 27 Feb 2024 08:10:47 -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 1rexEK-0006bG-Pj for guix-patches@gnu.org; Tue, 27 Feb 2024 08:10:44 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rexEc-0005Ts-D4; Tue, 27 Feb 2024 08:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69424] [PATCH 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, yangjiwei@protonmail.com, guix-patches@gnu.org Resent-Date: Tue, 27 Feb 2024 13:11: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?= , Jiwei YANG X-Debbugs-Original-Xcc: Zhu Zihao , =?utf-8?b?5a6L5paH?= =?utf-8?b?5q2m?= , Jiwei YANG Received: via spool by 69424-submit@debbugs.gnu.org id=B69424.170903941820950 (code B ref 69424); Tue, 27 Feb 2024 13:11:02 +0000 Received: (at 69424) by debbugs.gnu.org; 27 Feb 2024 13:10:18 +0000 Received: from localhost ([127.0.0.1]:51839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rexDt-0005Ro-9h for submit@debbugs.gnu.org; Tue, 27 Feb 2024 08:10:18 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:52342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rex0y-0004nr-I6 for 69424@debbugs.gnu.org; Tue, 27 Feb 2024 07:56:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1709038572; 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=WQWbtxG+gYjIia7Rer43upeE0rnizdJyQ5OQN/MC+pw=; b=S3TJAyA/EenezYa/eYK6I3SKKZ8hxa74NeH3MuZ7hRN566yBN4bLOtlsHo8FS09XHCEcVM oY6OTUjss1gpbe78HIXyt/urkAD44Nv4CGi5KGQq0p19lVku+dAnUmcF7lt45Z25xqUx5A MzsjiZGNw5rNTrDyK48VXHALYt03XURIWecqEG30QpjoGIyqIPu323sla18+Efn93mTV4E TD7O7iDzm5OrBzKz5nw+lWv6YqZmWvdzH7y44An7tMAD1W7NvQY0FpHjjmn8kQ4B0tE71p HAJy9gVcYwhJDdhiPNnbCLuT12+L0HWMTtdrxikSvGnZUlKq5lW6jDO2z5PPhQ== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Date: Tue, 27 Feb 2024 20:54:27 +0800 Message-ID: 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. [arguments]<#:phases>: Only install ttc files. Change-Id: I996d75b7892333bc69d21af53a5243a442e3a6b3 --- gnu/packages/fonts.scm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) -- 2.41.0 diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 472853afa4..69a2c62474 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -1184,11 +1184,23 @@ (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 ((dir (string-append #$output "/share/fonts/truetype"))) + (with-directory-excursion "OTC" + (for-each + (lambda (font) + (install-file font dir)) + '("NotoSansCJK-VF.otf.ttc" + "NotoSansMonoCJK-VF.otf.ttc"))))))))) (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