From patchwork Sun May 14 20:21:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 50011 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 8E4FE27BBE2; Sun, 14 May 2023 21:23:24 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 ED24227BBE9 for ; Sun, 14 May 2023 21:23:21 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyIFP-0006xO-SW; Sun, 14 May 2023 16:23:15 -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 1pyIFO-0006xD-1B for guix-patches@gnu.org; Sun, 14 May 2023 16:23:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyIFN-00081Q-P3 for guix-patches@gnu.org; Sun, 14 May 2023 16:23:13 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyIFC-0000Ps-5L; Sun, 14 May 2023 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63506] [PATCH] gnu: Add font-scientifica. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: all_but_last@163.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Sun, 14 May 2023 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63506 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63506@debbugs.gnu.org Cc: Ahmad Draidi , 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.16840957521545 (code B ref -1); Sun, 14 May 2023 20:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 May 2023 20:22:32 +0000 Received: from localhost ([127.0.0.1]:41650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyIEi-0000Or-0G for submit@debbugs.gnu.org; Sun, 14 May 2023 16:22:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:58584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyIEg-0000Oj-9C for submit@debbugs.gnu.org; Sun, 14 May 2023 16:22:31 -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 1pyIEc-0006vW-Sw for guix-patches@gnu.org; Sun, 14 May 2023 16:22:26 -0400 Received: from rainycloud.ext.redscript.org ([2402:28c0:4:1081::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyIEa-0007xc-NL for guix-patches@gnu.org; Sun, 14 May 2023 16:22:26 -0400 Received: from Zelda.l01.int.redscript.org (bba-2-51-129-226.alshamil.net.ae [2.51.129.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 49CC48D3; Sun, 14 May 2023 20:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1684095734; 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; bh=2IpCxkOI+bARUGtBDebfARW3ACGKgWv4V4BiiJnI2x0=; b=vBOAtfY68P9jPUzbQIcH8feahxqyx3PP3VwzoJJSkxnA+YyWOJ1nLVRBfcAn8k5TsQfhgD UdHXGbm/g0YwWt0Ldh0xhneSNWRTWP46M6BYwBoTVaF/9vzkBNg+4Ir4AYA9gTw5kV44a3 IQKa9shg5WQUJHMDHhiYNfhci/ZqKItXfI1q7e1mF0cZ12FSWftjH+CBa8p0L5MFX7yc4T MCfTwe+z64i/70eCB5oGdhJsUwHNbm4BQWPiTSvuBEwUV1mSagsvNfAbk/ciPXjP5LhSds CN6SnSOKBkZW//VmyOG1T+NokkpKtFg9/KQrD5Y5cIdZqE2wrjnMwt8irvus08No7xMDo0 4lQFOaJ+pipzs9VfQT5UHkSZ0JsqqEConmCGj7jUNjH2dmuJzNX7Faoc8O3O83xdqF3zKH Mh2MP8lCuk38GiAmS7SyQcI6dL280/SgxwjUEkGDQVG1ofZEfWKLVnftDl7bWVITyW7dO0 giXQcmHP+j/ar3drOOcdiMuVQcV/5tBrTH/jXxD2rOTNUEOnSUlquqLPXlYGMPeokWH4EH z5UoalYQuTDxXDsOpA7ULxysa7ezSZNS4mAVSDJsKt/5EF3sa8Dg2O1GhK1+p82+j4kb6X sYIOkksN+UjVGAMQgxPyS4vD1A/ZsYuLdnoQXLgjYqx68k6TySZjw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1684095734; 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; bh=2IpCxkOI+bARUGtBDebfARW3ACGKgWv4V4BiiJnI2x0=; b=7eJodgIrbMZDdo+F333RnHpfwFwhNj/Z/TNCQ/atwoqNEJtFMQ3U60kNmXhqGYz+Lu/9Zp vAsi13BXxl/Ay+AA== Date: Mon, 15 May 2023 00:21:17 +0400 Message-Id: <0d0d6f46c5515a0fbb7b3f9b63600f2872a3c90d.1684095647.git.a.r.draidi@redscript.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2402:28c0:4:1081::1; envelope-from=a.r.draidi@redscript.org; helo=rainycloud.ext.redscript.org 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches X-Patchwork-Original-From: Ahmad Draidi via Guix-patches via From: Ahmad Draidi 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-scientifica): New variable. --- gnu/packages/fonts.scm | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) base-commit: 7b00b155d8f474d493a22ff7cccbeec311b9bbc8 diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index e4c53dbc73..c5bbce2592 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -3152,3 +3152,55 @@ (define-public font-spleen Spleen also has support for Powerline symbols out of the box.") (license license:bsd-2))) + +(define-public font-scientifica + (package + (name "font-scientifica") + (version "2.3") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/nerdypepper/scientifica/releases/download/" + "v" version "/scientifica.tar")) + (sha256 + (base32 + "0zwa3s75lvbky2vn73i1fmxa37hi3zfm7f6wfpqwcip8l1lpi1gh")))) + (build-system font-build-system) + (outputs '("out" ;OTB + "bdf" "ttf")) + (arguments + (list #:phases #~(modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((otb (assoc-ref outputs "out")) + (bdf (assoc-ref outputs "bdf")) + (ttf (assoc-ref outputs "ttf")) + (otb-font-dir (string-append (assoc-ref + outputs "out") + "/share/fonts/misc")) + (ttf-font-dir (string-append (assoc-ref + outputs "ttf") + "/share/fonts/truetype")) + (bdf-font-dir (string-append (assoc-ref + outputs "bdf") + "/share/fonts/misc"))) + (mkdir-p otb-font-dir) + (mkdir-p bdf-font-dir) + (mkdir-p ttf-font-dir) + (for-each (lambda (otb) + (install-file otb otb-font-dir)) + (find-files "." "\\.otb$")) + (for-each (lambda (bdf) + (install-file bdf bdf-font-dir)) + (find-files "." "\\.bdf$")) + (for-each (lambda (ttf) + (install-file ttf ttf-font-dir)) + (find-files "." "\\.ttf$"))) #t))))) + (home-page "https://github.com/nerdypepper/scientifica") + (synopsis "Tall and condensed bitmap font for geeks") + (description + "@code{scientifica} is largely based on +@url{https://github.com/romeovs/creep, @code{creep}}, with a number of +minor tweaks to improve readability (a matter of taste of course). +Most characters are just 4px wide, which is brilliant for low dpi(90-120) displays.") + (license license:silofl1.1)))