From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4OEeOBaYCWEI4AAAgWs5BA (envelope-from ) for ; Tue, 03 Aug 2021 21:25:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MIHAMxaYCWHTcAAAB5/wlQ (envelope-from ) for ; Tue, 03 Aug 2021 19:25:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F2BFC1E8FC for ; Tue, 3 Aug 2021 21:25:09 +0200 (CEST) Received: from localhost ([::1]:57916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mB02H-0000LP-0j for larch@yhetil.org; Tue, 03 Aug 2021 15:25:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB02A-0000LB-OH for guix-patches@gnu.org; Tue, 03 Aug 2021 15:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58224) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mB02A-0003d5-F6 for guix-patches@gnu.org; Tue, 03 Aug 2021 15:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mB02A-0003f3-8e for guix-patches@gnu.org; Tue, 03 Aug 2021 15:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35045] [PATCH] gnu: Add font-iosevka-ssNN variants. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 Aug 2021 19:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35045 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 35045@debbugs.gnu.org, Tobias Geerinckx-Rice Received: via spool by 35045-submit@debbugs.gnu.org id=B35045.162801867514037 (code B ref 35045); Tue, 03 Aug 2021 19:25:02 +0000 Received: (at 35045) by debbugs.gnu.org; 3 Aug 2021 19:24:35 +0000 Received: from localhost ([127.0.0.1]:41537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB01f-0003eH-NW for submit@debbugs.gnu.org; Tue, 03 Aug 2021 15:24:35 -0400 Received: from mail-qk1-f180.google.com ([209.85.222.180]:42946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB01e-0003e5-7K for 35045@debbugs.gnu.org; Tue, 03 Aug 2021 15:24:30 -0400 Received: by mail-qk1-f180.google.com with SMTP id o13so430158qkk.9 for <35045@debbugs.gnu.org>; Tue, 03 Aug 2021 12:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=EuLSjy+YAEvr4Nq0GXiricrlPIiaXxhBFqdtNfaORIs=; b=IN054Sm82bgJ9zLFEMn58tzhHiXvS4oOIzRmwX2P2zj+l2xC/aTAmIZeNMVNCT5xat XVmsUqG55wUClACiR5WduUHittj9deFXNY8uBMj5/+4ggC7SrSDOz6sN4ZHrMgedE2m7 Y4tHXJ0vK3fsa/YZxv/m5PAInHvmANA84p+zImjkJ6uMsca4Xn8x1Frv8MlYonvyIHGJ Wo/semN5cQOmJ2FItl8et1qBXAbLUKwHvD+eRhVdSa8o6J44dIAa+15dOmaw6r+EC5W7 cZ8XbXKbjgORF4mxHi0qYF+BiKI+lCs9QQqfUOtU24aqc0OoQ95DXtI+WzVMM0MrZ3TQ ctXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=EuLSjy+YAEvr4Nq0GXiricrlPIiaXxhBFqdtNfaORIs=; b=P5UelXytI5xl2qg8L+XrQ8Czur1yBSz6iRKmsk0s+7Av3Am337imTLQyVBVj7lC0QT fY/RT66joCyP/5zHWOwm8Af6NzDPUHRvZb9W9kckH7fAxL4m0y74RNkr8WbuHE9NqA2S e3U7//1sCXL3By/vCPWFCaJilM5N206q0kP65jfEDL0ENL+JSlfcLjr8UJ8DSfXQWvWd 7tuJTrqZ+pnS5KuVLmAfVek71lQawVA3FVo6JToIpHh4dgnlpg6isi/u2Mchlt4AYM9j c4Na99JRyKshh25Px2ZI3MKE6jB1AYPRjX+4GW7yPckOrsTsf2hY7dEfLXW5fMxUt7Ey Cikw== X-Gm-Message-State: AOAM533aJ20b8ReuIk/zS6UnodtAQ9hwRdsdyHwAxGmADOtmDwtZZPVY QMMDTLdA0SLicMM0NupKD1E= X-Google-Smtp-Source: ABdhPJxX10Ze5xM+hnFYPWmBW7d5vL31enpBa9/x85T9jUiZFeEVyaXbGhzAElgrnHPrW6H0Gx79zQ== X-Received: by 2002:a05:620a:16c6:: with SMTP id a6mr21740645qkn.312.1628018664821; Tue, 03 Aug 2021 12:24:24 -0700 (PDT) Received: from hurd (dsl-10-129-132.b2b2c.ca. [72.10.129.132]) by smtp.gmail.com with ESMTPSA id k14sm6677116qtm.18.2021.08.03.12.24.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 12:24:24 -0700 (PDT) From: Maxim Cournoyer References: <20190329210515.28254-1-somebody@not-sent-or-endorsed-by.tobias.gr> Date: Tue, 03 Aug 2021 15:24:23 -0400 In-Reply-To: <20190329210515.28254-1-somebody@not-sent-or-endorsed-by.tobias.gr> (Tobias Geerinckx-Rice's message of "Fri, 29 Mar 2019 22:05:15 +0100") Message-ID: <875ywm9vrs.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628018710; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EuLSjy+YAEvr4Nq0GXiricrlPIiaXxhBFqdtNfaORIs=; b=fVFax4x62IKMoVfAVtPxd0R6nrwVYZwWou1YZoXymsZ/wUk/jSuKKYWI1FC6ju0C8iZrbV HmiAwa+p1+2nqDTT0wUJsA2Gcisi/nMf3W/Ev8lM8Pz4c9tjQ8Rx/hNxwRcIKfBWLFZ+pn SyEEcUx9XcVOyH+G9wGauIjpNTkyNmHbor6LHeY8B+oaf7NN2zy5TafZT/awiCXTrvBBJS 1FuCColcERPXB+M0mzjzhFS3eAPhj/fHqSphYskLCaN3ml0yKdSRagCE/CgAbd9QnbFRwT e918qBM5Eg+pLmNG21rqxYLPVFQVIPPWKAAdMayZwFe8NcyUAQXGQcVp4pB2Iw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628018710; a=rsa-sha256; cv=none; b=krVP1uLXFNIjag0jR0/bgR8qoYKE85oBQWEUi/HVwejJD6FPpe1GjHwnvtRqZhvPXyp0rL tbG5gj7l2GHs9pNwDSm/Sb7jds9bKDGAQscb/5+ykEMjAlULmVBZIqgostRtZueO3NG+I4 zCIOtewKMcHgnOg9jBli3fU/O01ns2qvnAxHHQpsyjCs5PbB1VOtfYYQIyowFmT3fcvOrA DEtJhQVCYVMrWNK2nqHvhG8QwYK7P1dNAQVviIvq+sTRdUigOdGcIA7wsq/jVBYBEAK6Vo OD6cd7KzaxX8svlZ/L7KgVX5lHXtg4Q90Wan7P0gPO4kts2xG2dFqQvlgKCOlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=IN054Sm8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=IN054Sm8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: F2BFC1E8FC X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: ojoBALReQK7c Hello, Tobias Geerinckx-Rice writes: > From: Tobias Geerinckx-Rice > > * gnu/packages/fonts.scm (font-iosevka, ttc-iosevka-slab): Use new > FONT-IOSEVKA-VARIANT procedure. > (font-iosevka-ss01, font-iosevka-ss02, font-iosevka-ss03) > (font-iosevka-ss04, font-iosevka-ss05, font-iosevka-ss06) > (font-iosevka-ss07, font-iosevka-ss08, font-iosevka-ss09) > (font-iosevka-ss10, font-iosevka-ss11): New public variables. > --- > > Guix, > > People who install such fonts likely care about things like this[0]. I d= o. > > Questions marked with =E2=80=98XXX=E2=80=99 in-line. > > Kind regards, > > T G-R > > [0]: https://raw.githubusercontent.com/be5invis/Iosevka/master/images/sty= lesets.png > > gnu/packages/fonts.scm | 119 +++++++++++++++++++++++++++++++++-------- > 1 file changed, 97 insertions(+), 22 deletions(-) > > diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm > index 569a7f807e..945b321170 100644 > --- a/gnu/packages/fonts.scm > +++ b/gnu/packages/fonts.scm > @@ -1083,41 +1083,116 @@ later hand-tweaked with the gbdfed(1) editor: > typeface, by mimicking Comic Sans while fixing its most obvious shortcom= ings.") > (license license:silofl1.1))) >=20=20 > -(define-public font-iosevka > +(define* (font-iosevka-variant name archive-prefix > + #:key sha256 synopsis) > (package > - (name "font-iosevka") > + (name name) > (version "2.2.0") > (source > (origin > (method url-fetch/zipbomb) > - (uri (string-append "https://github.com/be5invis/Iosevka" > - "/releases/download/v" version > - "/ttc-iosevka-" version ".zip")) > - (sha256 > - (base32 "14jfv6pkh1w44m89z2fn44kgmmqaf0057lk71advwfbm3q313y0x"))= )) > + (uri (string-append "https://github.com/be5invis/Iosevka/" > + "releases/download/v" version "/" > + archive-prefix "-" version ".zip")) > + (sha256 sha256))) > (build-system font-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (add-before 'install 'maybe-change-directory > + ;; The SS-* variants ship the TTF fonts in a =E2=80=98ttf/=E2= =80=99 subdirectory > + ;; alongside other formats, the others don't. > + ;; XXX Install these other formats (e.g. WOFF2) too? > + (lambda _ > + (when (file-exists? "ttf") > + (chdir "ttf")) > + #t))))) > (home-page "https://be5invis.github.io/Iosevka/") > - (synopsis "Coders' typeface, built from code") > + (synopsis synopsis) ; XXX does this do the right i18n thi= ng? > (description > "Iosevka is a slender monospace sans-serif or slab-serif typeface i= nspired > 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 > + (license (list license:silofl1.1 ; build artifacts (i.e. the font= s) > + license:bsd-3)))) ; supporting code > + > +(define-public font-iosevka > + (font-iosevka-variant > + "font-iosevka" "ttc-iosevka" > + #:sha256 (base32 "14jfv6pkh1w44m89z2fn44kgmmqaf0057lk71advwfbm3q313y0= x") > + #:synopsis "Coders' typeface, built from code (sans-serif variant)")) >=20=20 > (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 "186d0pl13znysll3hvzm1ixn7ad616g6dhla55sbh6ki2j04b8ml"))= )))) > + (font-iosevka-variant > + "font-iosevka-slab" "ttc-iosevka-slab" > + #:sha256 (base32 "186d0pl13znysll3hvzm1ixn7ad616g6dhla55sbh6ki2j04b8m= l") > + #:synopsis "Coders' typeface, built from code (slab-serif variant)")) > + > +(define-public font-iosevka-ss01 > + (font-iosevka-variant > + "font-iosevka-ss01" "iosevka-ss01" > + #:sha256 (base32 "0ax5fcc8s6kcfd8ds67pn9h89ddjm0fpa2fs5dqn0aqx56v3047= j") > + #:synopsis "Coders' typeface, built from code (sans-serif SS01 varian= t)")) > + > +(define-public font-iosevka-ss02 > + (font-iosevka-variant > + "font-iosevka-ss02" "iosevka-ss02" > + #:sha256 (base32 "09sny0alsgzb9diz8illnvvqbqa9yhhyjk9a2awbppddbh91k2q= s") > + #:synopsis "Coders' typeface, built from code (sans-serif SS02 varian= t)")) > + > +(define-public font-iosevka-ss03 > + (font-iosevka-variant > + "font-iosevka-ss03" "iosevka-ss03" > + #:sha256 (base32 "1gnf01bima08siphnhgg7kygmks0p717j1fdq07fkigsi2g0fba= y") > + #:synopsis "Coders' typeface, built from code (sans-serif SS03 varian= t)")) > + > +(define-public font-iosevka-ss04 > + (font-iosevka-variant > + "font-iosevka-ss04" "iosevka-ss04" > + #:sha256 (base32 "1gkdz843c5qsrl1k8j5ib9gpkkrcf5hkd5rghfq1ivi1a7rvjs4= r") > + #:synopsis "Coders' typeface, built from code (sans-serif SS04 varian= t)")) > + > +(define-public font-iosevka-ss05 > + (font-iosevka-variant > + "font-iosevka-ss05" "iosevka-ss05" > + #:sha256 (base32 "10n1zmpnp8s1bxyr1yv14nvmf1g91hdsl1c4j3y9d94kcpsvqbw= i") > + #:synopsis "Coders' typeface, built from code (sans-serif SS05 varian= t)")) > + > +(define-public font-iosevka-ss06 > + (font-iosevka-variant > + "font-iosevka-ss06" "iosevka-ss06" > + #:sha256 (base32 "12d4gidmp1ldnlmdzp7x6d7b2jxyykf6y53h5x3hh8acz5q9172= n") > + #:synopsis "Coders' typeface, built from code (sans-serif SS06 varian= t)")) > + > +(define-public font-iosevka-ss07 > + (font-iosevka-variant > + "font-iosevka-ss07" "iosevka-ss07" > + #:sha256 (base32 "19lppgmwgjh7ykyvlhjbf26yfnpiy3wa6l358kvx0w8xrgrm6fz= 9") > + #:synopsis "Coders' typeface, built from code (sans-serif SS07 varian= t)")) > + > +(define-public font-iosevka-ss08 > + (font-iosevka-variant > + "font-iosevka-ss08" "iosevka-ss08" > + #:sha256 (base32 "0bc50z01ywh5y5y24xmiwqbw10vp5hjlrg7y8nmqjxg04222q6v= i") > + #:synopsis "Coders' typeface, built from code (sans-serif SS08 varian= t)")) > + > +(define-public font-iosevka-ss09 > + (font-iosevka-variant > + "font-iosevka-ss09" "iosevka-ss09" > + #:sha256 (base32 "082bfnmc73wf84c9z0kpamf857j6ibcfg141vs15fjkairvwk1j= b") > + #:synopsis "Coders' typeface, built from code (sans-serif SS09 varian= t)")) > + > +(define-public font-iosevka-ss10 > + (font-iosevka-variant > + "font-iosevka-ss10" "iosevka-ss10" > + #:sha256 (base32 "0vy76r1bph1nh43dvkdi0wgf1fgq5qwmnmcxrjfkilmx0jzpmmk= g") > + #:synopsis "Coders' typeface, built from code (sans-serif SS10 varian= t)")) > + > +(define-public font-iosevka-ss11 > + (font-iosevka-variant > + "font-iosevka-ss11" "iosevka-ss11" > + #:sha256 (base32 "1skgn1z14rk5xvnzvnk8i4s90hrxcxnmchhasbp8jg6cmqwpp17= 7") > + #:synopsis "Coders' typeface, built from code (sans-serif SS11 varian= t)")) >=20=20 > (define-public font-go > (let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc") Do you still use the above patch? font-iosevka is now at 7.0.3 vs 2.2.0 when you authored the above, making me wondering whether it's still actual/correct. Thanks, Maxim