* [PATCH] Add font-wqy-microhei
@ 2017-01-17 5:09 tumashu
2017-01-18 8:47 ` Ricardo Wurmus
0 siblings, 1 reply; 3+ messages in thread
From: tumashu @ 2017-01-17 5:09 UTC (permalink / raw)
To: guix
[-- Attachment #1.1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #1.2: Type: text/html, Size: 82 bytes --]
[-- Attachment #2: 0001-Add-font-wqy-microhei.patch --]
[-- Type: application/octet-stream, Size: 2858 bytes --]
From 28ee48c8c17326bf3024db5bf3667e223137f54a Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@163.com>
Date: Tue, 17 Jan 2017 13:09:06 +0800
Subject: [PATCH] Add font-wqy-microhei
---
gnu/packages/fonts.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 8c84e3058..2b4fd7d6f 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -504,6 +504,54 @@ ko (Korean) locales for @code{fontconfig}.")
;; GPLv2 with font embedding exception
(license license:gpl2)))
+(define-public font-wqy-microhei
+ (package
+ (name "font-wqy-microhei")
+ (version "0.2.0-beta")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://sourceforge/wqy/wqy-microhei/" version
+ "/wqy-microhei-" version ".tar.gz"))
+ (file-name (string-append "wqy-microhei-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((PATH (string-append (assoc-ref %build-inputs "tar") "/bin:"
+ (assoc-ref %build-inputs "gzip") "/bin"))
+ (font-dir (string-append (assoc-ref %outputs "out")
+ "/share/fonts/wenquanyi/")))
+ (setenv "PATH" PATH)
+ (mkdir-p font-dir)
+ (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
+ (chdir "wqy-microhei")
+ (copy-file "wqy-microhei.ttc"
+ (string-append font-dir "wqy-microhei.ttc"))))))
+ (native-inputs
+ `(("gzip" ,gzip)
+ ("tar" ,tar)))
+ (home-page "http://wenq.org/wqy2/")
+ (synopsis "CJK font")
+ (description
+ "WenQuanYi Micro Hei is a Sans-Serif style (also known as Hei, Gothic
+or Dotum among the Chinese/Japanese/Korean users) high quality CJK
+outline font. It was derived from \"Droid Sans Fallback\" and \"Droid
+Sans\" released by Google Inc. This font contains all the unified CJK
+Han glyphs in the range of U+4E00-U+9FC3 defined in Unicode Standard
+5.1, together with many other languages unicode blocks, including
+Latins, Extended Latins, Hanguls and Kanas. The font file is
+extremely compact (~4M) compared with most known CJK fonts. As a
+result, it can be used for hand-held devices or embedded systems, or
+used for PC with a significantly small memory footprint.")
+ ;; GPLv3 with font embedding exception
+ (license license:gpl3)))
+
(define-public font-tex-gyre
(package
(name "font-tex-gyre")
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add font-wqy-microhei
2017-01-17 5:09 [PATCH] Add font-wqy-microhei tumashu
@ 2017-01-18 8:47 ` Ricardo Wurmus
2017-01-18 8:49 ` tumashu
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2017-01-18 8:47 UTC (permalink / raw)
To: tumashu; +Cc: guix
Hi tumashu,
thanks for the patch! I pushed it to master as
12b8f6b4012b47d849ba8b6cfa80abb2a5263e19 with the following changes:
- double spacing between sentences in the description
- shortened the description
- removed “file-name” field (the tarball already has a fine name)
- added a longer license comment
- added a changelog-style commit message
It just occurred to me that we will also need to add a copyright line
for you. What name and email address would you like us to list in the
copyright header?
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:Re: [PATCH] Add font-wqy-microhei
2017-01-18 8:47 ` Ricardo Wurmus
@ 2017-01-18 8:49 ` tumashu
0 siblings, 0 replies; 3+ messages in thread
From: tumashu @ 2017-01-18 8:49 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
Thank you very much for your help, You can add: "Feng Shu <tumashu@163.com>"
At 2017-01-18 16:47:28, "Ricardo Wurmus" <rekado@elephly.net> wrote:
>
>Hi tumashu,
>
>thanks for the patch! I pushed it to master as
>12b8f6b4012b47d849ba8b6cfa80abb2a5263e19 with the following changes:
>
>- double spacing between sentences in the description
>- shortened the description
>- removed “file-name” field (the tarball already has a fine name)
>- added a longer license comment
>- added a changelog-style commit message
>
>It just occurred to me that we will also need to add a copyright line
>for you. What name and email address would you like us to list in the
>copyright header?
>
>--
>Ricardo
>
>GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
>https://elephly.net
>
[-- Attachment #2: Type: text/html, Size: 1077 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-18 9:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-17 5:09 [PATCH] Add font-wqy-microhei tumashu
2017-01-18 8:47 ` Ricardo Wurmus
2017-01-18 8:49 ` tumashu
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.