* [PATCH]Add PT Astra font.
@ 2016-10-05 21:06 Dmitry Nikolaev
2016-10-06 2:37 ` Rastus Vernon
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Dmitry Nikolaev @ 2016-10-05 21:06 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 97 bytes --]
Hi. PT Astra is a free font metric compatible with proprietary Times New
Roman.
Dmitry Nikolaev
[-- Attachment #1.2: Type: text/html, Size: 139 bytes --]
[-- Attachment #2: 0001-Add-PT-Astra-font.patch --]
[-- Type: text/x-patch, Size: 2461 bytes --]
From 1e037b8dbb4c2249849922dceb637ee58ad33c65 Mon Sep 17 00:00:00 2001
From: 8p8c <cameltheman@gmail.com>
Date: Thu, 6 Oct 2016 00:02:58 +0300
Subject: [PATCH] Add PT Astra font.
---
gnu/packages/fonts.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index fe6c227..9482d7a 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -865,3 +865,46 @@ powerline support.")
(license (license:x11-style
"https://github.com/chrissimpkins/Hack/blob/master/LICENSE.md"
"Hack Open Font License v2.0"))))
+
+(define-public font-pt-astra
+ (package
+ (name "font-pt-astra")
+ (version "1001")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://astralinux.com/images/fonts/PTAstraSan&Serif_TTF_ver"
+ version
+ ".zip"))
+ (sha256
+ (base32
+ "11aaj3wq0z8f4w52axdb7ca44l7zm72cx7a1w11qvyl71bzl28ms"))
+ (file-name "font-pt-astra.zip")))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder (begin
+ (use-modules (guix build utils)
+ (srfi srfi-26))
+
+ (let ((PATH (string-append (assoc-ref %build-inputs
+ "unzip")
+ "/bin"))
+ (font-dir (string-append %output
+ "/share/fonts/truetype")))
+ (setenv "PATH" PATH)
+ (system* "unzip" (assoc-ref %build-inputs "source"))
+
+ (mkdir-p font-dir)
+ (for-each (lambda (ttf)
+ (copy-file ttf
+ (string-append font-dir "/" ttf)))
+ (find-files "." "\\.ttf$"))))))
+ (native-inputs
+ `(("source" ,source)
+ ("unzip" ,unzip)))
+ (home-page "https://astralinux.com/fonts.html")
+ (synopsis "A typeface metric compatible with Times New Roman.")
+ (description "PT Astra is a free typeface which is metric
+compatible with proprietary Times New Roman.")
+ (license license:silofl1.1)))
--
2.10.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH]Add PT Astra font.
2016-10-05 21:06 [PATCH]Add PT Astra font Dmitry Nikolaev
@ 2016-10-06 2:37 ` Rastus Vernon
2016-10-06 9:06 ` Hartmut Goebel
2016-10-07 22:06 ` Adonay Felipe Nogueira
2 siblings, 0 replies; 4+ messages in thread
From: Rastus Vernon @ 2016-10-06 2:37 UTC (permalink / raw)
To: Dmitry Nikolaev; +Cc: guix-devel
On Thu, 2016-10-06 at 00:06 +0300, Dmitry Nikolaev wrote:
> Hi. PT Astra is a free font metric compatible with proprietary Times
> New
> Roman.
>
> Dmitry Nikolaev
According to the font file, the version is 1.001, not 1001.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH]Add PT Astra font.
2016-10-05 21:06 [PATCH]Add PT Astra font Dmitry Nikolaev
2016-10-06 2:37 ` Rastus Vernon
@ 2016-10-06 9:06 ` Hartmut Goebel
2016-10-07 22:06 ` Adonay Felipe Nogueira
2 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2016-10-06 9:06 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 666 bytes --]
Am 05.10.2016 um 23:06 schrieb Dmitry Nikolaev:
> + (synopsis "A typeface metric compatible with Times New Roman.")
AFAIK the synopsis should not start with an "A". Please verify be running
guix lint font-pt-astra
--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development
Goebel Consult, Landshut
http://www.goebel-consult.de
Blog: http://www.goebel-consult.de/blog/feiertagsarbeit-bei-teletrust
Kolumne:
http://www.cissp-gefluester.de/2011-02-fleisige-datensammler-fur-lukratives-geschaeftsmodell-gesucht
[-- Attachment #1.2: Type: text/html, Size: 1881 bytes --]
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2430 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH]Add PT Astra font.
2016-10-05 21:06 [PATCH]Add PT Astra font Dmitry Nikolaev
2016-10-06 2:37 ` Rastus Vernon
2016-10-06 9:06 ` Hartmut Goebel
@ 2016-10-07 22:06 ` Adonay Felipe Nogueira
2 siblings, 0 replies; 4+ messages in thread
From: Adonay Felipe Nogueira @ 2016-10-07 22:06 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
A minor fix would be: Instead of forcing the source file name to a fixed
string, make it more dynamic but still consistent, like so:
(file-name name "-" version ".zip")
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 213 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-07 22:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05 21:06 [PATCH]Add PT Astra font Dmitry Nikolaev
2016-10-06 2:37 ` Rastus Vernon
2016-10-06 9:06 ` Hartmut Goebel
2016-10-07 22:06 ` Adonay Felipe Nogueira
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.