[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/9] gnu: Add font-fantasque-sans.
From: |
ericbavier |
Subject: |
[PATCH 7/9] gnu: Add font-fantasque-sans. |
Date: |
Tue, 5 Apr 2016 23:32:59 -0500 |
From: Eric Bavier <address@hidden>
* gnu/packages/fonts.scm (font-fantasque-sans): New variable.
---
gnu/packages/fonts.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 3d75591..2ed11d4 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2015 Ricardo Wurmus <address@hidden>
;;; Copyright © 2016 Nils Gillmann <address@hidden>
;;; Copyright © 2016 Jookia <address@hidden>
+;;; Copyright © 2016 Eric Bavier <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -759,3 +760,49 @@ It contains the following fonts and styles:
@item UnGungseo: cursive, brush-stroke.
@end enumerate\n")
(license license:gpl2+)))
+
+(define-public font-fantasque-sans
+ (package
+ (name "font-fantasque-sans")
+ (version "1.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/belluzj/fantasque-sans/"
+ "archive/v" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1nr5sy34ih3hlf1fkcrp398k4vpcsvl0yfy6kv50jirrjfy66d1h"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("ttfautohint" ,ttfautohint)
+ ("woff-tools" ,woff-tools)
+ ("fontforge" ,fontforge)
+ ("woff2" ,woff2)
+ ("ttf2eot" ,ttf2eot)))
+ (arguments
+ `(#:tests? #f ;test target intended for visual inspection
+ #:phases (modify-phases %standard-phases
+ (delete 'configure) ;no configuration
+ (replace 'install
+ ;; 'make install' wants to install to ~/.fonts, install to
+ ;; output instead.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (font-dir (string-append out "/share/fonts"))
+ (truetype-dir (string-append font-dir
"/truetype"))
+ (opentype-dir (string-append font-dir
"/opentype"))
+ (webfonts-dir (string-append font-dir
"/webfonts")))
+ (copy-recursively "OTF" opentype-dir)
+ (for-each (lambda (f) (install-file f truetype-dir))
+ (find-files "." "\\.ttf$"))
+ (copy-recursively "Webfonts" webfonts-dir)
+ #t))))))
+ (synopsis "Font family with a monospaced variant for programmers")
+ (description
+ "Fantasque Sans Mono is a programming font designed with functionality in
+mind. The font includes a bold version and a good italic version with new
+glyph designs, not just an added slant.")
+ (home-page "https://fontlibrary.org/en/font/fantasque-sans-mono")
+ (license license:silofl1.1)))
--
2.7.3
- Re: [PATCH 2/9] gnu: Add woff-tools., (continued)
- [PATCH 7/9] gnu: Add font-fantasque-sans.,
ericbavier <=
- [PATCH 9/9] gnu: fontforge: Install 'showttf' tool., ericbavier, 2016/04/06
- [PATCH 8/9] gnu: fontforge: Use modify-phases., ericbavier, 2016/04/06
- Re: [PATCH 1/9] gnu: Add ttfautohint., Alex Kost, 2016/04/06
- Re: [PATCH 1/9] gnu: Add ttfautohint., Eric Bavier, 2016/04/06
- Specifying package patches in a more convenient form, Alex Kost, 2016/04/07
- Re: Specifying package patches in a more convenient form, Andy Wingo, 2016/04/07
- Re: Specifying package patches in a more convenient form, Eric Bavier, 2016/04/07
- Re: Specifying package patches in a more convenient form, Alex Kost, 2016/04/08
- Re: Specifying package patches in a more convenient form, Ludovic Courtès, 2016/04/09
- Re: Specifying package patches in a more convenient form, Ludovic Courtès, 2016/04/07