From: Roel Janssen <roel@gnu.org>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add Mozilla Fira Mono font.
Date: Tue, 17 Nov 2015 21:04:48 +0100 [thread overview]
Message-ID: <87a8qcbden.fsf@gnu.org> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-Mozilla-Fira-Mono-font.patch --]
[-- Type: text/x-patch, Size: 1810 bytes --]
From e0c9fea99b69e252d99a4ecd3cb781135faaf79c Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
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
[-- Attachment #2: Type: text/plain, Size: 277 bytes --]
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
next reply other threads:[~2015-11-17 20:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 20:04 Roel Janssen [this message]
2015-11-18 11:21 ` [PATCH] gnu: Add Mozilla Fira Mono font Ludovic Courtès
-- strict thread matches above, loose matches on Subject: below --
2016-11-26 14:28 Toni Reina
2016-11-26 22:10 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8qcbden.fsf@gnu.org \
--to=roel@gnu.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.