unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: tumashu <tumashu@163.com>
To: guix <guix-devel@gnu.org>
Subject: [PATCH] Add font-wqy-microhei
Date: Tue, 17 Jan 2017 13:09:55 +0800 (CST)	[thread overview]
Message-ID: <2134ad26.4c79.159aad4e0d6.Coremail.tumashu@163.com> (raw)


[-- 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


             reply	other threads:[~2017-01-17  5:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-17  5:09 tumashu [this message]
2017-01-18  8:47 ` [PATCH] Add font-wqy-microhei Ricardo Wurmus
2017-01-18  8:49   ` tumashu

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2134ad26.4c79.159aad4e0d6.Coremail.tumashu@163.com \
    --to=tumashu@163.com \
    --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 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).