Subject: bug#53226: closed (Re: bug#53226: [PATCH] gnu: Add font-charter.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 23 Jan 2022 22:04:01 +0000

Your bug report

#53226: [PATCH] gnu: Add font-charter.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
53226: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53226
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#53226: [PATCH] gnu: Add font-charter.
From: Ludovic Courtès <[email-masked]>
To: Philip McGrath <[email-masked]>
Cc: [email-masked]
Date: Sun, 23 Jan 2022 23:02:59 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Philip McGrath <[email-masked]> skribis:

> * gnu/packages/fonts.scm (font-charter): New variable.

Applied, thanks!

Ludo’.

Subject: [PATCH] gnu: Add font-charter.
From: Philip McGrath <[email-masked]>
To: [email-masked]
Date: Wed, 12 Jan 2022 21:20:50 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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 <[email-masked]>
 ;;; Copyright © 2021 Sarah Morgensen <[email-masked]>
 ;;; Copyright © 2021 Paul A. Patience <[email-masked]>
+;;; Copyright © 2022 Philip McGrath <[email-masked]>
 ;;;
 ;;; 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."))))))
-- 
2.32.0