From patchwork Wed Aug 23 12:06:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 53111 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 064A427BBEA; Wed, 23 Aug 2023 13:08:20 +0100 (BST) 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,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 AB28527BBE2 for ; Wed, 23 Aug 2023 13:08:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYmeX-0004JX-LN; Wed, 23 Aug 2023 08:08:01 -0400 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 1qYmeV-0004G5-FH for guix-patches@gnu.org; Wed, 23 Aug 2023 08:07:59 -0400 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 1qYmeV-0005xF-3h for guix-patches@gnu.org; Wed, 23 Aug 2023 08:07:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYmeY-0001IS-Bh; Wed, 23 Aug 2023 08:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65473] [PATCH] gnu: Add font-unscii. Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: all_but_last@163.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Wed, 23 Aug 2023 12:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65473 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65473@debbugs.gnu.org Cc: =?utf-8?b?5a6L5paH5q2m?= , Zhu Zihao , =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Zhu Zihao , =?utf-8?b?5a6L5paH?= =?utf-8?b?5q2m?= Received: via spool by submit@debbugs.gnu.org id=B.16927924294905 (code B ref -1); Wed, 23 Aug 2023 12:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Aug 2023 12:07:09 +0000 Received: from localhost ([127.0.0.1]:33075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYmdg-0001H1-Lg for submit@debbugs.gnu.org; Wed, 23 Aug 2023 08:07:09 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYmdd-0001GL-Hs for submit@debbugs.gnu.org; Wed, 23 Aug 2023 08:07:07 -0400 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 1qYmdN-0002rF-Hw for guix-patches@gnu.org; Wed, 23 Aug 2023 08:06:51 -0400 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYmdI-0005kZ-5l for guix-patches@gnu.org; Wed, 23 Aug 2023 08:06:46 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id D488C38A00A3; Wed, 23 Aug 2023 12:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1692792397; bh=1X24ww7eNB4RkHxMyXLPJruNJsN8UMuEl+0iYHnPvwo=; h=From:To:Cc:Subject:Date:From; b=VQYlW7KewhIpVuBO74I9yY8UV7a9aneX4VEtoTIQdK9Egih4eKQW3o6smeW6mZcv1 9k9wAQzEwJ7fiCX+wyIMVfXdPPdXENgJlyT0QYO8lcxnBo2DFyUAH25a9Y6+XDlKmz MsVNH67dh85Vd19hSyyV8LMRwGOnIfKM1tp1dtSCjBDiHvTaX2R97t3fJxEk+OEQ07 AW5/ZgDCNO8CTM6EeOsilV8ufPctAudCh+fggDR7v5/DfMDGmQ2tsewV6wr36p/2ZN 8s3IxtoJT2eUKGiSa8TbypUckwQh9ngOJoswsV0vn5l1EznX2kl/qNqI+zqfukecWu Cz5oT6nck8ej2Elpi/XA/M99zK/9PX5c+LWA1SxqPiek9Gp56cHkoLXXTRY4hcslnq iivH7zAHkL4rhiWd178fHJmgV45Sktu+tAHNKMOYkGN3Ja5ff59pqynkAhbBRJEA6C XKGEUYw3xdM1TGlwxQyqiLyAyIwf/YUohYZtCgmdGapLo5nEe+wiml8PFVC48MH5XZ DpbsHMUFT8Id2ai3XoLW2IrwO1/stDBDOa5nDyQrMZ7oBhHYcLEyfmCEZOWPdt4L1l Lz0BPiUm0WjPwsQDKq4Mnk1GhjEm0CRBrZooKY7+JtswcPImXK/NrOBa55JtREXdCl 3s+RRfb/XhVhFI4CDg+yrZi0= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bt37YrZv9zHO; Wed, 23 Aug 2023 12:06:34 +0000 (UTC) Received: from localhost (unknown [36.170.56.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Wed, 23 Aug 2023 12:06:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 56330f58; Wed, 23 Aug 2023 12:06:47 +0000 (UTC) Date: Wed, 23 Aug 2023 20:06:39 +0800 Message-ID: <7819b897b562d264eefb7d6cf5dc9a14317ec854.1692792387.git.iyzsong@member.fsf.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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: , Reply-to: iyzsong@envs.net X-ACL-Warn: , iyzsong--- via Guix-patches X-Patchwork-Original-From: iyzsong--- via Guix-patches via From: "ashish.is--- via Guix-patches\" via" 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 From: 宋文武 * gnu/packages/fonts.scm (font-unscii): New variable. --- gnu/packages/fonts.scm | 57 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) base-commit: 3ce3466311953cc5f00a4fb34ff094a9a3501399 diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index e881ab11cd..8266e40259 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2014, 2017 Mark H Weaver ;;; Copyright © 2014 Joshua Grant ;;; Copyright © 2014 Alex Kost -;;; Copyright © 2015 Sou Bunnbu +;;; Copyright © 2015, 2023 Sou Bunnbu ;;; Copyright © 2015 Eric Dvorsak ;;; Copyright © 2015, 2017 Ricardo Wurmus ;;; Copyright © 2015, 2016 Leo Famulari @@ -98,6 +98,7 @@ (define-module (gnu packages fonts) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages sdl) #:use-module (gnu packages xorg)) (define-public font-artifika @@ -1175,6 +1176,60 @@ (define-public font-un @end enumerate\n") (license license:gpl2+))) +(define-public font-unscii + (package + (name "font-unscii") + (version "2.1") + (source (origin + (method url-fetch) + (uri (string-append + "http://viznut.fi/unscii/unscii-" + version "-src.tar.gz")) + (sha256 + (base32 + "0msvqrq7x36p76a2n5bzkadh95z954ayqa08wxd017g4jpa1a4jd")))) + (build-system gnu-build-system) + (outputs '("out" "otf" "ttf" "woff")) + (native-inputs (list bdftopcf fontforge perl perl-text-charwidth)) + (inputs (list sdl sdl-image)) + (arguments + (list #:tests? #f ;no tests + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ;no configure script + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((pcfdir (string-append + (assoc-ref outputs "out") + "/share/fonts/misc")) + (otfdir (string-append + (assoc-ref outputs "otf") + "/share/fonts/opentype")) + (ttfdir (string-append + (assoc-ref outputs "ttf") + "/share/fonts/truetype")) + (woffdir (string-append + (assoc-ref outputs "woff") + "/share/fonts/webfonts")) + (install-fonts + (lambda (pred dir) + (for-each + (lambda (f) (install-file f dir)) + (find-files "." pred))))) + (install-fonts "\\.pcf$" pcfdir) + (install-fonts "\\.otf$" otfdir) + (install-fonts "\\.ttf$" ttfdir) + (install-fonts "\\.woff$" woffdir))))))) + (synopsis "Classic bitmapped Unicode fonts") + (description + "Unscii is a set of bitmapped Unicode fonts based on classic system +fonts. Unscii attempts to support character cell art well while also being +suitable for terminal and programming use. The two main variants are +unscii-8 (8×8 pixels per glyph) and unscii-16 (8×16).") + (home-page "http://viznut.fi/unscii/") + ;; "unscii-16-full" falls under GPL, the other are in the Public Domain. + (license (list license:gpl2+ license:public-domain)))) + (define-public font-fantasque-sans (package (name "font-fantasque-sans")