From patchwork Thu Jan 13 02:20:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 36284 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 09C3327BBEA; Thu, 13 Jan 2022 02:24:14 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 90AC427BBE9 for ; Thu, 13 Jan 2022 02:24:13 +0000 (GMT) Received: from localhost ([::1]:60856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7pme-0006cd-Q9 for patchwork@mira.cbaines.net; Wed, 12 Jan 2022 21:24:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7pkZ-000524-9Q for guix-patches@gnu.org; Wed, 12 Jan 2022 21:22:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7pkY-00053p-WF for guix-patches@gnu.org; Wed, 12 Jan 2022 21:22:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7pkY-0002uc-Tr; Wed, 12 Jan 2022 21:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53226] [PATCH] gnu: Add font-charter. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip@philipmcgrath.com, guix-patches@gnu.org Resent-Date: Thu, 13 Jan 2022 02:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53226 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53226@debbugs.gnu.org Cc: Philip McGrath X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Philip McGrath Received: via spool by submit@debbugs.gnu.org id=B.164204046811107 (code B ref -1); Thu, 13 Jan 2022 02:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Jan 2022 02:21:08 +0000 Received: from localhost ([127.0.0.1]:59574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7pjf-0002sy-OP for submit@debbugs.gnu.org; Wed, 12 Jan 2022 21:21:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:58228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7pjW-0002rw-SK for submit@debbugs.gnu.org; Wed, 12 Jan 2022 21:21:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7pjU-0003aY-Pg for guix-patches@gnu.org; Wed, 12 Jan 2022 21:20:58 -0500 Received: from [2607:f8b0:4864:20::82c] (port=37804 helo=mail-qt1-x82c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7pjR-0004qx-Rj for guix-patches@gnu.org; Wed, 12 Jan 2022 21:20:56 -0500 Received: by mail-qt1-x82c.google.com with SMTP id g21so5258924qtk.4 for ; Wed, 12 Jan 2022 18:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=WGhlqAXkQjFxjQE2RsRTBgHzs94/TV4+B1c048fow6I=; b=bbeS8XMLWodRIFj176Dz95nbfqlu1YBa7h9862NBvet/DvQq7+5xwLrRHc56td+yVB XxMhqnNzZRnxvLQBu5Q69JW8kEo93hzOAMLdV+KB1YwYoVWEj1lP/zHPyXUwrNDTAmtP 2BoxzuaqMOTYJaIpEf1QMCzEef8L75DgRKmT9VzTTf3ojAvvSrZxrwZvI1B+zSPaxxqp A4/tKCF27fxZLUqAtM0oHVRW9bqWU7b+04vglGPCbXdpg5HczO+HJDpvk5ZwqVIRYyzC qItfPpMocEjHMkmY/opmUwLTapLpKEP3FqRB5IfKxRVChRUxPdHG4QaY72gjponcecjt oYfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=WGhlqAXkQjFxjQE2RsRTBgHzs94/TV4+B1c048fow6I=; b=AwKQP+0LmAePndSgr+x0SMrwyeySo344zi2xpgltkNfgtQigvjCuvaOJBZtiVW+zap uYYKkaGMYWZvbLtx8S5CsX5W5iKCdj80VC3IPqX88K/F7lIWnTtwcKEZWFGLKBX3XEaX knjVDCu7l6KWh1itvCWfP/MAPJly6FoUCQQEctinjMt0cMqadewNksfHEkXwYQigiAH7 Dgrrd9goSWuqL7T2zJtIL6Gcm0o1jHndRvnCPXJBqCVWlh9cjtRFmeNVst0f05wuOLz0 ZZ66D4uqYCD84U4Ny+fS73hx4yTCahQRNTOQCJQLHA3v0IjQG0NfuLab5980vt09A1Cf 1AyA== X-Gm-Message-State: AOAM530rCYtmH3iu7ITzNcwd5pYGTDxadC7OkZMvTSvGswYDsZA7vluP fXnMz8UgS+o6IaOqwmkHLNB5C8gs6xG7NPWF X-Google-Smtp-Source: ABdhPJxwQf7K77/4qqmL8K3QqDdhF+4ZPXWoP7+MX8QyG433iUwT0nrcm+WpF+FUUeD/XMuJmq/zxA== X-Received: by 2002:ac8:5994:: with SMTP id e20mr2054544qte.75.1642040451320; Wed, 12 Jan 2022 18:20:51 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id h6sm902786qko.130.2022.01.12.18.20.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jan 2022 18:20:51 -0800 (PST) From: Philip McGrath Date: Wed, 12 Jan 2022 21:20:50 -0500 Message-Id: <20220113022050.327333-1-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::82c (failed) Received-SPF: neutral client-ip=2607:f8b0:4864:20::82c; envelope-from=philip@philipmcgrath.com; helo=mail-qt1-x82c.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/fonts.scm (font-charter): New variable. --- gnu/packages/fonts.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index df1446380f..1d04531052 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2021 Sergiu Ivanov ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Paul A. Patience +;;; Copyright © 2022 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -2288,3 +2289,42 @@ (define-public font-overpass Overpass includes proportional and monospace variants.") (license (list license:silofl1.1 license:lgpl2.1)))) + +(define-public font-charter + (let ((butterick-version "210112")) ;; yymmdd + (package + (name "font-charter") + (version (string-append "2.0.0-" butterick-version)) + (source + (origin + (method url-fetch) + (uri (string-append "https://practicaltypography.com/fonts/Charter%20" + butterick-version ".zip")) + (file-name (string-append name "-" version ".zip")) + (sha256 + (base32 "1j8iv2dl695zrabs2knb7jsky8mjis29a2ddpna4by8mlvqrf0ml")))) + (outputs '("out" "woff2")) + (build-system font-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-woff2 + (lambda* (#:key outputs #:allow-other-keys) + (let ((dest (string-append (assoc-ref outputs "woff2") + "/share/fonts/woff2"))) + (for-each (lambda (file) + (install-file file dest)) + (find-files "." "\\.woff2$")))))))) + (home-page "https://practicaltypography.com/charter.html") + (synopsis "Charter fonts in OpenType and TrueType formats") + (description "Charter was designed by Matthew Carter in 1987 and was +contributed by Bitstream to the X Consortium in 1992. This package provides +OpenType, TrueType, and @acronym{WOFF2, Web Open Font Format 2} versions +converted from the Type 1 originals by Matthew Butterick.") + (license + (license:non-copyleft + "file://Charter license.txt" + (string-append + "Bitstream contributed the Charter family " + "to the X Consortium in 1992. " + "The license is also embedded in the font metadata."))))))