* [PATCH] gnu: Add font-sarasa-gothic
@ 2020-05-29 16:44 Zhu Zihao
2020-05-30 14:33 ` Marius Bakke
0 siblings, 1 reply; 5+ messages in thread
From: Zhu Zihao @ 2020-05-29 16:44 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
This patch adds Sarasa Gothic. Sarasa Gothic is based on Iosevka and Source Han
Sans, intends to make a really monospaced(inclduing CJK characters) programming
fonts. In Sarasa Gothic, a normal CJK character is same height and double width
as an ASCII character.
[-- Attachment #2: 0001-gnu-Add-font-sarasa-gothic.patch --]
[-- Type: text/plain, Size: 2020 bytes --]
From cebd1e00a8bd29a555d5b109f4aae2adea7f977f Mon Sep 17 00:00:00 2001
From: Zhu Zihao <all_but_last@163.com>
Date: Sat, 30 May 2020 00:40:05 +0800
Subject: [PATCH] gnu: Add font-sarasa-gothic
* gnu/packages/fonts.scm (font-sarasa-gothic): New variable
---
gnu/packages/fonts.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 21423ba..92f96b5 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1251,6 +1251,34 @@ programming. Iosevka is completely generated from its source code.")
(for-each make-file-writable (find-files "." ".*"))
#t)))))))
+(define-public font-sarasa-gothic
+ (package
+ (name "font-sarasa-gothic")
+ (version "0.12.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/be5invis/Sarasa-Gothic"
+ "/releases/download/v" version
+ "/sarasa-gothic-ttc-" version ".7z"))
+ (sha256
+ (base32 "1g6k9d5lajchbhsh3g12fk5cgilyy6yw09fals9vc1f9wsqvac86"))))
+ (build-system font-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'unpack
+ (lambda* (#:key source #:allow-other-keys)
+ (mkdir "source")
+ (chdir "source")
+ (invoke "7z" "x" source))))))
+ (native-inputs `(("p7zip" ,(@ (gnu packages compression) p7zip))))
+ (home-page "https://github.com/be5invis/Sarasa-Gothic")
+ (license license:silofl1.1)
+ (synopsis "Sarasa Gothic / 更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사 고딕")
+ (description
+ "Sarasa Gothic is based on Iosevka and Source Han Sans, most CJK characters
+are same height, and double width as ASCII characters.")))
+
(define-public font-go
(let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
(revision "1"))
--
2.26.2
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] gnu: Add font-sarasa-gothic
@ 2020-05-30 2:50 Zhu Zihao
0 siblings, 0 replies; 5+ messages in thread
From: Zhu Zihao @ 2020-05-30 2:50 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 23 bytes --]
Modified description.
[-- Attachment #2: 0001-gnu-Add-font-sarasa-gothic.patch --]
[-- Type: text/plain, Size: 2045 bytes --]
From dac6806a5eb9e919cf32da6d909ba4dd71accf35 Mon Sep 17 00:00:00 2001
From: Zhu Zihao <all_but_last@163.com>
Date: Sat, 30 May 2020 00:40:05 +0800
Subject: [PATCH] gnu: Add font-sarasa-gothic
* gnu/packages/fonts.scm (font-sarasa-gothic): New variable
---
gnu/packages/fonts.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 21423baefd..86bed09a95 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1251,6 +1251,34 @@ programming. Iosevka is completely generated from its source code.")
(for-each make-file-writable (find-files "." ".*"))
#t)))))))
+(define-public font-sarasa-gothic
+ (package
+ (name "font-sarasa-gothic")
+ (version "0.12.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/be5invis/Sarasa-Gothic"
+ "/releases/download/v" version
+ "/sarasa-gothic-ttc-" version ".7z"))
+ (sha256
+ (base32 "1g6k9d5lajchbhsh3g12fk5cgilyy6yw09fals9vc1f9wsqvac86"))))
+ (build-system font-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'unpack
+ (lambda* (#:key source #:allow-other-keys)
+ (mkdir "source")
+ (chdir "source")
+ (invoke "7z" "x" source))))))
+ (native-inputs `(("p7zip" ,(@ (gnu packages compression) p7zip))))
+ (home-page "https://github.com/be5invis/Sarasa-Gothic")
+ (license license:silofl1.1)
+ (synopsis "Sarasa Gothic / 更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사 고딕")
+ (description
+ "Sarasa Gothic is a programming font based on Iosevka and Source Han Sans,
+most CJK characters are same height, and double width as ASCII characters.")))
+
(define-public font-go
(let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
(revision "1"))
--
2.26.2
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] gnu: Add font-sarasa-gothic
2020-05-29 16:44 [PATCH] gnu: Add font-sarasa-gothic Zhu Zihao
@ 2020-05-30 14:33 ` Marius Bakke
2020-05-30 15:14 ` Zhu Zihao
0 siblings, 1 reply; 5+ messages in thread
From: Marius Bakke @ 2020-05-30 14:33 UTC (permalink / raw)
To: Zhu Zihao, guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 394 bytes --]
Zhu Zihao <all_but_last@163.com> writes:
> This patch adds Sarasa Gothic. Sarasa Gothic is based on Iosevka and Source Han
> Sans, intends to make a really monospaced(inclduing CJK characters) programming
> fonts. In Sarasa Gothic, a normal CJK character is same height and double width
> as an ASCII character.
Thanks! Applied with the following changes, hope the copyright line was
okay:
[-- Attachment #1.2: diff --]
[-- Type: text/x-patch, Size: 1007 bytes --]
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 3c7361f162..f60d4f80fb 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -34,6 +34,7 @@
;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
+;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1267,7 +1268,7 @@ programming. Iosevka is completely generated from its source code.")
(mkdir "source")
(chdir "source")
(invoke "7z" "x" source))))))
- (native-inputs `(("p7zip" ,(@ (gnu packages compression) p7zip))))
+ (native-inputs `(("p7zip" ,p7zip)))
(home-page "https://github.com/be5invis/Sarasa-Gothic")
(license license:silofl1.1)
(synopsis "Sarasa Gothic / 更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사 고딕")
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] gnu: Add font-sarasa-gothic
2020-05-30 14:33 ` Marius Bakke
@ 2020-05-30 15:14 ` Zhu Zihao
2020-05-30 21:24 ` Marius Bakke
0 siblings, 1 reply; 5+ messages in thread
From: Zhu Zihao @ 2020-05-30 15:14 UTC (permalink / raw)
To: Marius Bakke; +Cc: guix-devel, Zhu Zihao
You miss the right angle bracket in the copyright line
It should be
;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
^
Others are OK.
On Sat, 30 May 2020 22:33:15 +0800,
Marius Bakke wrote:
>
> [1 <multipart/mixed (7bit)>]
> [1.1 <text/plain (7bit)>]
> Zhu Zihao <all_but_last@163.com> writes:
>
> > This patch adds Sarasa Gothic. Sarasa Gothic is based on Iosevka and Source Han
> > Sans, intends to make a really monospaced(inclduing CJK characters) programming
> > fonts. In Sarasa Gothic, a normal CJK character is same height and double width
> > as an ASCII character.
>
> Thanks! Applied with the following changes, hope the copyright line was
> okay:
>
> [1.2 diff <text/x-patch; utf-8 (quoted-printable)>]
> diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
> index 3c7361f162..f60d4f80fb 100644
> --- a/gnu/packages/fonts.scm
> +++ b/gnu/packages/fonts.scm
> @@ -34,6 +34,7 @@
> ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
> ;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
> ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
> +;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -1267,7 +1268,7 @@ programming. Iosevka is completely generated from its source code.")
> (mkdir "source")
> (chdir "source")
> (invoke "7z" "x" source))))))
> - (native-inputs `(("p7zip" ,(@ (gnu packages compression) p7zip))))
> + (native-inputs `(("p7zip" ,p7zip)))
> (home-page "https://github.com/be5invis/Sarasa-Gothic")
> (license license:silofl1.1)
> (synopsis "Sarasa Gothic / 更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사 고딕")
> [2 signature.asc <application/pgp-signature (7bit)>]
> No public key for A2A06DF2A33A54FA created at 2020-05-30T22:33:15+0800 using RSA
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gnu: Add font-sarasa-gothic
2020-05-30 15:14 ` Zhu Zihao
@ 2020-05-30 21:24 ` Marius Bakke
0 siblings, 0 replies; 5+ messages in thread
From: Marius Bakke @ 2020-05-30 21:24 UTC (permalink / raw)
To: Zhu Zihao; +Cc: guix-devel, Zhu Zihao
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
Zhu Zihao <all_but_last@163.com> writes:
> You miss the right angle bracket in the copyright line
>
> It should be
>
> ;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
Good catch, fixed in a8c7d4b0c326905b71680783ced6b68d25fb3bfd, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-30 21:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-29 16:44 [PATCH] gnu: Add font-sarasa-gothic Zhu Zihao
2020-05-30 14:33 ` Marius Bakke
2020-05-30 15:14 ` Zhu Zihao
2020-05-30 21:24 ` Marius Bakke
-- strict thread matches above, loose matches on Subject: below --
2020-05-30 2:50 Zhu Zihao
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).