From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: [PATCH] gnu: Add Mozilla Fira Mono font. Date: Tue, 17 Nov 2015 21:04:48 +0100 Message-ID: <87a8qcbden.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZymU0-0000nK-7l for guix-devel@gnu.org; Tue, 17 Nov 2015 15:04:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZymTv-0000d7-Nu for guix-devel@gnu.org; Tue, 17 Nov 2015 15:04:04 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZymTv-0000d3-KI for guix-devel@gnu.org; Tue, 17 Nov 2015 15:03:59 -0500 Received: from 541e9304.cm-5-7c.dynamic.ziggo.nl ([84.30.147.4]:60562 helo=roel-tp) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZymTu-00066Y-Uk for guix-devel@gnu.org; Tue, 17 Nov 2015 15:03:59 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-Mozilla-Fira-Mono-font.patch >From e0c9fea99b69e252d99a4ecd3cb781135faaf79c Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Tue, 17 Nov 2015 20:37:13 +0100 Subject: [PATCH] gnu: Add Mozilla Fira Mono font. * gnu/packages/fonts.scm (font-fira): New variable. --- gnu/packages/fonts.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index cfdcac8..332b73c 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -35,6 +35,33 @@ #:use-module (gnu packages xorg) #:use-module (gnu packages pkg-config)) +(define-public font-fira + (package + (name "font-fira") + (version "4.106") + (source (origin + (method url-fetch) + (uri "https://github.com/mozilla/Fira/raw/master/otf/FiraMono-Regular.otf") + (sha256 + (base32 + "1v9cwhx9js9s3icyp09ici56m7vda9s9sm45s4p8bl83k95r10qp")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let ((font-dir (string-append %output + "/share/fonts/opentype")) + (source (assoc-ref %build-inputs "source"))) + (mkdir-p font-dir) + (copy-file source + (string-append font-dir "/" "fira.otf")))))) + (native-inputs `(("source" ,source))) + (home-page "http://mozilla.github.io/Fira/") + (synopsis "Mozilla's monospace font") + (description "Mozilla's new typeface, used in Firefox OS.") + (license license:silofl1.1))) + (define-public font-inconsolata (package (name "font-inconsolata") -- 2.5.0 --=-=-= Content-Type: text/plain Dear list, Here is a patch for adding Mozilla's Fira monospaced font. I do have a problem with it: Emacs doesn't recognize the font. I would really like to know how I can fix this. And how could I download other variants of the font in the same package? Kind regards, Roel --=-=-=--